From 4791ac3942b9ccd368615f0ed3802bd99911b384 Mon Sep 17 00:00:00 2001 From: Anna Karyakina Date: Tue, 29 Jan 2019 14:54:34 -0800 Subject: [PATCH] SSC REST API client initial commit --- .gitignore | 6 + .swagger-codegen-ignore | 23 + .swagger-codegen/VERSION | 1 + .travis.yml | 17 + LICENSE | 2 +- README.md | 796 +++++++ build.gradle | 106 + build.sbt | 21 + config.json | 8 + docs/AATrainingStatus.md | 24 + ...ningStatusOfProjectVersionControllerApi.md | 64 + docs/ActivityFeed.md | 229 ++ docs/ActivityFeedControllerApi.md | 66 + docs/AlertDefinitionControllerApi.md | 344 +++ docs/AlertDefinitionDto.md | 61 + docs/AlertHistoryControllerApi.md | 176 ++ docs/AlertHistoryEntry.md | 19 + docs/AlertSetStatusRequest.md | 11 + docs/AlertTriggerDto.md | 27 + docs/AlertableEventType.md | 41 + docs/AlertableEventTypeControllerApi.md | 62 + docs/ApiActionResponse.md | 21 + docs/ApiBulkRequestItem.md | 22 + docs/ApiBulkResponseData.md | 17 + docs/ApiBulkResponseItemResponse.md | 12 + docs/ApiCollectionActionlong.md | 46 + docs/ApiCollectionActionstring.md | 46 + docs/ApiResourceAction.md | 45 + docs/ApiResult.md | 17 + docs/ApiResultAlertDefinitionDto.md | 17 + docs/ApiResultApiActionResponse.md | 17 + docs/ApiResultApplicationNameTestResponse.md | 17 + docs/ApiResultApplicationState.md | 17 + docs/ApiResultArraystring.md | 17 + docs/ApiResultArtifact.md | 17 + docs/ApiResultAttribute.md | 17 + docs/ApiResultAttributeDefinition.md | 17 + docs/ApiResultAuthenticationEntity.md | 17 + docs/ApiResultAuthenticationToken.md | 17 + .../ApiResultBugFilingRequirementsResponse.md | 17 + docs/ApiResultBugfieldTemplateGroupDto.md | 17 + docs/ApiResultCloudJob.md | 17 + docs/ApiResultCloudPool.md | 17 + docs/ApiResultCloudPoolMapping.md | 17 + ...ltCloudPoolProjectVersionActionResponse.md | 17 + .../ApiResultCloudPoolWorkerActionResponse.md | 17 + docs/ApiResultCloudSystemMetrics.md | 17 + docs/ApiResultCloudSystemPollStatus.md | 17 + docs/ApiResultCloudSystemSettings.md | 17 + docs/ApiResultCloudWorker.md | 17 + docs/ApiResultConfigProperties.md | 17 + docs/ApiResultConfigProperty.md | 17 + docs/ApiResultCustomTag.md | 17 + docs/ApiResultDynamicScanRequest.md | 17 + docs/ApiResultDynamicScanRequestTemplate.md | 17 + docs/ApiResultDynamicScanRequestsSummary.md | 17 + docs/ApiResultFeature.md | 17 + docs/ApiResultFileToken.md | 17 + docs/ApiResultFolder.md | 17 + docs/ApiResultIIDMigration.md | 17 + docs/ApiResultIssueActionResponse.md | 17 + docs/ApiResultIssueAgingPortlet.md | 17 + docs/ApiResultIssueAssignment.md | 17 + docs/ApiResultIssueAttachment.md | 17 + docs/ApiResultIssueAuditComment.md | 17 + docs/ApiResultIssueFileBugResponse.md | 17 + docs/ApiResultIssueFilterSelectorSet.md | 17 + docs/ApiResultIssueSearchOption.md | 17 + docs/ApiResultIssueTemplate.md | 17 + docs/ApiResultIssueViewTemplate.md | 17 + docs/ApiResultJob.md | 17 + docs/ApiResultLDAPEntity.md | 17 + docs/ApiResultLdapRefreshResponse.md | 17 + docs/ApiResultLdapServerDto.md | 17 + docs/ApiResultLicense.md | 17 + docs/ApiResultListAATrainingStatus.md | 17 + docs/ApiResultListActivityFeed.md | 17 + docs/ApiResultListAlertDefinitionDto.md | 17 + docs/ApiResultListAlertHistoryEntry.md | 17 + docs/ApiResultListAlertableEventType.md | 17 + docs/ApiResultListArtifact.md | 17 + docs/ApiResultListAttribute.md | 17 + docs/ApiResultListAttributeDefinition.md | 17 + docs/ApiResultListAuditAssistantStatus.md | 17 + docs/ApiResultListAuthenticationEntity.md | 17 + docs/ApiResultListAuthenticationToken.md | 17 + docs/ApiResultListBugFilingRequirements.md | 17 + docs/ApiResultListBugTracker.md | 17 + docs/ApiResultListBugfieldTemplateGroupDto.md | 17 + docs/ApiResultListBulkResponseItem.md | 17 + docs/ApiResultListCloudJob.md | 17 + docs/ApiResultListCloudPool.md | 17 + docs/ApiResultListCloudPoolMapping.md | 17 + docs/ApiResultListCloudWorker.md | 17 + docs/ApiResultListCustomTag.md | 17 + docs/ApiResultListDashboardVersion.md | 17 + docs/ApiResultListDataExport.md | 17 + docs/ApiResultListDynamicScanRequest.md | 17 + docs/ApiResultListEngineType.md | 17 + docs/ApiResultListEventLog.md | 17 + docs/ApiResultListFeature.md | 17 + docs/ApiResultListFilterSet.md | 17 + docs/ApiResultListFolder.md | 17 + docs/ApiResultListIIDMigration.md | 17 + docs/ApiResultListIssueAgingDto.md | 17 + docs/ApiResultListIssueAgingGroupDto.md | 17 + docs/ApiResultListIssueAssignment.md | 17 + docs/ApiResultListIssueAttachment.md | 17 + docs/ApiResultListIssueAuditComment.md | 17 + docs/ApiResultListIssueAuditHistoryDto.md | 17 + docs/ApiResultListIssueSearchOption.md | 17 + docs/ApiResultListIssueStatistics.md | 17 + docs/ApiResultListIssueSummary.md | 17 + docs/ApiResultListIssueTemplate.md | 17 + docs/ApiResultListIssueViewTemplate.md | 17 + docs/ApiResultListJob.md | 17 + ...ultListJobPriorityChangeCategoryWarning.md | 17 + docs/ApiResultListLDAPEntity.md | 17 + docs/ApiResultListLdapServerDto.md | 17 + docs/ApiResultListLocalUser.md | 17 + docs/ApiResultListPerformanceIndicator.md | 17 + ...piResultListPerformanceIndicatorHistory.md | 17 + docs/ApiResultListPermission.md | 17 + docs/ApiResultListPersona.md | 17 + docs/ApiResultListPluginMetaData.md | 17 + docs/ApiResultListProject.md | 17 + docs/ApiResultListProjectVersion.md | 17 + docs/ApiResultListProjectVersionBugTracker.md | 17 + docs/ApiResultListProjectVersionIssue.md | 17 + ...ApiResultListProjectVersionIssueDetails.md | 17 + docs/ApiResultListProjectVersionIssueGroup.md | 17 + docs/ApiResultListReportDefinition.md | 17 + docs/ApiResultListReportLibrary.md | 17 + docs/ApiResultListResponsibilityAssignment.md | 17 + docs/ApiResultListResultProcessingRule.md | 17 + docs/ApiResultListRole.md | 17 + docs/ApiResultListRulepackCore.md | 17 + ...piResultListRulepacksBatchProcessStatus.md | 17 + docs/ApiResultListSavedReport.md | 17 + docs/ApiResultListScan.md | 17 + docs/ApiResultListSourceFileDto.md | 17 + docs/ApiResultListSystemConfiguration.md | 17 + docs/ApiResultListTokenDefinition.md | 17 + docs/ApiResultListUserSessionState.md | 17 + docs/ApiResultListVariable.md | 17 + docs/ApiResultListVariableHistory.md | 17 + docs/ApiResultListscanError.md | 17 + docs/ApiResultLocalUser.md | 17 + .../ApiResultPasswordStrengthCheckResponse.md | 17 + docs/ApiResultPerformanceIndicator.md | 17 + docs/ApiResultPerformanceIndicatorHistory.md | 17 + docs/ApiResultPermission.md | 17 + docs/ApiResultPersona.md | 17 + docs/ApiResultPluginLocalization.md | 17 + docs/ApiResultPluginMetaData.md | 17 + docs/ApiResultProject.md | 17 + docs/ApiResultProjectVersion.md | 17 + docs/ApiResultProjectVersionIssue.md | 17 + docs/ApiResultProjectVersionIssueDetails.md | 17 + .../ApiResultProjectVersionRefreshResponse.md | 17 + docs/ApiResultProjectVersionTestResponse.md | 17 + docs/ApiResultReportDefinition.md | 17 + docs/ApiResultReportLibrary.md | 17 + docs/ApiResultResponsibilityAssignment.md | 17 + docs/ApiResultRole.md | 17 + docs/ApiResultSavedReport.md | 17 + docs/ApiResultScan.md | 17 + docs/ApiResultSearchIndexStatus.md | 17 + docs/ApiResultSourceFileDto.md | 17 + docs/ApiResultSystemConfiguration.md | 17 + docs/ApiResultUserIssueSearchOptions.md | 17 + docs/ApiResultUserPreferences.md | 17 + docs/ApiResultUserSessionInformation.md | 17 + docs/ApiResultValidationStatus.md | 17 + docs/ApiResultVariable.md | 17 + docs/ApiResultVariableHistory.md | 17 + docs/ApiResultVoid.md | 16 + docs/ApplicationNameTestRequest.md | 10 + docs/ApplicationNameTestResponse.md | 10 + docs/ApplicationState.md | 13 + docs/ApplicationStateControllerApi.md | 112 + docs/Artifact.md | 119 ++ docs/ArtifactApproveRequest.md | 11 + docs/ArtifactControllerApi.md | 284 +++ docs/ArtifactOfProjectVersionControllerApi.md | 130 ++ docs/ArtifactPurgeRequest.md | 10 + docs/AssignedUser.md | 11 + docs/Attribute.md | 13 + docs/AttributeDefinition.md | 69 + docs/AttributeDefinitionControllerApi.md | 344 +++ docs/AttributeOfProjectControllerApi.md | 238 +++ .../AttributeOfProjectVersionControllerApi.md | 234 +++ docs/AttributeOption.md | 19 + docs/AuditAssistantStatus.md | 33 + ...tantStatusOfProjectVersionControllerApi.md | 64 + docs/AuditHistoryOfIssueControllerApi.md | 64 + docs/AuthEntityControllerApi.md | 190 ++ docs/AuthEntityOfProjectControllerApi.md | 178 ++ ...AuthEntityOfProjectVersionControllerApi.md | 188 ++ docs/AuthTokenControllerApi.md | 338 +++ docs/AuthTokenRevokeRequest.md | 10 + docs/AuthenticationEntity.md | 20 + docs/AuthenticationToken.md | 17 + docs/BugFilingRequirements.md | 13 + ...quirementsOfProjectVersionControllerApi.md | 234 +++ docs/BugFilingRequirementsRequest.md | 11 + docs/BugFilingRequirementsResponse.md | 10 + docs/BugParam.md | 27 + docs/BugStateManagementCfg.md | 13 + docs/BugTracker.md | 16 + docs/BugTrackerConfiguration.md | 14 + docs/BugTrackerControllerApi.md | 62 + ...BugTrackerOfProjectVersionControllerApi.md | 232 +++ docs/BugTrackerRequest.md | 10 + docs/BugfieldTemplateDto.md | 12 + docs/BugfieldTemplateGroupControllerApi.md | 336 +++ docs/BugfieldTemplateGroupDto.md | 16 + docs/BulkControllerApi.md | 62 + docs/BulkRequestData.md | 10 + docs/BulkResponseItem.md | 11 + docs/CloudJob.md | 33 + docs/CloudJobCancelRequest.md | 10 + docs/CloudJobControllerApi.md | 236 +++ docs/CloudJobOfCloudPoolControllerApi.md | 70 + docs/CloudJobOfCloudWorkerControllerApi.md | 68 + docs/CloudPool.md | 16 + docs/CloudPoolControllerApi.md | 292 +++ docs/CloudPoolMapping.md | 11 + docs/CloudPoolMappingControllerApi.md | 172 ++ docs/CloudPoolProjectVersionActionResponse.md | 10 + docs/CloudPoolProjectVersionAssignRequest.md | 10 + docs/CloudPoolProjectVersionReplaceRequest.md | 10 + docs/CloudPoolStats.md | 18 + docs/CloudPoolWorkerActionResponse.md | 10 + docs/CloudPoolWorkerAssignRequest.md | 10 + docs/CloudPoolWorkerDisableRequest.md | 10 + docs/CloudPoolWorkerReplaceRequest.md | 10 + docs/CloudScanConfig.md | 10 + docs/CloudSystemMetrics.md | 12 + docs/CloudSystemMetricsControllerApi.md | 58 + docs/CloudSystemPollStatus.md | 12 + docs/CloudSystemPollStatusControllerApi.md | 58 + docs/CloudSystemSettings.md | 22 + docs/CloudSystemSettingsControllerApi.md | 58 + docs/CloudWorker.md | 26 + docs/CloudWorkerControllerApi.md | 128 ++ docs/CloudWorkerOfCloudPoolControllerApi.md | 294 +++ docs/ConfigProperties.md | 10 + docs/ConfigProperty.md | 53 + docs/ConfigPropertyValueItem.md | 11 + docs/ConfigPropertyValueValidation.md | 19 + docs/ConfigurationControllerApi.md | 328 +++ docs/CustomTag.md | 57 + docs/CustomTagControllerApi.md | 344 +++ docs/CustomTagInfo.md | 13 + docs/CustomTagLookup.md | 19 + docs/CustomTagLookupInfo.md | 11 + docs/CustomTagOfIssueTemplateControllerApi.md | 72 + .../CustomTagOfProjectVersionControllerApi.md | 244 +++ docs/DashboardVersion.md | 9 + docs/DashboardVersionControllerApi.md | 84 + docs/DataExport.md | 30 + docs/DataExportControllerApi.md | 290 +++ docs/DynamicScanRequest.md | 26 + ...canRequestOfProjectVersionControllerApi.md | 290 +++ docs/DynamicScanRequestParameter.md | 17 + docs/DynamicScanRequestParameterDefinition.md | 31 + docs/DynamicScanRequestParameterOption.md | 14 + docs/DynamicScanRequestTemplate.md | 10 + ...stTemplateOfProjectVersionControllerApi.md | 62 + docs/DynamicScanRequestsSummary.md | 15 + ...stsSummaryOfProjectVersionControllerApi.md | 62 + docs/EmbeddedReportDefinition.md | 11 + docs/EmbeddedRoles.md | 10 + docs/EmbeddedScans.md | 10 + docs/EngineType.md | 11 + docs/EngineTypeControllerApi.md | 62 + docs/EntityStateIdentifier.md | 11 + docs/EventLog.md | 227 ++ docs/EventLogControllerApi.md | 70 + docs/ExportAuditToCSVRequest.md | 28 + docs/ExportIssueStatsToCSVRequest.md | 14 + docs/ExternalBugInfo.md | 14 + docs/Feature.md | 12 + docs/FeatureControllerApi.md | 128 ++ docs/FileToken.md | 21 + docs/FileTokenControllerApi.md | 112 + docs/FilterSet.md | 14 + .../FilterSetOfProjectVersionControllerApi.md | 68 + docs/Folder.md | 17 + docs/FolderControllerApi.md | 58 + docs/FolderDto.md | 13 + docs/FolderOfProjectVersionControllerApi.md | 118 ++ docs/FortifyJob.md | 13 + docs/GroupOfAuthEntityControllerApi.md | 72 + docs/IIDMigration.md | 43 + docs/IidMapping.md | 11 + docs/IidMigrationControllerApi.md | 64 + ...dMigrationOfProjectVersionControllerApi.md | 120 ++ docs/InputReportParameter.md | 31 + docs/InputStream.md | 9 + docs/InternalCustomTagControllerApi.md | 70 + docs/IssueActionResponse.md | 10 + docs/IssueAgingControllerApi.md | 94 + docs/IssueAgingDto.md | 21 + docs/IssueAgingGroupControllerApi.md | 70 + docs/IssueAgingGroupDto.md | 11 + docs/IssueAgingPortlet.md | 18 + docs/IssueAgingPortletControllerApi.md | 58 + docs/IssueAssignUserRequest.md | 11 + docs/IssueAssignment.md | 13 + ...AssignmentOfProjectVersionControllerApi.md | 128 ++ docs/IssueAttachment.md | 15 + docs/IssueAttachmentOfIssueControllerApi.md | 350 ++++ docs/IssueAuditComment.md | 19 + docs/IssueAuditCommentControllerApi.md | 70 + docs/IssueAuditCommentOfIssueControllerApi.md | 122 ++ docs/IssueAuditHistoryDto.md | 17 + docs/IssueAuditRequest.md | 14 + docs/IssueAuditResult.md | 16 + docs/IssueControllerApi.md | 126 ++ docs/IssueDetailControllerApi.md | 122 ++ docs/IssueFileBugRequest.md | 13 + docs/IssueFileBugResponse.md | 10 + docs/IssueFilterSelector.md | 38 + docs/IssueFilterSelectorSet.md | 11 + ...IssueGroupOfProjectVersionControllerApi.md | 86 + docs/IssueOfProjectVersionControllerApi.md | 484 +++++ docs/IssuePrimaryTag.md | 13 + docs/IssueSearchOption.md | 22 + docs/IssueSelector.md | 26 + ...electorSetOfProjectVersionControllerApi.md | 64 + docs/IssueStatistics.md | 17 + ...StatisticsOfProjectVersionControllerApi.md | 64 + docs/IssueSummary.md | 12 + ...sueSummaryOfProjectVersionControllerApi.md | 76 + docs/IssueSuppressRequest.md | 11 + docs/IssueTemplate.md | 20 + docs/IssueTemplateControllerApi.md | 290 +++ docs/IssueUpdateTagRequest.md | 11 + docs/IssueViewTemplate.md | 16 + docs/IssueViewTemplateControllerApi.md | 126 ++ docs/Job.md | 36 + docs/JobCancelRequest.md | 10 + docs/JobControllerApi.md | 292 +++ docs/JobPriorityChangeCategoryWarning.md | 11 + ...ChangeCategoryWarningOfJobControllerApi.md | 66 + docs/JobPriorityChangeInfo.md | 11 + docs/LDAPEntity.md | 28 + docs/LdapObjectControllerApi.md | 452 ++++ docs/LdapRefreshResponse.md | 10 + docs/LdapServerControllerApi.md | 448 ++++ docs/LdapServerDto.md | 82 + docs/LdapServerTestRequest.md | 10 + docs/License.md | 14 + docs/LicenseCapability.md | 12 + docs/LicenseControllerApi.md | 57 + docs/LocalUser.md | 22 + docs/LocalUserControllerApi.md | 398 ++++ docs/ParserPluginImageControllerApi.md | 66 + docs/PasswordStrengthCheckRequest.md | 11 + docs/PasswordStrengthCheckResponse.md | 10 + docs/PerformanceIndicator.md | 36 + docs/PerformanceIndicatorControllerApi.md | 288 +++ docs/PerformanceIndicatorHistory.md | 15 + ...torHistoryOfProjectVersionControllerApi.md | 128 ++ docs/Permission.md | 16 + docs/PermissionControllerApi.md | 126 ++ docs/PermissionOfRoleControllerApi.md | 64 + ...issionRequiredByPermissionControllerApi.md | 68 + docs/Persona.md | 16 + docs/PersonaControllerApi.md | 288 +++ docs/PluginConfiguration.md | 11 + docs/PluginControllerApi.md | 344 +++ docs/PluginDisableRequest.md | 10 + docs/PluginEnableRequest.md | 10 + docs/PluginImageControllerApi.md | 64 + docs/PluginLocalization.md | 9 + docs/PluginLocalizationControllerApi.md | 66 + docs/PluginMetaData.md | 47 + docs/Project.md | 15 + docs/ProjectControllerApi.md | 292 +++ docs/ProjectVersion.md | 63 + docs/ProjectVersionAuditByAssistantRequest.md | 10 + docs/ProjectVersionAuthEntityAssignRequest.md | 10 + docs/ProjectVersionBugTracker.md | 15 + docs/ProjectVersionControllerApi.md | 786 +++++++ docs/ProjectVersionCopyCurrentStateRequest.md | 12 + docs/ProjectVersionCopyPartialRequest.md | 15 + docs/ProjectVersionIssue.md | 55 + docs/ProjectVersionIssueDetails.md | 108 + docs/ProjectVersionIssueGroup.md | 15 + ...ctVersionOfAlertDefinitionControllerApi.md | 72 + ...ProjectVersionOfAuthEntityControllerApi.md | 294 +++ .../ProjectVersionOfCloudPoolControllerApi.md | 238 +++ docs/ProjectVersionOfProjectControllerApi.md | 134 ++ docs/ProjectVersionPurgeRequest.md | 10 + docs/ProjectVersionRefreshRequest.md | 10 + docs/ProjectVersionRefreshResponse.md | 10 + docs/ProjectVersionState.md | 25 + docs/ProjectVersionTestRequest.md | 11 + docs/ProjectVersionTestResponse.md | 10 + ...rojectVersionTrainAuditAssistantRequest.md | 10 + docs/ReportAuthEntity.md | 13 + docs/ReportDefinition.md | 36 + docs/ReportDefinitionControllerApi.md | 344 +++ docs/ReportLibrary.md | 16 + docs/ReportLibraryControllerApi.md | 340 +++ docs/ReportParameter.md | 35 + docs/ReportParameterOption.md | 15 + docs/ReportProject.md | 13 + docs/ReportProjectVersion.md | 12 + docs/ResponsibilityAssignment.md | 17 + ...ibilityAssignmentOfProjectControllerApi.md | 184 ++ ...AssignmentOfProjectVersionControllerApi.md | 184 ++ docs/ResultProcessingRule.md | 13 + ...essingRuleOfProjectVersionControllerApi.md | 120 ++ docs/Role.md | 21 + docs/RoleControllerApi.md | 346 +++ docs/RoleOfAuthEntityControllerApi.md | 64 + docs/RulepackCore.md | 28 + docs/RulepackCoreControllerApi.md | 178 ++ docs/RulepackUpdateControllerApi.md | 58 + docs/RulepacksBatchProcessStatus.md | 12 + docs/SavedReport.md | 59 + docs/SavedReportControllerApi.md | 240 +++ docs/Scan.md | 23 + docs/ScanControllerApi.md | 64 + docs/ScanError.md | 13 + docs/ScanErrorOfArtifactControllerApi.md | 68 + docs/ScanOfArtifactControllerApi.md | 64 + docs/SearchIndexStatus.md | 12 + docs/SelectorOption.md | 12 + docs/SourceFileDto.md | 15 + ...SourceFileOfProjectVersionControllerApi.md | 128 ++ docs/SystemConfiguration.md | 11 + docs/SystemConfigurationControllerApi.md | 118 ++ docs/TemplateItem.md | 9 + docs/TokenDefinition.md | 13 + docs/TokenDefinitionControllerApi.md | 70 + docs/TraceNodeDto.md | 50 + docs/Trigger.md | 12 + ...gnedCloudWorkerOfCloudPoolControllerApi.md | 68 + ...archOptionOfProjectVersionControllerApi.md | 178 ++ docs/UserIssueSearchOptions.md | 15 + docs/UserIssueSearchOptionsControllerApi.md | 112 + ...rchOptionsOfProjectVersionControllerApi.md | 120 ++ docs/UserPhoto.md | 11 + docs/UserPreferences.md | 18 + docs/UserPreferencesControllerApi.md | 116 ++ docs/UserSessionInfoControllerApi.md | 62 + docs/UserSessionInformation.md | 28 + docs/UserSessionState.md | 15 + docs/UserSessionStateControllerApi.md | 120 ++ docs/ValidateEquationControllerApi.md | 62 + docs/ValidateSearchStringControllerApi.md | 62 + docs/ValidationRequest.md | 10 + docs/ValidationStatus.md | 11 + docs/Variable.md | 37 + docs/VariableControllerApi.md | 288 +++ docs/VariableHistory.md | 13 + ...bleHistoryOfProjectVersionControllerApi.md | 128 ++ docs/WIEConfiguration.md | 11 + gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 160 ++ gradlew.bat | 90 + pom.xml | 242 +++ settings.gradle | 1 + spec.json | 1 + src/main/AndroidManifest.xml | 3 + .../fortify/ssc/restclient/ApiCallback.java | 62 + .../com/fortify/ssc/restclient/ApiClient.java | 1207 +++++++++++ .../fortify/ssc/restclient/ApiException.java | 91 + .../fortify/ssc/restclient/ApiResponse.java | 59 + .../fortify/ssc/restclient/Configuration.java | 39 + .../restclient/GzipRequestInterceptor.java | 81 + .../java/com/fortify/ssc/restclient/JSON.java | 362 ++++ .../java/com/fortify/ssc/restclient/Pair.java | 52 + .../ssc/restclient/ProgressRequestBody.java | 77 + .../ssc/restclient/ProgressResponseBody.java | 76 + .../fortify/ssc/restclient/StringUtil.java | 55 + ...ngStatusOfProjectVersionControllerApi.java | 187 ++ .../api/ActivityFeedControllerApi.java | 189 ++ .../api/AlertDefinitionControllerApi.java | 834 ++++++++ .../api/AlertHistoryControllerApi.java | 443 ++++ .../api/AlertableEventTypeControllerApi.java | 177 ++ .../api/ApplicationStateControllerApi.java | 294 +++ .../restclient/api/ArtifactControllerApi.java | 697 +++++++ ...ArtifactOfProjectVersionControllerApi.java | 353 ++++ .../api/AttributeDefinitionControllerApi.java | 834 ++++++++ .../api/AttributeOfProjectControllerApi.java | 604 ++++++ ...ttributeOfProjectVersionControllerApi.java | 592 ++++++ ...ntStatusOfProjectVersionControllerApi.java | 187 ++ .../api/AuditHistoryOfIssueControllerApi.java | 187 ++ .../api/AuthEntityControllerApi.java | 486 +++++ .../api/AuthEntityOfProjectControllerApi.java | 460 ++++ ...thEntityOfProjectVersionControllerApi.java | 490 +++++ .../api/AuthTokenControllerApi.java | 829 ++++++++ ...irementsOfProjectVersionControllerApi.java | 594 ++++++ .../api/BugTrackerControllerApi.java | 177 ++ ...gTrackerOfProjectVersionControllerApi.java | 588 ++++++ .../BugfieldTemplateGroupControllerApi.java | 810 +++++++ .../ssc/restclient/api/BulkControllerApi.java | 181 ++ .../restclient/api/CloudJobControllerApi.java | 589 ++++++ .../api/CloudJobOfCloudPoolControllerApi.java | 205 ++ .../CloudJobOfCloudWorkerControllerApi.java | 199 ++ .../api/CloudPoolControllerApi.java | 716 +++++++ .../api/CloudPoolMappingControllerApi.java | 440 ++++ .../api/CloudSystemMetricsControllerApi.java | 171 ++ .../CloudSystemPollStatusControllerApi.java | 171 ++ .../api/CloudSystemSettingsControllerApi.java | 171 ++ .../api/CloudWorkerControllerApi.java | 337 +++ .../CloudWorkerOfCloudPoolControllerApi.java | 739 +++++++ .../api/ConfigurationControllerApi.java | 782 +++++++ .../api/CustomTagControllerApi.java | 834 ++++++++ ...CustomTagOfIssueTemplateControllerApi.java | 211 ++ ...ustomTagOfProjectVersionControllerApi.java | 625 ++++++ .../api/DashboardVersionControllerApi.java | 243 +++ .../api/DataExportControllerApi.java | 707 +++++++ ...nRequestOfProjectVersionControllerApi.java | 726 +++++++ ...TemplateOfProjectVersionControllerApi.java | 181 ++ ...sSummaryOfProjectVersionControllerApi.java | 181 ++ .../api/EngineTypeControllerApi.java | 177 ++ .../restclient/api/EventLogControllerApi.java | 201 ++ .../restclient/api/FeatureControllerApi.java | 337 +++ .../api/FileTokenControllerApi.java | 295 +++ ...ilterSetOfProjectVersionControllerApi.java | 199 ++ .../restclient/api/FolderControllerApi.java | 171 ++ .../FolderOfProjectVersionControllerApi.java | 315 +++ .../api/GroupOfAuthEntityControllerApi.java | 211 ++ .../api/IidMigrationControllerApi.java | 187 ++ ...igrationOfProjectVersionControllerApi.java | 321 +++ .../api/InternalCustomTagControllerApi.java | 201 ++ .../api/IssueAgingControllerApi.java | 273 +++ .../api/IssueAgingGroupControllerApi.java | 201 ++ .../api/IssueAgingPortletControllerApi.java | 171 ++ ...signmentOfProjectVersionControllerApi.java | 345 +++ .../IssueAttachmentOfIssueControllerApi.java | 876 ++++++++ .../api/IssueAuditCommentControllerApi.java | 211 ++ ...IssueAuditCommentOfIssueControllerApi.java | 327 +++ .../restclient/api/IssueControllerApi.java | 341 +++ .../api/IssueDetailControllerApi.java | 334 +++ ...sueGroupOfProjectVersionControllerApi.java | 253 +++ .../IssueOfProjectVersionControllerApi.java | 1206 +++++++++++ ...ectorSetOfProjectVersionControllerApi.java | 187 ++ ...atisticsOfProjectVersionControllerApi.java | 187 ++ ...eSummaryOfProjectVersionControllerApi.java | 233 +++ .../api/IssueTemplateControllerApi.java | 712 +++++++ .../api/IssueViewTemplateControllerApi.java | 331 +++ .../ssc/restclient/api/JobControllerApi.java | 722 +++++++ ...angeCategoryWarningOfJobControllerApi.java | 198 ++ .../api/LdapObjectControllerApi.java | 1084 ++++++++++ .../api/LdapServerControllerApi.java | 1069 ++++++++++ .../restclient/api/LicenseControllerApi.java | 171 ++ .../api/LocalUserControllerApi.java | 958 +++++++++ .../api/ParserPluginImageControllerApi.java | 203 ++ .../PerformanceIndicatorControllerApi.java | 705 +++++++ ...rHistoryOfProjectVersionControllerApi.java | 345 +++ .../api/PermissionControllerApi.java | 331 +++ .../api/PermissionOfRoleControllerApi.java | 187 ++ ...sionRequiredByPermissionControllerApi.java | 199 ++ .../restclient/api/PersonaControllerApi.java | 704 +++++++ .../restclient/api/PluginControllerApi.java | 835 ++++++++ .../api/PluginImageControllerApi.java | 192 ++ .../api/PluginLocalizationControllerApi.java | 204 ++ .../restclient/api/ProjectControllerApi.java | 718 +++++++ .../api/ProjectVersionControllerApi.java | 1854 +++++++++++++++++ ...VersionOfAlertDefinitionControllerApi.java | 211 ++ ...ojectVersionOfAuthEntityControllerApi.java | 734 +++++++ ...rojectVersionOfCloudPoolControllerApi.java | 606 ++++++ .../ProjectVersionOfProjectControllerApi.java | 363 ++++ .../api/ReportDefinitionControllerApi.java | 834 ++++++++ .../api/ReportLibraryControllerApi.java | 822 ++++++++ ...ilityAssignmentOfProjectControllerApi.java | 478 +++++ ...signmentOfProjectVersionControllerApi.java | 478 +++++ ...singRuleOfProjectVersionControllerApi.java | 320 +++ .../ssc/restclient/api/RoleControllerApi.java | 840 ++++++++ .../api/RoleOfAuthEntityControllerApi.java | 187 ++ .../api/RulepackCoreControllerApi.java | 449 ++++ .../api/RulepackUpdateControllerApi.java | 171 ++ .../api/SavedReportControllerApi.java | 596 ++++++ .../ssc/restclient/api/ScanControllerApi.java | 187 ++ .../api/ScanErrorOfArtifactControllerApi.java | 199 ++ .../api/ScanOfArtifactControllerApi.java | 187 ++ ...urceFileOfProjectVersionControllerApi.java | 345 +++ .../api/SystemConfigurationControllerApi.java | 307 +++ .../api/TokenDefinitionControllerApi.java | 201 ++ ...edCloudWorkerOfCloudPoolControllerApi.java | 195 ++ ...chOptionOfProjectVersionControllerApi.java | 487 +++++ .../UserIssueSearchOptionsControllerApi.java | 294 +++ ...hOptionsOfProjectVersionControllerApi.java | 320 +++ .../api/UserPreferencesControllerApi.java | 303 +++ .../api/UserSessionInfoControllerApi.java | 180 ++ .../api/UserSessionStateControllerApi.java | 312 +++ .../api/ValidateEquationControllerApi.java | 181 ++ .../ValidateSearchStringControllerApi.java | 181 ++ .../restclient/api/VariableControllerApi.java | 705 +++++++ ...eHistoryOfProjectVersionControllerApi.java | 345 +++ .../ssc/restclient/auth/ApiKeyAuth.java | 75 + .../ssc/restclient/auth/Authentication.java | 29 + .../ssc/restclient/auth/HttpBasicAuth.java | 54 + .../fortify/ssc/restclient/auth/OAuth.java | 39 + .../ssc/restclient/auth/OAuthFlow.java | 18 + .../restclient/model/AATrainingStatus.java | 238 +++ .../ssc/restclient/model/ActivityFeed.java | 661 ++++++ .../restclient/model/AlertDefinitionDto.java | 833 ++++++++ .../restclient/model/AlertHistoryEntry.java | 293 +++ .../model/AlertSetStatusRequest.java | 124 ++ .../ssc/restclient/model/AlertTriggerDto.java | 221 ++ .../restclient/model/AlertableEventType.java | 280 +++ .../restclient/model/ApiActionResponse.java | 188 ++ .../restclient/model/ApiBulkRequestItem.java | 190 ++ .../restclient/model/ApiBulkResponseData.java | 254 +++ .../model/ApiBulkResponseItemResponse.java | 151 ++ .../model/ApiCollectionActionlong.java | 248 +++ .../model/ApiCollectionActionstring.java | 248 +++ .../restclient/model/ApiResourceAction.java | 215 ++ .../ssc/restclient/model/ApiResult.java | 254 +++ .../model/ApiResultAlertDefinitionDto.java | 255 +++ .../model/ApiResultApiActionResponse.java | 255 +++ .../ApiResultApplicationNameTestResponse.java | 255 +++ .../model/ApiResultApplicationState.java | 255 +++ .../model/ApiResultArraystring.java | 264 +++ .../restclient/model/ApiResultArtifact.java | 255 +++ .../restclient/model/ApiResultAttribute.java | 255 +++ .../model/ApiResultAttributeDefinition.java | 255 +++ .../model/ApiResultAuthenticationEntity.java | 255 +++ .../model/ApiResultAuthenticationToken.java | 255 +++ ...piResultBugFilingRequirementsResponse.java | 255 +++ .../ApiResultBugfieldTemplateGroupDto.java | 255 +++ .../restclient/model/ApiResultCloudJob.java | 255 +++ .../restclient/model/ApiResultCloudPool.java | 255 +++ .../model/ApiResultCloudPoolMapping.java | 255 +++ ...CloudPoolProjectVersionActionResponse.java | 255 +++ ...piResultCloudPoolWorkerActionResponse.java | 255 +++ .../model/ApiResultCloudSystemMetrics.java | 255 +++ .../model/ApiResultCloudSystemPollStatus.java | 255 +++ .../model/ApiResultCloudSystemSettings.java | 255 +++ .../model/ApiResultCloudWorker.java | 255 +++ .../model/ApiResultConfigProperties.java | 255 +++ .../model/ApiResultConfigProperty.java | 255 +++ .../restclient/model/ApiResultCustomTag.java | 255 +++ .../model/ApiResultDynamicScanRequest.java | 255 +++ .../ApiResultDynamicScanRequestTemplate.java | 255 +++ .../ApiResultDynamicScanRequestsSummary.java | 255 +++ .../restclient/model/ApiResultFeature.java | 255 +++ .../restclient/model/ApiResultFileToken.java | 255 +++ .../ssc/restclient/model/ApiResultFolder.java | 255 +++ .../model/ApiResultIIDMigration.java | 255 +++ .../model/ApiResultIssueActionResponse.java | 255 +++ .../model/ApiResultIssueAgingPortlet.java | 255 +++ .../model/ApiResultIssueAssignment.java | 255 +++ .../model/ApiResultIssueAttachment.java | 255 +++ .../model/ApiResultIssueAuditComment.java | 255 +++ .../model/ApiResultIssueFileBugResponse.java | 255 +++ .../ApiResultIssueFilterSelectorSet.java | 255 +++ .../model/ApiResultIssueSearchOption.java | 255 +++ .../model/ApiResultIssueTemplate.java | 255 +++ .../model/ApiResultIssueViewTemplate.java | 255 +++ .../ssc/restclient/model/ApiResultJob.java | 255 +++ .../restclient/model/ApiResultLDAPEntity.java | 255 +++ .../model/ApiResultLdapRefreshResponse.java | 255 +++ .../model/ApiResultLdapServerDto.java | 255 +++ .../restclient/model/ApiResultLicense.java | 255 +++ .../model/ApiResultListAATrainingStatus.java | 265 +++ .../model/ApiResultListActivityFeed.java | 265 +++ .../ApiResultListAlertDefinitionDto.java | 265 +++ .../model/ApiResultListAlertHistoryEntry.java | 265 +++ .../ApiResultListAlertableEventType.java | 265 +++ .../model/ApiResultListArtifact.java | 265 +++ .../model/ApiResultListAttribute.java | 265 +++ .../ApiResultListAttributeDefinition.java | 265 +++ .../ApiResultListAuditAssistantStatus.java | 265 +++ .../ApiResultListAuthenticationEntity.java | 265 +++ .../ApiResultListAuthenticationToken.java | 265 +++ .../ApiResultListBugFilingRequirements.java | 265 +++ .../model/ApiResultListBugTracker.java | 265 +++ ...ApiResultListBugfieldTemplateGroupDto.java | 265 +++ .../model/ApiResultListBulkResponseItem.java | 265 +++ .../model/ApiResultListCloudJob.java | 265 +++ .../model/ApiResultListCloudPool.java | 265 +++ .../model/ApiResultListCloudPoolMapping.java | 265 +++ .../model/ApiResultListCloudWorker.java | 265 +++ .../model/ApiResultListCustomTag.java | 265 +++ .../model/ApiResultListDashboardVersion.java | 265 +++ .../model/ApiResultListDataExport.java | 265 +++ .../ApiResultListDynamicScanRequest.java | 265 +++ .../model/ApiResultListEngineType.java | 265 +++ .../model/ApiResultListEventLog.java | 265 +++ .../model/ApiResultListFeature.java | 265 +++ .../model/ApiResultListFilterSet.java | 265 +++ .../restclient/model/ApiResultListFolder.java | 265 +++ .../model/ApiResultListIIDMigration.java | 265 +++ .../model/ApiResultListIssueAgingDto.java | 265 +++ .../ApiResultListIssueAgingGroupDto.java | 265 +++ .../model/ApiResultListIssueAssignment.java | 265 +++ .../model/ApiResultListIssueAttachment.java | 265 +++ .../model/ApiResultListIssueAuditComment.java | 265 +++ .../ApiResultListIssueAuditHistoryDto.java | 265 +++ .../model/ApiResultListIssueSearchOption.java | 265 +++ .../model/ApiResultListIssueStatistics.java | 265 +++ .../model/ApiResultListIssueSummary.java | 265 +++ .../model/ApiResultListIssueTemplate.java | 265 +++ .../model/ApiResultListIssueViewTemplate.java | 265 +++ .../restclient/model/ApiResultListJob.java | 265 +++ ...tListJobPriorityChangeCategoryWarning.java | 265 +++ .../model/ApiResultListLDAPEntity.java | 265 +++ .../model/ApiResultListLdapServerDto.java | 265 +++ .../model/ApiResultListLocalUser.java | 265 +++ .../ApiResultListPerformanceIndicator.java | 265 +++ ...ResultListPerformanceIndicatorHistory.java | 265 +++ .../model/ApiResultListPermission.java | 265 +++ .../model/ApiResultListPersona.java | 265 +++ .../model/ApiResultListPluginMetaData.java | 265 +++ .../model/ApiResultListProject.java | 265 +++ .../model/ApiResultListProjectVersion.java | 265 +++ ...ApiResultListProjectVersionBugTracker.java | 265 +++ .../ApiResultListProjectVersionIssue.java | 265 +++ ...iResultListProjectVersionIssueDetails.java | 265 +++ ...ApiResultListProjectVersionIssueGroup.java | 265 +++ .../model/ApiResultListReportDefinition.java | 265 +++ .../model/ApiResultListReportLibrary.java | 265 +++ ...ApiResultListResponsibilityAssignment.java | 265 +++ .../ApiResultListResultProcessingRule.java | 265 +++ .../restclient/model/ApiResultListRole.java | 265 +++ .../model/ApiResultListRulepackCore.java | 265 +++ ...ResultListRulepacksBatchProcessStatus.java | 265 +++ .../model/ApiResultListSavedReport.java | 265 +++ .../restclient/model/ApiResultListScan.java | 265 +++ .../model/ApiResultListSourceFileDto.java | 265 +++ .../ApiResultListSystemConfiguration.java | 265 +++ .../model/ApiResultListTokenDefinition.java | 265 +++ .../model/ApiResultListUserSessionState.java | 265 +++ .../model/ApiResultListVariable.java | 265 +++ .../model/ApiResultListVariableHistory.java | 265 +++ .../model/ApiResultListscanError.java | 265 +++ .../restclient/model/ApiResultLocalUser.java | 255 +++ ...piResultPasswordStrengthCheckResponse.java | 255 +++ .../model/ApiResultPerformanceIndicator.java | 255 +++ .../ApiResultPerformanceIndicatorHistory.java | 255 +++ .../restclient/model/ApiResultPermission.java | 255 +++ .../restclient/model/ApiResultPersona.java | 255 +++ .../model/ApiResultPluginLocalization.java | 265 +++ .../model/ApiResultPluginMetaData.java | 255 +++ .../restclient/model/ApiResultProject.java | 255 +++ .../model/ApiResultProjectVersion.java | 255 +++ .../model/ApiResultProjectVersionIssue.java | 255 +++ .../ApiResultProjectVersionIssueDetails.java | 255 +++ ...piResultProjectVersionRefreshResponse.java | 255 +++ .../ApiResultProjectVersionTestResponse.java | 255 +++ .../model/ApiResultReportDefinition.java | 255 +++ .../model/ApiResultReportLibrary.java | 255 +++ .../ApiResultResponsibilityAssignment.java | 255 +++ .../ssc/restclient/model/ApiResultRole.java | 255 +++ .../model/ApiResultSavedReport.java | 255 +++ .../ssc/restclient/model/ApiResultScan.java | 255 +++ .../model/ApiResultSearchIndexStatus.java | 255 +++ .../model/ApiResultSourceFileDto.java | 255 +++ .../model/ApiResultSystemConfiguration.java | 255 +++ .../ApiResultUserIssueSearchOptions.java | 255 +++ .../model/ApiResultUserPreferences.java | 255 +++ .../ApiResultUserSessionInformation.java | 255 +++ .../model/ApiResultValidationStatus.java | 255 +++ .../restclient/model/ApiResultVariable.java | 255 +++ .../model/ApiResultVariableHistory.java | 255 +++ .../ssc/restclient/model/ApiResultVoid.java | 231 ++ .../model/ApplicationNameTestRequest.java | 94 + .../model/ApplicationNameTestResponse.java | 85 + .../restclient/model/ApplicationState.java | 136 ++ .../ssc/restclient/model/Artifact.java | 1100 ++++++++++ .../model/ArtifactApproveRequest.java | 124 ++ .../model/ArtifactPurgeRequest.java | 101 + .../ssc/restclient/model/AssignedUser.java | 99 + .../ssc/restclient/model/Attribute.java | 162 ++ .../restclient/model/AttributeDefinition.java | 632 ++++++ .../ssc/restclient/model/AttributeOption.java | 301 +++ .../model/AuditAssistantStatus.java | 297 +++ .../model/AuthTokenRevokeRequest.java | 101 + .../model/AuthenticationEntity.java | 317 +++ .../restclient/model/AuthenticationToken.java | 202 ++ .../model/BugFilingRequirements.java | 173 ++ .../model/BugFilingRequirementsRequest.java | 117 ++ .../model/BugFilingRequirementsResponse.java | 95 + .../ssc/restclient/model/BugParam.java | 336 +++ .../model/BugStateManagementCfg.java | 162 ++ .../ssc/restclient/model/BugTracker.java | 234 +++ .../model/BugTrackerConfiguration.java | 186 ++ .../restclient/model/BugTrackerRequest.java | 95 + .../restclient/model/BugfieldTemplateDto.java | 131 ++ .../model/BugfieldTemplateGroupDto.java | 204 ++ .../ssc/restclient/model/BulkRequestData.java | 104 + .../restclient/model/BulkResponseItem.java | 128 ++ .../ssc/restclient/model/CloudJob.java | 617 ++++++ .../model/CloudJobCancelRequest.java | 101 + .../ssc/restclient/model/CloudPool.java | 206 ++ .../restclient/model/CloudPoolMapping.java | 118 ++ ...CloudPoolProjectVersionActionResponse.java | 104 + .../CloudPoolProjectVersionAssignRequest.java | 101 + ...CloudPoolProjectVersionReplaceRequest.java | 101 + .../ssc/restclient/model/CloudPoolStats.java | 278 +++ .../model/CloudPoolWorkerActionResponse.java | 104 + .../model/CloudPoolWorkerAssignRequest.java | 101 + .../model/CloudPoolWorkerDisableRequest.java | 101 + .../model/CloudPoolWorkerReplaceRequest.java | 101 + .../ssc/restclient/model/CloudScanConfig.java | 94 + .../restclient/model/CloudSystemMetrics.java | 114 + .../model/CloudSystemPollStatus.java | 114 + .../restclient/model/CloudSystemSettings.java | 253 +++ .../ssc/restclient/model/CloudWorker.java | 320 +++ .../restclient/model/ConfigProperties.java | 105 + .../ssc/restclient/model/ConfigProperty.java | 416 ++++ .../model/ConfigPropertyValueItem.java | 99 + .../model/ConfigPropertyValueValidation.java | 143 ++ .../ssc/restclient/model/CustomTag.java | 564 +++++ .../ssc/restclient/model/CustomTagInfo.java | 156 ++ .../ssc/restclient/model/CustomTagLookup.java | 294 +++ .../restclient/model/CustomTagLookupInfo.java | 108 + .../restclient/model/DashboardVersion.java | 64 + .../ssc/restclient/model/DataExport.java | 388 ++++ .../restclient/model/DynamicScanRequest.java | 292 +++ .../model/DynamicScanRequestParameter.java | 275 +++ ...DynamicScanRequestParameterDefinition.java | 284 +++ .../DynamicScanRequestParameterOption.java | 186 ++ .../model/DynamicScanRequestTemplate.java | 102 + .../model/DynamicScanRequestsSummary.java | 209 ++ .../model/EmbeddedReportDefinition.java | 127 ++ .../ssc/restclient/model/EmbeddedRoles.java | 104 + .../ssc/restclient/model/EmbeddedScans.java | 104 + .../ssc/restclient/model/EngineType.java | 99 + .../model/EntityStateIdentifier.java | 99 + .../ssc/restclient/model/EventLog.java | 623 ++++++ .../model/ExportAuditToCSVRequest.java | 508 +++++ .../model/ExportIssueStatsToCSVRequest.java | 186 ++ .../ssc/restclient/model/ExternalBugInfo.java | 193 ++ .../fortify/ssc/restclient/model/Feature.java | 113 + .../ssc/restclient/model/FileToken.java | 159 ++ .../ssc/restclient/model/FilterSet.java | 158 ++ .../fortify/ssc/restclient/model/Folder.java | 182 ++ .../ssc/restclient/model/FolderDto.java | 127 ++ .../ssc/restclient/model/FortifyJob.java | 127 ++ .../ssc/restclient/model/IIDMigration.java | 298 +++ .../ssc/restclient/model/IidMapping.java | 116 ++ .../model/InputReportParameter.java | 230 ++ .../ssc/restclient/model/InputStream.java | 62 + .../restclient/model/IssueActionResponse.java | 105 + .../ssc/restclient/model/IssueAgingDto.java | 240 +++ .../restclient/model/IssueAgingGroupDto.java | 99 + .../restclient/model/IssueAgingPortlet.java | 278 +++ .../model/IssueAssignUserRequest.java | 125 ++ .../ssc/restclient/model/IssueAssignment.java | 127 ++ .../ssc/restclient/model/IssueAttachment.java | 174 ++ .../restclient/model/IssueAuditComment.java | 212 ++ .../model/IssueAuditHistoryDto.java | 184 ++ .../restclient/model/IssueAuditRequest.java | 203 ++ .../restclient/model/IssueAuditResult.java | 186 ++ .../restclient/model/IssueFileBugRequest.java | 181 ++ .../model/IssueFileBugResponse.java | 95 + .../restclient/model/IssueFilterSelector.java | 292 +++ .../model/IssueFilterSelectorSet.java | 131 ++ .../ssc/restclient/model/IssuePrimaryTag.java | 163 ++ .../restclient/model/IssueSearchOption.java | 152 ++ .../ssc/restclient/model/IssueSelector.java | 241 +++ .../ssc/restclient/model/IssueStatistics.java | 228 ++ .../ssc/restclient/model/IssueSummary.java | 132 ++ .../model/IssueSuppressRequest.java | 125 ++ .../ssc/restclient/model/IssueTemplate.java | 325 +++ .../model/IssueUpdateTagRequest.java | 126 ++ .../restclient/model/IssueViewTemplate.java | 234 +++ .../com/fortify/ssc/restclient/model/Job.java | 463 ++++ .../restclient/model/JobCancelRequest.java | 101 + .../JobPriorityChangeCategoryWarning.java | 116 ++ .../model/JobPriorityChangeInfo.java | 99 + .../ssc/restclient/model/LDAPEntity.java | 329 +++ .../restclient/model/LdapRefreshResponse.java | 95 + .../ssc/restclient/model/LdapServerDto.java | 1257 +++++++++++ .../model/LdapServerTestRequest.java | 95 + .../fortify/ssc/restclient/model/License.java | 161 ++ .../restclient/model/LicenseCapability.java | 141 ++ .../ssc/restclient/model/LocalUser.java | 370 ++++ .../model/PasswordStrengthCheckRequest.java | 127 ++ .../model/PasswordStrengthCheckResponse.java | 85 + .../model/PerformanceIndicator.java | 420 ++++ .../model/PerformanceIndicatorHistory.java | 201 ++ .../ssc/restclient/model/Permission.java | 209 ++ .../fortify/ssc/restclient/model/Persona.java | 223 ++ .../restclient/model/PluginConfiguration.java | 117 ++ .../model/PluginDisableRequest.java | 101 + .../restclient/model/PluginEnableRequest.java | 101 + .../restclient/model/PluginLocalization.java | 64 + .../ssc/restclient/model/PluginMetaData.java | 499 +++++ .../fortify/ssc/restclient/model/Project.java | 192 ++ .../ssc/restclient/model/ProjectVersion.java | 949 +++++++++ ...ProjectVersionAuditByAssistantRequest.java | 101 + ...ProjectVersionAuthEntityAssignRequest.java | 101 + .../model/ProjectVersionBugTracker.java | 211 ++ ...ProjectVersionCopyCurrentStateRequest.java | 140 ++ .../ProjectVersionCopyPartialRequest.java | 209 ++ .../restclient/model/ProjectVersionIssue.java | 984 +++++++++ .../model/ProjectVersionIssueDetails.java | 1716 +++++++++++++++ .../model/ProjectVersionIssueGroup.java | 209 ++ .../model/ProjectVersionPurgeRequest.java | 101 + .../model/ProjectVersionRefreshRequest.java | 101 + .../model/ProjectVersionRefreshResponse.java | 95 + .../restclient/model/ProjectVersionState.java | 440 ++++ .../model/ProjectVersionTestRequest.java | 117 ++ .../model/ProjectVersionTestResponse.java | 85 + ...jectVersionTrainAuditAssistantRequest.java | 101 + .../restclient/model/ReportAuthEntity.java | 163 ++ .../restclient/model/ReportDefinition.java | 461 ++++ .../ssc/restclient/model/ReportLibrary.java | 223 ++ .../ssc/restclient/model/ReportParameter.java | 333 +++ .../model/ReportParameterOption.java | 209 ++ .../ssc/restclient/model/ReportProject.java | 174 ++ .../model/ReportProjectVersion.java | 140 ++ .../model/ResponsibilityAssignment.java | 255 +++ .../model/ResultProcessingRule.java | 127 ++ .../fortify/ssc/restclient/model/Role.java | 345 +++ .../ssc/restclient/model/RulepackCore.java | 361 ++++ .../model/RulepacksBatchProcessStatus.java | 133 ++ .../ssc/restclient/model/SavedReport.java | 653 ++++++ .../fortify/ssc/restclient/model/Scan.java | 268 +++ .../ssc/restclient/model/ScanError.java | 127 ++ .../restclient/model/SearchIndexStatus.java | 113 + .../ssc/restclient/model/SelectorOption.java | 113 + .../ssc/restclient/model/SourceFileDto.java | 155 ++ .../restclient/model/SystemConfiguration.java | 117 ++ .../ssc/restclient/model/TemplateItem.java | 64 + .../ssc/restclient/model/TokenDefinition.java | 127 ++ .../ssc/restclient/model/TraceNodeDto.java | 321 +++ .../fortify/ssc/restclient/model/Trigger.java | 140 ++ .../model/UserIssueSearchOptions.java | 209 ++ .../ssc/restclient/model/UserPhoto.java | 117 ++ .../ssc/restclient/model/UserPreferences.java | 278 +++ .../model/UserSessionInformation.java | 531 +++++ .../restclient/model/UserSessionState.java | 200 ++ .../restclient/model/ValidationRequest.java | 94 + .../restclient/model/ValidationStatus.java | 117 ++ .../ssc/restclient/model/Variable.java | 432 ++++ .../ssc/restclient/model/VariableHistory.java | 155 ++ .../restclient/model/WIEConfiguration.java | 117 ++ ...atusOfProjectVersionControllerApiTest.java | 53 + .../api/ActivityFeedControllerApiTest.java | 54 + .../api/AlertDefinitionControllerApiTest.java | 141 ++ .../api/AlertHistoryControllerApiTest.java | 91 + .../AlertableEventTypeControllerApiTest.java | 52 + .../ApplicationStateControllerApiTest.java | 68 + .../api/ArtifactControllerApiTest.java | 124 ++ ...factOfProjectVersionControllerApiTest.java | 77 + .../AttributeDefinitionControllerApiTest.java | 141 ++ .../AttributeOfProjectControllerApiTest.java | 109 + ...buteOfProjectVersionControllerApiTest.java | 107 + ...atusOfProjectVersionControllerApiTest.java | 53 + .../AuditHistoryOfIssueControllerApiTest.java | 53 + .../api/AuthEntityControllerApiTest.java | 96 + .../AuthEntityOfProjectControllerApiTest.java | 90 + ...tityOfProjectVersionControllerApiTest.java | 95 + .../api/AuthTokenControllerApiTest.java | 142 ++ ...entsOfProjectVersionControllerApiTest.java | 110 + .../api/BugTrackerControllerApiTest.java | 52 + ...ckerOfProjectVersionControllerApiTest.java | 109 + ...ugfieldTemplateGroupControllerApiTest.java | 137 ++ .../restclient/api/BulkControllerApiTest.java | 53 + .../api/CloudJobControllerApiTest.java | 111 + .../CloudJobOfCloudPoolControllerApiTest.java | 56 + ...loudJobOfCloudWorkerControllerApiTest.java | 55 + .../api/CloudPoolControllerApiTest.java | 126 ++ .../CloudPoolMappingControllerApiTest.java | 86 + .../CloudSystemMetricsControllerApiTest.java | 51 + ...loudSystemPollStatusControllerApiTest.java | 51 + .../CloudSystemSettingsControllerApiTest.java | 51 + .../api/CloudWorkerControllerApiTest.java | 75 + ...oudWorkerOfCloudPoolControllerApiTest.java | 130 ++ .../api/ConfigurationControllerApiTest.java | 134 ++ .../api/CustomTagControllerApiTest.java | 141 ++ ...omTagOfIssueTemplateControllerApiTest.java | 57 + ...mTagOfProjectVersionControllerApiTest.java | 112 + .../DashboardVersionControllerApiTest.java | 63 + .../api/DataExportControllerApiTest.java | 127 ++ ...uestOfProjectVersionControllerApiTest.java | 125 ++ ...lateOfProjectVersionControllerApiTest.java | 52 + ...maryOfProjectVersionControllerApiTest.java | 52 + .../api/EngineTypeControllerApiTest.java | 52 + .../api/EventLogControllerApiTest.java | 56 + .../api/FeatureControllerApiTest.java | 75 + .../api/FileTokenControllerApiTest.java | 69 + ...rSetOfProjectVersionControllerApiTest.java | 55 + .../api/FolderControllerApiTest.java | 51 + ...lderOfProjectVersionControllerApiTest.java | 70 + .../GroupOfAuthEntityControllerApiTest.java | 57 + .../api/IidMigrationControllerApiTest.java | 53 + ...tionOfProjectVersionControllerApiTest.java | 72 + .../InternalCustomTagControllerApiTest.java | 56 + .../api/IssueAgingControllerApiTest.java | 68 + .../api/IssueAgingGroupControllerApiTest.java | 56 + .../IssueAgingPortletControllerApiTest.java | 51 + ...mentOfProjectVersionControllerApiTest.java | 75 + ...sueAttachmentOfIssueControllerApiTest.java | 144 ++ .../IssueAuditCommentControllerApiTest.java | 56 + ...eAuditCommentOfIssueControllerApiTest.java | 73 + .../api/IssueControllerApiTest.java | 74 + .../api/IssueDetailControllerApiTest.java | 72 + ...roupOfProjectVersionControllerApiTest.java | 64 + ...ssueOfProjectVersionControllerApiTest.java | 196 ++ ...rSetOfProjectVersionControllerApiTest.java | 53 + ...ticsOfProjectVersionControllerApiTest.java | 53 + ...maryOfProjectVersionControllerApiTest.java | 59 + .../api/IssueTemplateControllerApiTest.java | 125 ++ .../IssueViewTemplateControllerApiTest.java | 74 + .../restclient/api/JobControllerApiTest.java | 129 ++ ...CategoryWarningOfJobControllerApiTest.java | 54 + .../api/LdapObjectControllerApiTest.java | 177 ++ .../api/LdapServerControllerApiTest.java | 174 ++ .../api/LicenseControllerApiTest.java | 51 + .../api/LocalUserControllerApiTest.java | 159 ++ .../ParserPluginImageControllerApiTest.java | 53 + ...PerformanceIndicatorControllerApiTest.java | 124 ++ ...toryOfProjectVersionControllerApiTest.java | 75 + .../api/PermissionControllerApiTest.java | 74 + .../PermissionOfRoleControllerApiTest.java | 53 + ...RequiredByPermissionControllerApiTest.java | 55 + .../api/PersonaControllerApiTest.java | 124 ++ .../api/PluginControllerApiTest.java | 144 ++ .../api/PluginImageControllerApiTest.java | 52 + .../PluginLocalizationControllerApiTest.java | 54 + .../api/ProjectControllerApiTest.java | 129 ++ .../api/ProjectVersionControllerApiTest.java | 286 +++ ...ionOfAlertDefinitionControllerApiTest.java | 57 + ...tVersionOfAuthEntityControllerApiTest.java | 128 ++ ...ctVersionOfCloudPoolControllerApiTest.java | 112 + ...jectVersionOfProjectControllerApiTest.java | 79 + .../ReportDefinitionControllerApiTest.java | 141 ++ .../api/ReportLibraryControllerApiTest.java | 139 ++ ...yAssignmentOfProjectControllerApiTest.java | 93 + ...mentOfProjectVersionControllerApiTest.java | 93 + ...RuleOfProjectVersionControllerApiTest.java | 71 + .../restclient/api/RoleControllerApiTest.java | 142 ++ .../RoleOfAuthEntityControllerApiTest.java | 53 + .../api/RulepackCoreControllerApiTest.java | 89 + .../api/RulepackUpdateControllerApiTest.java | 51 + .../api/SavedReportControllerApiTest.java | 111 + .../restclient/api/ScanControllerApiTest.java | 53 + .../ScanErrorOfArtifactControllerApiTest.java | 55 + .../api/ScanOfArtifactControllerApiTest.java | 53 + ...FileOfProjectVersionControllerApiTest.java | 75 + .../SystemConfigurationControllerApiTest.java | 70 + .../api/TokenDefinitionControllerApiTest.java | 56 + ...oudWorkerOfCloudPoolControllerApiTest.java | 55 + ...tionOfProjectVersionControllerApiTest.java | 90 + ...erIssueSearchOptionsControllerApiTest.java | 68 + ...ionsOfProjectVersionControllerApiTest.java | 71 + .../api/UserPreferencesControllerApiTest.java | 69 + .../api/UserSessionInfoControllerApiTest.java | 52 + .../UserSessionStateControllerApiTest.java | 71 + .../ValidateEquationControllerApiTest.java | 53 + ...ValidateSearchStringControllerApiTest.java | 53 + .../api/VariableControllerApiTest.java | 124 ++ ...toryOfProjectVersionControllerApiTest.java | 75 + 1057 files changed, 171664 insertions(+), 1 deletion(-) create mode 100644 .swagger-codegen-ignore create mode 100644 .swagger-codegen/VERSION create mode 100644 .travis.yml create mode 100644 build.gradle create mode 100644 build.sbt create mode 100644 config.json create mode 100644 docs/AATrainingStatus.md create mode 100644 docs/AaTrainingStatusOfProjectVersionControllerApi.md create mode 100644 docs/ActivityFeed.md create mode 100644 docs/ActivityFeedControllerApi.md create mode 100644 docs/AlertDefinitionControllerApi.md create mode 100644 docs/AlertDefinitionDto.md create mode 100644 docs/AlertHistoryControllerApi.md create mode 100644 docs/AlertHistoryEntry.md create mode 100644 docs/AlertSetStatusRequest.md create mode 100644 docs/AlertTriggerDto.md create mode 100644 docs/AlertableEventType.md create mode 100644 docs/AlertableEventTypeControllerApi.md create mode 100644 docs/ApiActionResponse.md create mode 100644 docs/ApiBulkRequestItem.md create mode 100644 docs/ApiBulkResponseData.md create mode 100644 docs/ApiBulkResponseItemResponse.md create mode 100644 docs/ApiCollectionActionlong.md create mode 100644 docs/ApiCollectionActionstring.md create mode 100644 docs/ApiResourceAction.md create mode 100644 docs/ApiResult.md create mode 100644 docs/ApiResultAlertDefinitionDto.md create mode 100644 docs/ApiResultApiActionResponse.md create mode 100644 docs/ApiResultApplicationNameTestResponse.md create mode 100644 docs/ApiResultApplicationState.md create mode 100644 docs/ApiResultArraystring.md create mode 100644 docs/ApiResultArtifact.md create mode 100644 docs/ApiResultAttribute.md create mode 100644 docs/ApiResultAttributeDefinition.md create mode 100644 docs/ApiResultAuthenticationEntity.md create mode 100644 docs/ApiResultAuthenticationToken.md create mode 100644 docs/ApiResultBugFilingRequirementsResponse.md create mode 100644 docs/ApiResultBugfieldTemplateGroupDto.md create mode 100644 docs/ApiResultCloudJob.md create mode 100644 docs/ApiResultCloudPool.md create mode 100644 docs/ApiResultCloudPoolMapping.md create mode 100644 docs/ApiResultCloudPoolProjectVersionActionResponse.md create mode 100644 docs/ApiResultCloudPoolWorkerActionResponse.md create mode 100644 docs/ApiResultCloudSystemMetrics.md create mode 100644 docs/ApiResultCloudSystemPollStatus.md create mode 100644 docs/ApiResultCloudSystemSettings.md create mode 100644 docs/ApiResultCloudWorker.md create mode 100644 docs/ApiResultConfigProperties.md create mode 100644 docs/ApiResultConfigProperty.md create mode 100644 docs/ApiResultCustomTag.md create mode 100644 docs/ApiResultDynamicScanRequest.md create mode 100644 docs/ApiResultDynamicScanRequestTemplate.md create mode 100644 docs/ApiResultDynamicScanRequestsSummary.md create mode 100644 docs/ApiResultFeature.md create mode 100644 docs/ApiResultFileToken.md create mode 100644 docs/ApiResultFolder.md create mode 100644 docs/ApiResultIIDMigration.md create mode 100644 docs/ApiResultIssueActionResponse.md create mode 100644 docs/ApiResultIssueAgingPortlet.md create mode 100644 docs/ApiResultIssueAssignment.md create mode 100644 docs/ApiResultIssueAttachment.md create mode 100644 docs/ApiResultIssueAuditComment.md create mode 100644 docs/ApiResultIssueFileBugResponse.md create mode 100644 docs/ApiResultIssueFilterSelectorSet.md create mode 100644 docs/ApiResultIssueSearchOption.md create mode 100644 docs/ApiResultIssueTemplate.md create mode 100644 docs/ApiResultIssueViewTemplate.md create mode 100644 docs/ApiResultJob.md create mode 100644 docs/ApiResultLDAPEntity.md create mode 100644 docs/ApiResultLdapRefreshResponse.md create mode 100644 docs/ApiResultLdapServerDto.md create mode 100644 docs/ApiResultLicense.md create mode 100644 docs/ApiResultListAATrainingStatus.md create mode 100644 docs/ApiResultListActivityFeed.md create mode 100644 docs/ApiResultListAlertDefinitionDto.md create mode 100644 docs/ApiResultListAlertHistoryEntry.md create mode 100644 docs/ApiResultListAlertableEventType.md create mode 100644 docs/ApiResultListArtifact.md create mode 100644 docs/ApiResultListAttribute.md create mode 100644 docs/ApiResultListAttributeDefinition.md create mode 100644 docs/ApiResultListAuditAssistantStatus.md create mode 100644 docs/ApiResultListAuthenticationEntity.md create mode 100644 docs/ApiResultListAuthenticationToken.md create mode 100644 docs/ApiResultListBugFilingRequirements.md create mode 100644 docs/ApiResultListBugTracker.md create mode 100644 docs/ApiResultListBugfieldTemplateGroupDto.md create mode 100644 docs/ApiResultListBulkResponseItem.md create mode 100644 docs/ApiResultListCloudJob.md create mode 100644 docs/ApiResultListCloudPool.md create mode 100644 docs/ApiResultListCloudPoolMapping.md create mode 100644 docs/ApiResultListCloudWorker.md create mode 100644 docs/ApiResultListCustomTag.md create mode 100644 docs/ApiResultListDashboardVersion.md create mode 100644 docs/ApiResultListDataExport.md create mode 100644 docs/ApiResultListDynamicScanRequest.md create mode 100644 docs/ApiResultListEngineType.md create mode 100644 docs/ApiResultListEventLog.md create mode 100644 docs/ApiResultListFeature.md create mode 100644 docs/ApiResultListFilterSet.md create mode 100644 docs/ApiResultListFolder.md create mode 100644 docs/ApiResultListIIDMigration.md create mode 100644 docs/ApiResultListIssueAgingDto.md create mode 100644 docs/ApiResultListIssueAgingGroupDto.md create mode 100644 docs/ApiResultListIssueAssignment.md create mode 100644 docs/ApiResultListIssueAttachment.md create mode 100644 docs/ApiResultListIssueAuditComment.md create mode 100644 docs/ApiResultListIssueAuditHistoryDto.md create mode 100644 docs/ApiResultListIssueSearchOption.md create mode 100644 docs/ApiResultListIssueStatistics.md create mode 100644 docs/ApiResultListIssueSummary.md create mode 100644 docs/ApiResultListIssueTemplate.md create mode 100644 docs/ApiResultListIssueViewTemplate.md create mode 100644 docs/ApiResultListJob.md create mode 100644 docs/ApiResultListJobPriorityChangeCategoryWarning.md create mode 100644 docs/ApiResultListLDAPEntity.md create mode 100644 docs/ApiResultListLdapServerDto.md create mode 100644 docs/ApiResultListLocalUser.md create mode 100644 docs/ApiResultListPerformanceIndicator.md create mode 100644 docs/ApiResultListPerformanceIndicatorHistory.md create mode 100644 docs/ApiResultListPermission.md create mode 100644 docs/ApiResultListPersona.md create mode 100644 docs/ApiResultListPluginMetaData.md create mode 100644 docs/ApiResultListProject.md create mode 100644 docs/ApiResultListProjectVersion.md create mode 100644 docs/ApiResultListProjectVersionBugTracker.md create mode 100644 docs/ApiResultListProjectVersionIssue.md create mode 100644 docs/ApiResultListProjectVersionIssueDetails.md create mode 100644 docs/ApiResultListProjectVersionIssueGroup.md create mode 100644 docs/ApiResultListReportDefinition.md create mode 100644 docs/ApiResultListReportLibrary.md create mode 100644 docs/ApiResultListResponsibilityAssignment.md create mode 100644 docs/ApiResultListResultProcessingRule.md create mode 100644 docs/ApiResultListRole.md create mode 100644 docs/ApiResultListRulepackCore.md create mode 100644 docs/ApiResultListRulepacksBatchProcessStatus.md create mode 100644 docs/ApiResultListSavedReport.md create mode 100644 docs/ApiResultListScan.md create mode 100644 docs/ApiResultListSourceFileDto.md create mode 100644 docs/ApiResultListSystemConfiguration.md create mode 100644 docs/ApiResultListTokenDefinition.md create mode 100644 docs/ApiResultListUserSessionState.md create mode 100644 docs/ApiResultListVariable.md create mode 100644 docs/ApiResultListVariableHistory.md create mode 100644 docs/ApiResultListscanError.md create mode 100644 docs/ApiResultLocalUser.md create mode 100644 docs/ApiResultPasswordStrengthCheckResponse.md create mode 100644 docs/ApiResultPerformanceIndicator.md create mode 100644 docs/ApiResultPerformanceIndicatorHistory.md create mode 100644 docs/ApiResultPermission.md create mode 100644 docs/ApiResultPersona.md create mode 100644 docs/ApiResultPluginLocalization.md create mode 100644 docs/ApiResultPluginMetaData.md create mode 100644 docs/ApiResultProject.md create mode 100644 docs/ApiResultProjectVersion.md create mode 100644 docs/ApiResultProjectVersionIssue.md create mode 100644 docs/ApiResultProjectVersionIssueDetails.md create mode 100644 docs/ApiResultProjectVersionRefreshResponse.md create mode 100644 docs/ApiResultProjectVersionTestResponse.md create mode 100644 docs/ApiResultReportDefinition.md create mode 100644 docs/ApiResultReportLibrary.md create mode 100644 docs/ApiResultResponsibilityAssignment.md create mode 100644 docs/ApiResultRole.md create mode 100644 docs/ApiResultSavedReport.md create mode 100644 docs/ApiResultScan.md create mode 100644 docs/ApiResultSearchIndexStatus.md create mode 100644 docs/ApiResultSourceFileDto.md create mode 100644 docs/ApiResultSystemConfiguration.md create mode 100644 docs/ApiResultUserIssueSearchOptions.md create mode 100644 docs/ApiResultUserPreferences.md create mode 100644 docs/ApiResultUserSessionInformation.md create mode 100644 docs/ApiResultValidationStatus.md create mode 100644 docs/ApiResultVariable.md create mode 100644 docs/ApiResultVariableHistory.md create mode 100644 docs/ApiResultVoid.md create mode 100644 docs/ApplicationNameTestRequest.md create mode 100644 docs/ApplicationNameTestResponse.md create mode 100644 docs/ApplicationState.md create mode 100644 docs/ApplicationStateControllerApi.md create mode 100644 docs/Artifact.md create mode 100644 docs/ArtifactApproveRequest.md create mode 100644 docs/ArtifactControllerApi.md create mode 100644 docs/ArtifactOfProjectVersionControllerApi.md create mode 100644 docs/ArtifactPurgeRequest.md create mode 100644 docs/AssignedUser.md create mode 100644 docs/Attribute.md create mode 100644 docs/AttributeDefinition.md create mode 100644 docs/AttributeDefinitionControllerApi.md create mode 100644 docs/AttributeOfProjectControllerApi.md create mode 100644 docs/AttributeOfProjectVersionControllerApi.md create mode 100644 docs/AttributeOption.md create mode 100644 docs/AuditAssistantStatus.md create mode 100644 docs/AuditAssistantStatusOfProjectVersionControllerApi.md create mode 100644 docs/AuditHistoryOfIssueControllerApi.md create mode 100644 docs/AuthEntityControllerApi.md create mode 100644 docs/AuthEntityOfProjectControllerApi.md create mode 100644 docs/AuthEntityOfProjectVersionControllerApi.md create mode 100644 docs/AuthTokenControllerApi.md create mode 100644 docs/AuthTokenRevokeRequest.md create mode 100644 docs/AuthenticationEntity.md create mode 100644 docs/AuthenticationToken.md create mode 100644 docs/BugFilingRequirements.md create mode 100644 docs/BugFilingRequirementsOfProjectVersionControllerApi.md create mode 100644 docs/BugFilingRequirementsRequest.md create mode 100644 docs/BugFilingRequirementsResponse.md create mode 100644 docs/BugParam.md create mode 100644 docs/BugStateManagementCfg.md create mode 100644 docs/BugTracker.md create mode 100644 docs/BugTrackerConfiguration.md create mode 100644 docs/BugTrackerControllerApi.md create mode 100644 docs/BugTrackerOfProjectVersionControllerApi.md create mode 100644 docs/BugTrackerRequest.md create mode 100644 docs/BugfieldTemplateDto.md create mode 100644 docs/BugfieldTemplateGroupControllerApi.md create mode 100644 docs/BugfieldTemplateGroupDto.md create mode 100644 docs/BulkControllerApi.md create mode 100644 docs/BulkRequestData.md create mode 100644 docs/BulkResponseItem.md create mode 100644 docs/CloudJob.md create mode 100644 docs/CloudJobCancelRequest.md create mode 100644 docs/CloudJobControllerApi.md create mode 100644 docs/CloudJobOfCloudPoolControllerApi.md create mode 100644 docs/CloudJobOfCloudWorkerControllerApi.md create mode 100644 docs/CloudPool.md create mode 100644 docs/CloudPoolControllerApi.md create mode 100644 docs/CloudPoolMapping.md create mode 100644 docs/CloudPoolMappingControllerApi.md create mode 100644 docs/CloudPoolProjectVersionActionResponse.md create mode 100644 docs/CloudPoolProjectVersionAssignRequest.md create mode 100644 docs/CloudPoolProjectVersionReplaceRequest.md create mode 100644 docs/CloudPoolStats.md create mode 100644 docs/CloudPoolWorkerActionResponse.md create mode 100644 docs/CloudPoolWorkerAssignRequest.md create mode 100644 docs/CloudPoolWorkerDisableRequest.md create mode 100644 docs/CloudPoolWorkerReplaceRequest.md create mode 100644 docs/CloudScanConfig.md create mode 100644 docs/CloudSystemMetrics.md create mode 100644 docs/CloudSystemMetricsControllerApi.md create mode 100644 docs/CloudSystemPollStatus.md create mode 100644 docs/CloudSystemPollStatusControllerApi.md create mode 100644 docs/CloudSystemSettings.md create mode 100644 docs/CloudSystemSettingsControllerApi.md create mode 100644 docs/CloudWorker.md create mode 100644 docs/CloudWorkerControllerApi.md create mode 100644 docs/CloudWorkerOfCloudPoolControllerApi.md create mode 100644 docs/ConfigProperties.md create mode 100644 docs/ConfigProperty.md create mode 100644 docs/ConfigPropertyValueItem.md create mode 100644 docs/ConfigPropertyValueValidation.md create mode 100644 docs/ConfigurationControllerApi.md create mode 100644 docs/CustomTag.md create mode 100644 docs/CustomTagControllerApi.md create mode 100644 docs/CustomTagInfo.md create mode 100644 docs/CustomTagLookup.md create mode 100644 docs/CustomTagLookupInfo.md create mode 100644 docs/CustomTagOfIssueTemplateControllerApi.md create mode 100644 docs/CustomTagOfProjectVersionControllerApi.md create mode 100644 docs/DashboardVersion.md create mode 100644 docs/DashboardVersionControllerApi.md create mode 100644 docs/DataExport.md create mode 100644 docs/DataExportControllerApi.md create mode 100644 docs/DynamicScanRequest.md create mode 100644 docs/DynamicScanRequestOfProjectVersionControllerApi.md create mode 100644 docs/DynamicScanRequestParameter.md create mode 100644 docs/DynamicScanRequestParameterDefinition.md create mode 100644 docs/DynamicScanRequestParameterOption.md create mode 100644 docs/DynamicScanRequestTemplate.md create mode 100644 docs/DynamicScanRequestTemplateOfProjectVersionControllerApi.md create mode 100644 docs/DynamicScanRequestsSummary.md create mode 100644 docs/DynamicScanRequestsSummaryOfProjectVersionControllerApi.md create mode 100644 docs/EmbeddedReportDefinition.md create mode 100644 docs/EmbeddedRoles.md create mode 100644 docs/EmbeddedScans.md create mode 100644 docs/EngineType.md create mode 100644 docs/EngineTypeControllerApi.md create mode 100644 docs/EntityStateIdentifier.md create mode 100644 docs/EventLog.md create mode 100644 docs/EventLogControllerApi.md create mode 100644 docs/ExportAuditToCSVRequest.md create mode 100644 docs/ExportIssueStatsToCSVRequest.md create mode 100644 docs/ExternalBugInfo.md create mode 100644 docs/Feature.md create mode 100644 docs/FeatureControllerApi.md create mode 100644 docs/FileToken.md create mode 100644 docs/FileTokenControllerApi.md create mode 100644 docs/FilterSet.md create mode 100644 docs/FilterSetOfProjectVersionControllerApi.md create mode 100644 docs/Folder.md create mode 100644 docs/FolderControllerApi.md create mode 100644 docs/FolderDto.md create mode 100644 docs/FolderOfProjectVersionControllerApi.md create mode 100644 docs/FortifyJob.md create mode 100644 docs/GroupOfAuthEntityControllerApi.md create mode 100644 docs/IIDMigration.md create mode 100644 docs/IidMapping.md create mode 100644 docs/IidMigrationControllerApi.md create mode 100644 docs/IidMigrationOfProjectVersionControllerApi.md create mode 100644 docs/InputReportParameter.md create mode 100644 docs/InputStream.md create mode 100644 docs/InternalCustomTagControllerApi.md create mode 100644 docs/IssueActionResponse.md create mode 100644 docs/IssueAgingControllerApi.md create mode 100644 docs/IssueAgingDto.md create mode 100644 docs/IssueAgingGroupControllerApi.md create mode 100644 docs/IssueAgingGroupDto.md create mode 100644 docs/IssueAgingPortlet.md create mode 100644 docs/IssueAgingPortletControllerApi.md create mode 100644 docs/IssueAssignUserRequest.md create mode 100644 docs/IssueAssignment.md create mode 100644 docs/IssueAssignmentOfProjectVersionControllerApi.md create mode 100644 docs/IssueAttachment.md create mode 100644 docs/IssueAttachmentOfIssueControllerApi.md create mode 100644 docs/IssueAuditComment.md create mode 100644 docs/IssueAuditCommentControllerApi.md create mode 100644 docs/IssueAuditCommentOfIssueControllerApi.md create mode 100644 docs/IssueAuditHistoryDto.md create mode 100644 docs/IssueAuditRequest.md create mode 100644 docs/IssueAuditResult.md create mode 100644 docs/IssueControllerApi.md create mode 100644 docs/IssueDetailControllerApi.md create mode 100644 docs/IssueFileBugRequest.md create mode 100644 docs/IssueFileBugResponse.md create mode 100644 docs/IssueFilterSelector.md create mode 100644 docs/IssueFilterSelectorSet.md create mode 100644 docs/IssueGroupOfProjectVersionControllerApi.md create mode 100644 docs/IssueOfProjectVersionControllerApi.md create mode 100644 docs/IssuePrimaryTag.md create mode 100644 docs/IssueSearchOption.md create mode 100644 docs/IssueSelector.md create mode 100644 docs/IssueSelectorSetOfProjectVersionControllerApi.md create mode 100644 docs/IssueStatistics.md create mode 100644 docs/IssueStatisticsOfProjectVersionControllerApi.md create mode 100644 docs/IssueSummary.md create mode 100644 docs/IssueSummaryOfProjectVersionControllerApi.md create mode 100644 docs/IssueSuppressRequest.md create mode 100644 docs/IssueTemplate.md create mode 100644 docs/IssueTemplateControllerApi.md create mode 100644 docs/IssueUpdateTagRequest.md create mode 100644 docs/IssueViewTemplate.md create mode 100644 docs/IssueViewTemplateControllerApi.md create mode 100644 docs/Job.md create mode 100644 docs/JobCancelRequest.md create mode 100644 docs/JobControllerApi.md create mode 100644 docs/JobPriorityChangeCategoryWarning.md create mode 100644 docs/JobPriorityChangeCategoryWarningOfJobControllerApi.md create mode 100644 docs/JobPriorityChangeInfo.md create mode 100644 docs/LDAPEntity.md create mode 100644 docs/LdapObjectControllerApi.md create mode 100644 docs/LdapRefreshResponse.md create mode 100644 docs/LdapServerControllerApi.md create mode 100644 docs/LdapServerDto.md create mode 100644 docs/LdapServerTestRequest.md create mode 100644 docs/License.md create mode 100644 docs/LicenseCapability.md create mode 100644 docs/LicenseControllerApi.md create mode 100644 docs/LocalUser.md create mode 100644 docs/LocalUserControllerApi.md create mode 100644 docs/ParserPluginImageControllerApi.md create mode 100644 docs/PasswordStrengthCheckRequest.md create mode 100644 docs/PasswordStrengthCheckResponse.md create mode 100644 docs/PerformanceIndicator.md create mode 100644 docs/PerformanceIndicatorControllerApi.md create mode 100644 docs/PerformanceIndicatorHistory.md create mode 100644 docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md create mode 100644 docs/Permission.md create mode 100644 docs/PermissionControllerApi.md create mode 100644 docs/PermissionOfRoleControllerApi.md create mode 100644 docs/PermissionRequiredByPermissionControllerApi.md create mode 100644 docs/Persona.md create mode 100644 docs/PersonaControllerApi.md create mode 100644 docs/PluginConfiguration.md create mode 100644 docs/PluginControllerApi.md create mode 100644 docs/PluginDisableRequest.md create mode 100644 docs/PluginEnableRequest.md create mode 100644 docs/PluginImageControllerApi.md create mode 100644 docs/PluginLocalization.md create mode 100644 docs/PluginLocalizationControllerApi.md create mode 100644 docs/PluginMetaData.md create mode 100644 docs/Project.md create mode 100644 docs/ProjectControllerApi.md create mode 100644 docs/ProjectVersion.md create mode 100644 docs/ProjectVersionAuditByAssistantRequest.md create mode 100644 docs/ProjectVersionAuthEntityAssignRequest.md create mode 100644 docs/ProjectVersionBugTracker.md create mode 100644 docs/ProjectVersionControllerApi.md create mode 100644 docs/ProjectVersionCopyCurrentStateRequest.md create mode 100644 docs/ProjectVersionCopyPartialRequest.md create mode 100644 docs/ProjectVersionIssue.md create mode 100644 docs/ProjectVersionIssueDetails.md create mode 100644 docs/ProjectVersionIssueGroup.md create mode 100644 docs/ProjectVersionOfAlertDefinitionControllerApi.md create mode 100644 docs/ProjectVersionOfAuthEntityControllerApi.md create mode 100644 docs/ProjectVersionOfCloudPoolControllerApi.md create mode 100644 docs/ProjectVersionOfProjectControllerApi.md create mode 100644 docs/ProjectVersionPurgeRequest.md create mode 100644 docs/ProjectVersionRefreshRequest.md create mode 100644 docs/ProjectVersionRefreshResponse.md create mode 100644 docs/ProjectVersionState.md create mode 100644 docs/ProjectVersionTestRequest.md create mode 100644 docs/ProjectVersionTestResponse.md create mode 100644 docs/ProjectVersionTrainAuditAssistantRequest.md create mode 100644 docs/ReportAuthEntity.md create mode 100644 docs/ReportDefinition.md create mode 100644 docs/ReportDefinitionControllerApi.md create mode 100644 docs/ReportLibrary.md create mode 100644 docs/ReportLibraryControllerApi.md create mode 100644 docs/ReportParameter.md create mode 100644 docs/ReportParameterOption.md create mode 100644 docs/ReportProject.md create mode 100644 docs/ReportProjectVersion.md create mode 100644 docs/ResponsibilityAssignment.md create mode 100644 docs/ResponsibilityAssignmentOfProjectControllerApi.md create mode 100644 docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md create mode 100644 docs/ResultProcessingRule.md create mode 100644 docs/ResultProcessingRuleOfProjectVersionControllerApi.md create mode 100644 docs/Role.md create mode 100644 docs/RoleControllerApi.md create mode 100644 docs/RoleOfAuthEntityControllerApi.md create mode 100644 docs/RulepackCore.md create mode 100644 docs/RulepackCoreControllerApi.md create mode 100644 docs/RulepackUpdateControllerApi.md create mode 100644 docs/RulepacksBatchProcessStatus.md create mode 100644 docs/SavedReport.md create mode 100644 docs/SavedReportControllerApi.md create mode 100644 docs/Scan.md create mode 100644 docs/ScanControllerApi.md create mode 100644 docs/ScanError.md create mode 100644 docs/ScanErrorOfArtifactControllerApi.md create mode 100644 docs/ScanOfArtifactControllerApi.md create mode 100644 docs/SearchIndexStatus.md create mode 100644 docs/SelectorOption.md create mode 100644 docs/SourceFileDto.md create mode 100644 docs/SourceFileOfProjectVersionControllerApi.md create mode 100644 docs/SystemConfiguration.md create mode 100644 docs/SystemConfigurationControllerApi.md create mode 100644 docs/TemplateItem.md create mode 100644 docs/TokenDefinition.md create mode 100644 docs/TokenDefinitionControllerApi.md create mode 100644 docs/TraceNodeDto.md create mode 100644 docs/Trigger.md create mode 100644 docs/UnassignedCloudWorkerOfCloudPoolControllerApi.md create mode 100644 docs/UserIssueSearchOptionOfProjectVersionControllerApi.md create mode 100644 docs/UserIssueSearchOptions.md create mode 100644 docs/UserIssueSearchOptionsControllerApi.md create mode 100644 docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md create mode 100644 docs/UserPhoto.md create mode 100644 docs/UserPreferences.md create mode 100644 docs/UserPreferencesControllerApi.md create mode 100644 docs/UserSessionInfoControllerApi.md create mode 100644 docs/UserSessionInformation.md create mode 100644 docs/UserSessionState.md create mode 100644 docs/UserSessionStateControllerApi.md create mode 100644 docs/ValidateEquationControllerApi.md create mode 100644 docs/ValidateSearchStringControllerApi.md create mode 100644 docs/ValidationRequest.md create mode 100644 docs/ValidationStatus.md create mode 100644 docs/Variable.md create mode 100644 docs/VariableControllerApi.md create mode 100644 docs/VariableHistory.md create mode 100644 docs/VariableHistoryOfProjectVersionControllerApi.md create mode 100644 docs/WIEConfiguration.md create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 pom.xml create mode 100644 settings.gradle create mode 100644 spec.json create mode 100644 src/main/AndroidManifest.xml create mode 100644 src/main/java/com/fortify/ssc/restclient/ApiCallback.java create mode 100644 src/main/java/com/fortify/ssc/restclient/ApiClient.java create mode 100644 src/main/java/com/fortify/ssc/restclient/ApiException.java create mode 100644 src/main/java/com/fortify/ssc/restclient/ApiResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/Configuration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/GzipRequestInterceptor.java create mode 100644 src/main/java/com/fortify/ssc/restclient/JSON.java create mode 100644 src/main/java/com/fortify/ssc/restclient/Pair.java create mode 100644 src/main/java/com/fortify/ssc/restclient/ProgressRequestBody.java create mode 100644 src/main/java/com/fortify/ssc/restclient/ProgressResponseBody.java create mode 100644 src/main/java/com/fortify/ssc/restclient/StringUtil.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ArtifactControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuthEntityControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/AuthTokenControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/BugTrackerControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/BulkControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudJobControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudPoolControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ConfigurationControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CustomTagControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/DataExportControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/EngineTypeControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/EventLogControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/FeatureControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/FileTokenControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/FolderControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IidMigrationControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAgingControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueDetailControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/JobControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/LdapObjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/LdapServerControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/LicenseControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/LocalUserControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PermissionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PersonaControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PluginControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PluginImageControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/RoleControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/SavedReportControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ScanControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/VariableControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApi.java create mode 100644 src/main/java/com/fortify/ssc/restclient/auth/ApiKeyAuth.java create mode 100644 src/main/java/com/fortify/ssc/restclient/auth/Authentication.java create mode 100644 src/main/java/com/fortify/ssc/restclient/auth/HttpBasicAuth.java create mode 100644 src/main/java/com/fortify/ssc/restclient/auth/OAuth.java create mode 100644 src/main/java/com/fortify/ssc/restclient/auth/OAuthFlow.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AATrainingStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ActivityFeed.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AlertDefinitionDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AlertHistoryEntry.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AlertSetStatusRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AlertTriggerDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AlertableEventType.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiBulkRequestItem.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseData.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseItemResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionlong.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionstring.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResourceAction.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResult.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultAlertDefinitionDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultApiActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationNameTestResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationState.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultArraystring.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultArtifact.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultAttribute.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultAttributeDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationToken.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultBugFilingRequirementsResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultBugfieldTemplateGroupDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPool.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolMapping.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolProjectVersionActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolWorkerActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemMetrics.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemPollStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemSettings.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudWorker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperties.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperty.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultCustomTag.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestsSummary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultFeature.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultFileToken.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultFolder.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIIDMigration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAgingPortlet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAttachment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAuditComment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFileBugResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFilterSelectorSet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueSearchOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueViewTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultLDAPEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapRefreshResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapServerDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultLicense.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAATrainingStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListActivityFeed.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertDefinitionDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertHistoryEntry.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertableEventType.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListArtifact.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttribute.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttributeDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuditAssistantStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationToken.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugFilingRequirements.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugTracker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugfieldTemplateGroupDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListBulkResponseItem.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPool.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPoolMapping.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudWorker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListCustomTag.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListDashboardVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListDataExport.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListDynamicScanRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListEngineType.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListEventLog.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListFeature.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListFilterSet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListFolder.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIIDMigration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingGroupDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAttachment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditComment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditHistoryDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSearchOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueStatistics.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSummary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueViewTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListJobPriorityChangeCategoryWarning.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListLDAPEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListLdapServerDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListLocalUser.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicator.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicatorHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListPermission.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListPersona.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListPluginMetaData.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProject.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionBugTracker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssue.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueDetails.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueGroup.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportLibrary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListResponsibilityAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListResultProcessingRule.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListRole.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepackCore.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepacksBatchProcessStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListSavedReport.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListScan.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListSourceFileDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListSystemConfiguration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListTokenDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListUserSessionState.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariable.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariableHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultListscanError.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultLocalUser.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPasswordStrengthCheckResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicator.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicatorHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPermission.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPersona.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginLocalization.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginMetaData.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProject.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssue.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssueDetails.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionRefreshResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionTestResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultReportDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultReportLibrary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultResponsibilityAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultRole.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultSavedReport.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultScan.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultSearchIndexStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultSourceFileDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultSystemConfiguration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultUserIssueSearchOptions.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultUserPreferences.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultUserSessionInformation.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultValidationStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultVariable.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultVariableHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApiResultVoid.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ApplicationState.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Artifact.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ArtifactApproveRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ArtifactPurgeRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AssignedUser.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Attribute.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AttributeDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AttributeOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AuditAssistantStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AuthTokenRevokeRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AuthenticationEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/AuthenticationToken.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirements.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugParam.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugStateManagementCfg.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugTracker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugTrackerConfiguration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugTrackerRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateGroupDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BulkRequestData.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/BulkResponseItem.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudJobCancelRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPool.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolMapping.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionAssignRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionReplaceRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolStats.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerAssignRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerDisableRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerReplaceRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudScanConfig.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudSystemMetrics.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudSystemPollStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudSystemSettings.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CloudWorker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ConfigProperties.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ConfigProperty.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueItem.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueValidation.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CustomTag.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CustomTagInfo.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CustomTagLookup.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/CustomTagLookupInfo.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DashboardVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DataExport.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameter.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestsSummary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EmbeddedReportDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EmbeddedRoles.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EmbeddedScans.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EngineType.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EntityStateIdentifier.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/EventLog.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ExportAuditToCSVRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ExportIssueStatsToCSVRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ExternalBugInfo.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Feature.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/FileToken.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/FilterSet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Folder.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/FolderDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/FortifyJob.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IIDMigration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IidMapping.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/InputReportParameter.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/InputStream.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueActionResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAgingDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAgingGroupDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAgingPortlet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAssignUserRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAttachment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAuditComment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAuditHistoryDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAuditRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueAuditResult.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueFileBugRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueFileBugResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelector.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelectorSet.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssuePrimaryTag.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueSearchOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueSelector.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueStatistics.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueSummary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueSuppressRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueUpdateTagRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/IssueViewTemplate.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Job.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/JobCancelRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeCategoryWarning.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeInfo.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LDAPEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LdapRefreshResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LdapServerDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LdapServerTestRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/License.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LicenseCapability.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/LocalUser.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicator.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicatorHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Permission.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Persona.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PluginConfiguration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PluginDisableRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PluginEnableRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PluginLocalization.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/PluginMetaData.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Project.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuditByAssistantRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuthEntityAssignRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionBugTracker.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyCurrentStateRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyPartialRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssue.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueDetails.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueGroup.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionPurgeRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionState.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestResponse.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTrainAuditAssistantRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportAuthEntity.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportLibrary.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportParameter.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportParameterOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportProject.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ReportProjectVersion.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ResponsibilityAssignment.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ResultProcessingRule.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Role.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/RulepackCore.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/RulepacksBatchProcessStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/SavedReport.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Scan.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ScanError.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/SearchIndexStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/SelectorOption.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/SourceFileDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/SystemConfiguration.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/TemplateItem.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/TokenDefinition.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/TraceNodeDto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Trigger.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/UserIssueSearchOptions.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/UserPhoto.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/UserPreferences.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/UserSessionInformation.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/UserSessionState.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ValidationRequest.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/ValidationStatus.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/Variable.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/VariableHistory.java create mode 100644 src/main/java/com/fortify/ssc/restclient/model/WIEConfiguration.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ArtifactControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuthEntityControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/AuthTokenControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/BugTrackerControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/BulkControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudJobControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudPoolControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ConfigurationControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CustomTagControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/DataExportControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/EngineTypeControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/EventLogControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/FeatureControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/FileTokenControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/FolderControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IidMigrationControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAgingControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueDetailControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/JobControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/LdapObjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/LdapServerControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/LicenseControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/LocalUserControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PermissionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PersonaControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PluginControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PluginImageControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/RoleControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/SavedReportControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ScanControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/VariableControllerApiTest.java create mode 100644 src/test/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApiTest.java diff --git a/.gitignore b/.gitignore index a1c2a23..a451817 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,9 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* + +# build files +**/target +target +.gradle +build diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION new file mode 100644 index 0000000..a625450 --- /dev/null +++ b/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.3.1 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..70cb81a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +# +# Generated by: https://github.com/swagger-api/swagger-codegen.git +# +language: java +jdk: + - oraclejdk8 + - oraclejdk7 +before_install: + # ensure gradlew has proper permission + - chmod a+x ./gradlew +script: + # test using maven + - mvn test + # uncomment below to test using gradle + # - gradle test + # uncomment below to test using sbt + # - sbt test diff --git a/LICENSE b/LICENSE index ccd7e2a..c5576e4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Fortify +Copyright (c) 2019 Micro Focus or one of its affiliates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ff92f5f..cd8877c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,798 @@ # ssc-restapi-client Communicate with Fortify Software Security Center through REST API in java, a swagger generated client + +## Generated client notice: + +To regenerate the client, we used this command: + +```shell +java -jar swagger-codegen-cli-2.3.1.jar generate -i spec.json -l java -o ssc-restapi-client -c config.json +``` + +## Requirements + +Building the API client library requires [Maven](https://maven.apache.org/) to be installed. + +## Installation + +To install the API client library to your local Maven repository, simply execute: + +```shell +mvn install +``` + +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: + +```shell +mvn deploy +``` + +Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + com.fortify + ssc-restapi-client + 2.0 + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy +compile "com.fortify:ssc-restapi-client:2.0" +``` + +### Others + +At first generate the JAR by executing: + + mvn package + +Then manually install the following JARs: + +* target/ssc-restapi-client-2.0.jar +* target/lib/*.jar + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following Java code: + +```java + +import com.fortify.ssc.restclient.*; +import com.fortify.ssc.restclient.auth.*; +import com.fortify.ssc.restclient.model.*; +import com.fortify.ssc.restclient.api.AaTrainingStatusOfProjectVersionControllerApi; + +import java.io.File; +import java.util.*; + +public class AaTrainingStatusOfProjectVersionControllerApiExample { + + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: FortifyToken + ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); + FortifyToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //FortifyToken.setApiKeyPrefix("Token"); + + AaTrainingStatusOfProjectVersionControllerApi apiInstance = new AaTrainingStatusOfProjectVersionControllerApi(); + Long parentId = 789L; // Long | parentId + String fields = "fields_example"; // String | Output fields + try { + ApiResultListAATrainingStatus result = apiInstance.listAaTrainingStatusOfProjectVersion(parentId, fields); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AaTrainingStatusOfProjectVersionControllerApi#listAaTrainingStatusOfProjectVersion"); + e.printStackTrace(); + } + } +} + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AaTrainingStatusOfProjectVersionControllerApi* | [**listAaTrainingStatusOfProjectVersion**](docs/AaTrainingStatusOfProjectVersionControllerApi.md#listAaTrainingStatusOfProjectVersion) | **GET** /projectVersions/{parentId}/auditAssistantTrainingStatus | list +*ActivityFeedControllerApi* | [**listActivityFeed**](docs/ActivityFeedControllerApi.md#listActivityFeed) | **GET** /activityFeedEvents | list +*AlertDefinitionControllerApi* | [**createAlertDefinition**](docs/AlertDefinitionControllerApi.md#createAlertDefinition) | **POST** /alertDefinitions | create +*AlertDefinitionControllerApi* | [**deleteAlertDefinition**](docs/AlertDefinitionControllerApi.md#deleteAlertDefinition) | **DELETE** /alertDefinitions/{id} | delete +*AlertDefinitionControllerApi* | [**listAlertDefinition**](docs/AlertDefinitionControllerApi.md#listAlertDefinition) | **GET** /alertDefinitions | list +*AlertDefinitionControllerApi* | [**multiDeleteAlertDefinition**](docs/AlertDefinitionControllerApi.md#multiDeleteAlertDefinition) | **DELETE** /alertDefinitions | multiDelete +*AlertDefinitionControllerApi* | [**readAlertDefinition**](docs/AlertDefinitionControllerApi.md#readAlertDefinition) | **GET** /alertDefinitions/{id} | read +*AlertDefinitionControllerApi* | [**updateAlertDefinition**](docs/AlertDefinitionControllerApi.md#updateAlertDefinition) | **PUT** /alertDefinitions/{id} | update +*AlertHistoryControllerApi* | [**doActionAlertHistory**](docs/AlertHistoryControllerApi.md#doActionAlertHistory) | **POST** /alerts/action | doAction +*AlertHistoryControllerApi* | [**listAlertHistory**](docs/AlertHistoryControllerApi.md#listAlertHistory) | **GET** /alerts | list +*AlertHistoryControllerApi* | [**setStatusForAlertHistory**](docs/AlertHistoryControllerApi.md#setStatusForAlertHistory) | **POST** /alerts/action/setStatus | setStatusFor +*AlertableEventTypeControllerApi* | [**listAlertableEventType**](docs/AlertableEventTypeControllerApi.md#listAlertableEventType) | **GET** /alertableEventTypes | list +*ApplicationStateControllerApi* | [**getApplicationState**](docs/ApplicationStateControllerApi.md#getApplicationState) | **GET** /applicationState | get +*ApplicationStateControllerApi* | [**putApplicationState**](docs/ApplicationStateControllerApi.md#putApplicationState) | **PUT** /applicationState | put +*ArtifactControllerApi* | [**approveArtifact**](docs/ArtifactControllerApi.md#approveArtifact) | **POST** /artifacts/action/approve | approve +*ArtifactControllerApi* | [**deleteArtifact**](docs/ArtifactControllerApi.md#deleteArtifact) | **DELETE** /artifacts/{id} | delete +*ArtifactControllerApi* | [**doActionArtifact**](docs/ArtifactControllerApi.md#doActionArtifact) | **POST** /artifacts/{id}/action | doAction +*ArtifactControllerApi* | [**purgeArtifact**](docs/ArtifactControllerApi.md#purgeArtifact) | **POST** /artifacts/action/purge | purge +*ArtifactControllerApi* | [**readArtifact**](docs/ArtifactControllerApi.md#readArtifact) | **GET** /artifacts/{id} | read +*ArtifactOfProjectVersionControllerApi* | [**listArtifactOfProjectVersion**](docs/ArtifactOfProjectVersionControllerApi.md#listArtifactOfProjectVersion) | **GET** /projectVersions/{parentId}/artifacts | list +*ArtifactOfProjectVersionControllerApi* | [**uploadArtifactOfProjectVersion**](docs/ArtifactOfProjectVersionControllerApi.md#uploadArtifactOfProjectVersion) | **POST** /projectVersions/{parentId}/artifacts | upload +*AttributeDefinitionControllerApi* | [**createAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#createAttributeDefinition) | **POST** /attributeDefinitions | create +*AttributeDefinitionControllerApi* | [**deleteAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#deleteAttributeDefinition) | **DELETE** /attributeDefinitions/{id} | delete +*AttributeDefinitionControllerApi* | [**listAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#listAttributeDefinition) | **GET** /attributeDefinitions | list +*AttributeDefinitionControllerApi* | [**multiDeleteAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#multiDeleteAttributeDefinition) | **DELETE** /attributeDefinitions | multiDelete +*AttributeDefinitionControllerApi* | [**readAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#readAttributeDefinition) | **GET** /attributeDefinitions/{id} | read +*AttributeDefinitionControllerApi* | [**updateAttributeDefinition**](docs/AttributeDefinitionControllerApi.md#updateAttributeDefinition) | **PUT** /attributeDefinitions/{id} | update +*AttributeOfProjectControllerApi* | [**createAttributeOfProject**](docs/AttributeOfProjectControllerApi.md#createAttributeOfProject) | **POST** /projects/{parentId}/attributes | create +*AttributeOfProjectControllerApi* | [**listAttributeOfProject**](docs/AttributeOfProjectControllerApi.md#listAttributeOfProject) | **GET** /projects/{parentId}/attributes | list +*AttributeOfProjectControllerApi* | [**readAttributeOfProject**](docs/AttributeOfProjectControllerApi.md#readAttributeOfProject) | **GET** /projects/{parentId}/attributes/{id} | read +*AttributeOfProjectControllerApi* | [**updateCollectionAttributeOfProject**](docs/AttributeOfProjectControllerApi.md#updateCollectionAttributeOfProject) | **PUT** /projects/{parentId}/attributes | updateCollection +*AttributeOfProjectVersionControllerApi* | [**createAttributeOfProjectVersion**](docs/AttributeOfProjectVersionControllerApi.md#createAttributeOfProjectVersion) | **POST** /projectVersions/{parentId}/attributes | create +*AttributeOfProjectVersionControllerApi* | [**listAttributeOfProjectVersion**](docs/AttributeOfProjectVersionControllerApi.md#listAttributeOfProjectVersion) | **GET** /projectVersions/{parentId}/attributes | list +*AttributeOfProjectVersionControllerApi* | [**readAttributeOfProjectVersion**](docs/AttributeOfProjectVersionControllerApi.md#readAttributeOfProjectVersion) | **GET** /projectVersions/{parentId}/attributes/{id} | read +*AttributeOfProjectVersionControllerApi* | [**updateCollectionAttributeOfProjectVersion**](docs/AttributeOfProjectVersionControllerApi.md#updateCollectionAttributeOfProjectVersion) | **PUT** /projectVersions/{parentId}/attributes | updateCollection +*AuditAssistantStatusOfProjectVersionControllerApi* | [**listAuditAssistantStatusOfProjectVersion**](docs/AuditAssistantStatusOfProjectVersionControllerApi.md#listAuditAssistantStatusOfProjectVersion) | **GET** /projectVersions/{parentId}/auditAssistantStatus | list +*AuditHistoryOfIssueControllerApi* | [**listAuditHistoryOfIssue**](docs/AuditHistoryOfIssueControllerApi.md#listAuditHistoryOfIssue) | **GET** /issues/{parentId}/auditHistory | list +*AuthEntityControllerApi* | [**listAuthEntity**](docs/AuthEntityControllerApi.md#listAuthEntity) | **GET** /authEntities | list +*AuthEntityControllerApi* | [**multiDeleteAuthEntity**](docs/AuthEntityControllerApi.md#multiDeleteAuthEntity) | **DELETE** /authEntities | multiDelete +*AuthEntityControllerApi* | [**readAuthEntity**](docs/AuthEntityControllerApi.md#readAuthEntity) | **GET** /authEntities/{id} | read +*AuthEntityOfProjectControllerApi* | [**listAuthEntityOfProject**](docs/AuthEntityOfProjectControllerApi.md#listAuthEntityOfProject) | **GET** /projects/{parentId}/authEntities | list +*AuthEntityOfProjectControllerApi* | [**readAuthEntityOfProject**](docs/AuthEntityOfProjectControllerApi.md#readAuthEntityOfProject) | **GET** /projects/{parentId}/authEntities/{id} | read +*AuthEntityOfProjectControllerApi* | [**updateCollectionAuthEntityOfProject**](docs/AuthEntityOfProjectControllerApi.md#updateCollectionAuthEntityOfProject) | **PUT** /projects/{parentId}/authEntities | updateCollection +*AuthEntityOfProjectVersionControllerApi* | [**listAuthEntityOfProjectVersion**](docs/AuthEntityOfProjectVersionControllerApi.md#listAuthEntityOfProjectVersion) | **GET** /projectVersions/{parentId}/authEntities | list +*AuthEntityOfProjectVersionControllerApi* | [**readAuthEntityOfProjectVersion**](docs/AuthEntityOfProjectVersionControllerApi.md#readAuthEntityOfProjectVersion) | **GET** /projectVersions/{parentId}/authEntities/{id} | read +*AuthEntityOfProjectVersionControllerApi* | [**updateCollectionAuthEntityOfProjectVersion**](docs/AuthEntityOfProjectVersionControllerApi.md#updateCollectionAuthEntityOfProjectVersion) | **PUT** /projectVersions/{parentId}/authEntities | updateCollection +*AuthTokenControllerApi* | [**createAuthToken**](docs/AuthTokenControllerApi.md#createAuthToken) | **POST** /tokens | create +*AuthTokenControllerApi* | [**deleteAuthToken**](docs/AuthTokenControllerApi.md#deleteAuthToken) | **DELETE** /tokens/{id} | delete +*AuthTokenControllerApi* | [**listAuthToken**](docs/AuthTokenControllerApi.md#listAuthToken) | **GET** /tokens | list +*AuthTokenControllerApi* | [**multiDeleteAuthToken**](docs/AuthTokenControllerApi.md#multiDeleteAuthToken) | **DELETE** /tokens | Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. +*AuthTokenControllerApi* | [**revokeAuthToken**](docs/AuthTokenControllerApi.md#revokeAuthToken) | **POST** /tokens/action/revoke | Revoke authentication tokens by value +*AuthTokenControllerApi* | [**updateAuthToken**](docs/AuthTokenControllerApi.md#updateAuthToken) | **PUT** /tokens/{id} | update +*BugFilingRequirementsOfProjectVersionControllerApi* | [**doActionBugFilingRequirementsOfProjectVersion**](docs/BugFilingRequirementsOfProjectVersionControllerApi.md#doActionBugFilingRequirementsOfProjectVersion) | **POST** /projectVersions/{parentId}/bugfilingrequirements/action | doAction +*BugFilingRequirementsOfProjectVersionControllerApi* | [**listBugFilingRequirementsOfProjectVersion**](docs/BugFilingRequirementsOfProjectVersionControllerApi.md#listBugFilingRequirementsOfProjectVersion) | **GET** /projectVersions/{parentId}/bugfilingrequirements | list +*BugFilingRequirementsOfProjectVersionControllerApi* | [**loginBugFilingRequirementsOfProjectVersion**](docs/BugFilingRequirementsOfProjectVersionControllerApi.md#loginBugFilingRequirementsOfProjectVersion) | **POST** /projectVersions/{parentId}/bugfilingrequirements/action/login | login +*BugFilingRequirementsOfProjectVersionControllerApi* | [**updateCollectionBugFilingRequirementsOfProjectVersion**](docs/BugFilingRequirementsOfProjectVersionControllerApi.md#updateCollectionBugFilingRequirementsOfProjectVersion) | **PUT** /projectVersions/{parentId}/bugfilingrequirements | updateCollection +*BugTrackerControllerApi* | [**listBugTracker**](docs/BugTrackerControllerApi.md#listBugTracker) | **GET** /bugtrackers | list +*BugTrackerOfProjectVersionControllerApi* | [**doActionBugTrackerOfProjectVersion**](docs/BugTrackerOfProjectVersionControllerApi.md#doActionBugTrackerOfProjectVersion) | **POST** /projectVersions/{parentId}/bugtracker/action | doAction +*BugTrackerOfProjectVersionControllerApi* | [**listBugTrackerOfProjectVersion**](docs/BugTrackerOfProjectVersionControllerApi.md#listBugTrackerOfProjectVersion) | **GET** /projectVersions/{parentId}/bugtracker | list +*BugTrackerOfProjectVersionControllerApi* | [**testBugTrackerOfProjectVersion**](docs/BugTrackerOfProjectVersionControllerApi.md#testBugTrackerOfProjectVersion) | **POST** /projectVersions/{parentId}/bugtracker/action/test | test +*BugTrackerOfProjectVersionControllerApi* | [**updateCollectionBugTrackerOfProjectVersion**](docs/BugTrackerOfProjectVersionControllerApi.md#updateCollectionBugTrackerOfProjectVersion) | **PUT** /projectVersions/{parentId}/bugtracker | updateCollection +*BugfieldTemplateGroupControllerApi* | [**createBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#createBugfieldTemplateGroup) | **POST** /bugfieldTemplateGroups | create +*BugfieldTemplateGroupControllerApi* | [**deleteBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#deleteBugfieldTemplateGroup) | **DELETE** /bugfieldTemplateGroups/{id} | delete +*BugfieldTemplateGroupControllerApi* | [**listBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#listBugfieldTemplateGroup) | **GET** /bugfieldTemplateGroups | list +*BugfieldTemplateGroupControllerApi* | [**multiDeleteBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#multiDeleteBugfieldTemplateGroup) | **DELETE** /bugfieldTemplateGroups | multiDelete +*BugfieldTemplateGroupControllerApi* | [**readBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#readBugfieldTemplateGroup) | **GET** /bugfieldTemplateGroups/{id} | read +*BugfieldTemplateGroupControllerApi* | [**updateBugfieldTemplateGroup**](docs/BugfieldTemplateGroupControllerApi.md#updateBugfieldTemplateGroup) | **PUT** /bugfieldTemplateGroups/{id} | update +*BulkControllerApi* | [**postBulk**](docs/BulkControllerApi.md#postBulk) | **POST** /bulk | post +*CloudJobControllerApi* | [**cancelCloudJob**](docs/CloudJobControllerApi.md#cancelCloudJob) | **POST** /cloudjobs/action/cancel | cancel +*CloudJobControllerApi* | [**doActionCloudJob**](docs/CloudJobControllerApi.md#doActionCloudJob) | **POST** /cloudjobs/{jobToken}/action | doAction +*CloudJobControllerApi* | [**listCloudJob**](docs/CloudJobControllerApi.md#listCloudJob) | **GET** /cloudjobs | list +*CloudJobControllerApi* | [**readCloudJob**](docs/CloudJobControllerApi.md#readCloudJob) | **GET** /cloudjobs/{jobToken} | read +*CloudJobOfCloudPoolControllerApi* | [**listCloudJobOfCloudPool**](docs/CloudJobOfCloudPoolControllerApi.md#listCloudJobOfCloudPool) | **GET** /cloudpools/{parentId}/jobs | list +*CloudJobOfCloudWorkerControllerApi* | [**listCloudJobOfCloudWorker**](docs/CloudJobOfCloudWorkerControllerApi.md#listCloudJobOfCloudWorker) | **GET** /cloudworkers/{parentId}/cloudjobs | list +*CloudPoolControllerApi* | [**createCloudPool**](docs/CloudPoolControllerApi.md#createCloudPool) | **POST** /cloudpools | create +*CloudPoolControllerApi* | [**deleteCloudPool**](docs/CloudPoolControllerApi.md#deleteCloudPool) | **DELETE** /cloudpools/{uuid} | delete +*CloudPoolControllerApi* | [**listCloudPool**](docs/CloudPoolControllerApi.md#listCloudPool) | **GET** /cloudpools | list +*CloudPoolControllerApi* | [**readCloudPool**](docs/CloudPoolControllerApi.md#readCloudPool) | **GET** /cloudpools/{uuid} | read +*CloudPoolControllerApi* | [**updateCloudPool**](docs/CloudPoolControllerApi.md#updateCloudPool) | **PUT** /cloudpools/{uuid} | update +*CloudPoolMappingControllerApi* | [**mapByVersionIdCloudPoolMapping**](docs/CloudPoolMappingControllerApi.md#mapByVersionIdCloudPoolMapping) | **GET** /cloudmappings/mapByVersionId | mapByVersionId +*CloudPoolMappingControllerApi* | [**mapByVersionIdsCloudPoolMapping**](docs/CloudPoolMappingControllerApi.md#mapByVersionIdsCloudPoolMapping) | **POST** /cloudmappings/mapByVersionIds | mapByVersionIds +*CloudPoolMappingControllerApi* | [**mapByVersionNameCloudPoolMapping**](docs/CloudPoolMappingControllerApi.md#mapByVersionNameCloudPoolMapping) | **GET** /cloudmappings/mapByVersionName | mapByVersionName +*CloudSystemMetricsControllerApi* | [**getCloudSystemMetrics**](docs/CloudSystemMetricsControllerApi.md#getCloudSystemMetrics) | **GET** /cloudsystem/metrics | get +*CloudSystemPollStatusControllerApi* | [**getCloudSystemPollStatus**](docs/CloudSystemPollStatusControllerApi.md#getCloudSystemPollStatus) | **GET** /cloudsystem/pollstatus | get +*CloudSystemSettingsControllerApi* | [**getCloudSystemSettings**](docs/CloudSystemSettingsControllerApi.md#getCloudSystemSettings) | **GET** /cloudsystem/settings | get +*CloudWorkerControllerApi* | [**listCloudWorker**](docs/CloudWorkerControllerApi.md#listCloudWorker) | **GET** /cloudworkers | list +*CloudWorkerControllerApi* | [**readCloudWorker**](docs/CloudWorkerControllerApi.md#readCloudWorker) | **GET** /cloudworkers/{uuid} | read +*CloudWorkerOfCloudPoolControllerApi* | [**assignCloudWorkerOfCloudPool**](docs/CloudWorkerOfCloudPoolControllerApi.md#assignCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/assign | assign +*CloudWorkerOfCloudPoolControllerApi* | [**disableCloudWorkerOfCloudPool**](docs/CloudWorkerOfCloudPoolControllerApi.md#disableCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/disable | disable +*CloudWorkerOfCloudPoolControllerApi* | [**doActionCloudWorkerOfCloudPool**](docs/CloudWorkerOfCloudPoolControllerApi.md#doActionCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action | doAction +*CloudWorkerOfCloudPoolControllerApi* | [**listCloudWorkerOfCloudPool**](docs/CloudWorkerOfCloudPoolControllerApi.md#listCloudWorkerOfCloudPool) | **GET** /cloudpools/{parentId}/workers | list +*CloudWorkerOfCloudPoolControllerApi* | [**replaceCloudWorkerOfCloudPool**](docs/CloudWorkerOfCloudPoolControllerApi.md#replaceCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/replace | replace +*ConfigurationControllerApi* | [**getConfiguration**](docs/ConfigurationControllerApi.md#getConfiguration) | **GET** /configuration | get +*ConfigurationControllerApi* | [**getFullTextIndexStatusConfiguration**](docs/ConfigurationControllerApi.md#getFullTextIndexStatusConfiguration) | **GET** /configuration/searchIndex | getFullTextIndexStatus +*ConfigurationControllerApi* | [**readConfiguration**](docs/ConfigurationControllerApi.md#readConfiguration) | **GET** /configuration/{id} | read +*ConfigurationControllerApi* | [**updateConfiguration**](docs/ConfigurationControllerApi.md#updateConfiguration) | **PUT** /configuration | update +*ConfigurationControllerApi* | [**validateAuditAssistantConnectionConfiguration**](docs/ConfigurationControllerApi.md#validateAuditAssistantConnectionConfiguration) | **POST** /configuration/validateAuditAssistantConnection | validateAuditAssistantConnection +*ConfigurationControllerApi* | [**validateReportConnectionConfiguration**](docs/ConfigurationControllerApi.md#validateReportConnectionConfiguration) | **POST** /configuration/validateReportConnection | validateReportConnection +*CustomTagControllerApi* | [**createCustomTag**](docs/CustomTagControllerApi.md#createCustomTag) | **POST** /customTags | create +*CustomTagControllerApi* | [**deleteCustomTag**](docs/CustomTagControllerApi.md#deleteCustomTag) | **DELETE** /customTags/{id} | delete +*CustomTagControllerApi* | [**listCustomTag**](docs/CustomTagControllerApi.md#listCustomTag) | **GET** /customTags | list +*CustomTagControllerApi* | [**multiDeleteCustomTag**](docs/CustomTagControllerApi.md#multiDeleteCustomTag) | **DELETE** /customTags | multiDelete +*CustomTagControllerApi* | [**readCustomTag**](docs/CustomTagControllerApi.md#readCustomTag) | **GET** /customTags/{id} | read +*CustomTagControllerApi* | [**updateCustomTag**](docs/CustomTagControllerApi.md#updateCustomTag) | **PUT** /customTags/{id} | update +*CustomTagOfIssueTemplateControllerApi* | [**listCustomTagOfIssueTemplate**](docs/CustomTagOfIssueTemplateControllerApi.md#listCustomTagOfIssueTemplate) | **GET** /issueTemplates/{parentId}/customTags | list +*CustomTagOfProjectVersionControllerApi* | [**createCustomTagOfProjectVersion**](docs/CustomTagOfProjectVersionControllerApi.md#createCustomTagOfProjectVersion) | **POST** /projectVersions/{parentId}/customTags | create +*CustomTagOfProjectVersionControllerApi* | [**listCustomTagOfProjectVersion**](docs/CustomTagOfProjectVersionControllerApi.md#listCustomTagOfProjectVersion) | **GET** /projectVersions/{parentId}/customTags | list +*CustomTagOfProjectVersionControllerApi* | [**updateCollectionCustomTagOfProjectVersion**](docs/CustomTagOfProjectVersionControllerApi.md#updateCollectionCustomTagOfProjectVersion) | **PUT** /projectVersions/{parentId}/customTags | updateCollection +*CustomTagOfProjectVersionControllerApi* | [**updateCustomTagOfProjectVersion**](docs/CustomTagOfProjectVersionControllerApi.md#updateCustomTagOfProjectVersion) | **PUT** /projectVersions/{parentId}/customTags/{id} | update +*DashboardVersionControllerApi* | [**listDashboardVersion**](docs/DashboardVersionControllerApi.md#listDashboardVersion) | **GET** /dashboardVersions | list +*DataExportControllerApi* | [**deleteDataExport**](docs/DataExportControllerApi.md#deleteDataExport) | **DELETE** /dataExports/{id} | delete +*DataExportControllerApi* | [**doActionDataExport**](docs/DataExportControllerApi.md#doActionDataExport) | **POST** /dataExports/action | doAction +*DataExportControllerApi* | [**exportAuditToCSVForDataExport**](docs/DataExportControllerApi.md#exportAuditToCSVForDataExport) | **POST** /dataExports/action/exportAuditToCsv | exportAuditToCSVFor +*DataExportControllerApi* | [**exportIssuesStatsToCSVForDataExport**](docs/DataExportControllerApi.md#exportIssuesStatsToCSVForDataExport) | **POST** /dataExports/action/exportIssueStatsToCsv | exportIssuesStatsToCSVFor +*DataExportControllerApi* | [**listDataExport**](docs/DataExportControllerApi.md#listDataExport) | **GET** /dataExports | list +*DynamicScanRequestOfProjectVersionControllerApi* | [**cancelDynamicScanRequestOfProjectVersion**](docs/DynamicScanRequestOfProjectVersionControllerApi.md#cancelDynamicScanRequestOfProjectVersion) | **POST** /projectVersions/{parentId}/dynamicScanRequests/{id}/action | Cancel a Dynamic Scan Request +*DynamicScanRequestOfProjectVersionControllerApi* | [**createDynamicScanRequestOfProjectVersion**](docs/DynamicScanRequestOfProjectVersionControllerApi.md#createDynamicScanRequestOfProjectVersion) | **POST** /projectVersions/{parentId}/dynamicScanRequests | create +*DynamicScanRequestOfProjectVersionControllerApi* | [**listDynamicScanRequestOfProjectVersion**](docs/DynamicScanRequestOfProjectVersionControllerApi.md#listDynamicScanRequestOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequests | list +*DynamicScanRequestOfProjectVersionControllerApi* | [**readDynamicScanRequestOfProjectVersion**](docs/DynamicScanRequestOfProjectVersionControllerApi.md#readDynamicScanRequestOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequests/{id} | read +*DynamicScanRequestOfProjectVersionControllerApi* | [**updateDynamicScanRequestOfProjectVersion**](docs/DynamicScanRequestOfProjectVersionControllerApi.md#updateDynamicScanRequestOfProjectVersion) | **PUT** /projectVersions/{parentId}/dynamicScanRequests/{id} | update +*DynamicScanRequestTemplateOfProjectVersionControllerApi* | [**getDynamicScanRequestTemplateOfProjectVersion**](docs/DynamicScanRequestTemplateOfProjectVersionControllerApi.md#getDynamicScanRequestTemplateOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequestTemplate | get +*DynamicScanRequestsSummaryOfProjectVersionControllerApi* | [**getDynamicScanRequestsSummaryOfProjectVersion**](docs/DynamicScanRequestsSummaryOfProjectVersionControllerApi.md#getDynamicScanRequestsSummaryOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequestsSummary | get +*EngineTypeControllerApi* | [**listEngineType**](docs/EngineTypeControllerApi.md#listEngineType) | **GET** /engineTypes | list +*EventLogControllerApi* | [**listEventLog**](docs/EventLogControllerApi.md#listEventLog) | **GET** /events | list +*FeatureControllerApi* | [**listFeature**](docs/FeatureControllerApi.md#listFeature) | **GET** /features | list +*FeatureControllerApi* | [**readFeature**](docs/FeatureControllerApi.md#readFeature) | **GET** /features/{id} | read +*FileTokenControllerApi* | [**createFileToken**](docs/FileTokenControllerApi.md#createFileToken) | **POST** /fileTokens | Create single-use file transfer token +*FileTokenControllerApi* | [**multiDeleteFileToken**](docs/FileTokenControllerApi.md#multiDeleteFileToken) | **DELETE** /fileTokens | Call this operation after every file upload activity +*FilterSetOfProjectVersionControllerApi* | [**listFilterSetOfProjectVersion**](docs/FilterSetOfProjectVersionControllerApi.md#listFilterSetOfProjectVersion) | **GET** /projectVersions/{parentId}/filterSets | list +*FolderControllerApi* | [**getFolder**](docs/FolderControllerApi.md#getFolder) | **GET** /folders | get +*FolderOfProjectVersionControllerApi* | [**listFolderOfProjectVersion**](docs/FolderOfProjectVersionControllerApi.md#listFolderOfProjectVersion) | **GET** /projectVersions/{parentId}/folders | list +*FolderOfProjectVersionControllerApi* | [**readFolderOfProjectVersion**](docs/FolderOfProjectVersionControllerApi.md#readFolderOfProjectVersion) | **GET** /projectVersions/{parentId}/folders/{id} | read +*GroupOfAuthEntityControllerApi* | [**listGroupOfAuthEntity**](docs/GroupOfAuthEntityControllerApi.md#listGroupOfAuthEntity) | **GET** /authEntities/{parentId}/groups | list +*IidMigrationControllerApi* | [**readIidMigration**](docs/IidMigrationControllerApi.md#readIidMigration) | **GET** /iidMigrations/{id} | read +*IidMigrationOfProjectVersionControllerApi* | [**createIidMigrationOfProjectVersion**](docs/IidMigrationOfProjectVersionControllerApi.md#createIidMigrationOfProjectVersion) | **POST** /projectVersions/{parentId}/iidMigrations | create +*IidMigrationOfProjectVersionControllerApi* | [**listIidMigrationOfProjectVersion**](docs/IidMigrationOfProjectVersionControllerApi.md#listIidMigrationOfProjectVersion) | **GET** /projectVersions/{parentId}/iidMigrations | list +*InternalCustomTagControllerApi* | [**listInternalCustomTag**](docs/InternalCustomTagControllerApi.md#listInternalCustomTag) | **GET** /internalCustomTags | list +*IssueAgingControllerApi* | [**listIssueAging**](docs/IssueAgingControllerApi.md#listIssueAging) | **GET** /issueaging | list +*IssueAgingGroupControllerApi* | [**listIssueAgingGroup**](docs/IssueAgingGroupControllerApi.md#listIssueAgingGroup) | **GET** /issueaginggroup | list +*IssueAgingPortletControllerApi* | [**getIssueAgingPortlet**](docs/IssueAgingPortletControllerApi.md#getIssueAgingPortlet) | **GET** /portlets/issueaging | get +*IssueAssignmentOfProjectVersionControllerApi* | [**listIssueAssignmentOfProjectVersion**](docs/IssueAssignmentOfProjectVersionControllerApi.md#listIssueAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/issueAssignment | list +*IssueAssignmentOfProjectVersionControllerApi* | [**readIssueAssignmentOfProjectVersion**](docs/IssueAssignmentOfProjectVersionControllerApi.md#readIssueAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/issueAssignment/{id} | read +*IssueAttachmentOfIssueControllerApi* | [**createIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#createIssueAttachmentOfIssue) | **POST** /issues/{parentId}/attachments | create +*IssueAttachmentOfIssueControllerApi* | [**deleteIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#deleteIssueAttachmentOfIssue) | **DELETE** /issues/{parentId}/attachments/{id} | delete +*IssueAttachmentOfIssueControllerApi* | [**listIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#listIssueAttachmentOfIssue) | **GET** /issues/{parentId}/attachments | list +*IssueAttachmentOfIssueControllerApi* | [**multiDeleteIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#multiDeleteIssueAttachmentOfIssue) | **DELETE** /issues/{parentId}/attachments | multiDelete +*IssueAttachmentOfIssueControllerApi* | [**readIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#readIssueAttachmentOfIssue) | **GET** /issues/{parentId}/attachments/{id} | read +*IssueAttachmentOfIssueControllerApi* | [**updateIssueAttachmentOfIssue**](docs/IssueAttachmentOfIssueControllerApi.md#updateIssueAttachmentOfIssue) | **PUT** /issues/{parentId}/attachments/{id} | update +*IssueAuditCommentControllerApi* | [**listIssueAuditComment**](docs/IssueAuditCommentControllerApi.md#listIssueAuditComment) | **GET** /comments | list +*IssueAuditCommentOfIssueControllerApi* | [**createIssueAuditCommentOfIssue**](docs/IssueAuditCommentOfIssueControllerApi.md#createIssueAuditCommentOfIssue) | **POST** /issues/{parentId}/comments | create +*IssueAuditCommentOfIssueControllerApi* | [**listIssueAuditCommentOfIssue**](docs/IssueAuditCommentOfIssueControllerApi.md#listIssueAuditCommentOfIssue) | **GET** /issues/{parentId}/comments | list +*IssueControllerApi* | [**listIssue**](docs/IssueControllerApi.md#listIssue) | **GET** /issues | list +*IssueControllerApi* | [**readIssue**](docs/IssueControllerApi.md#readIssue) | **GET** /issues/{id} | read +*IssueDetailControllerApi* | [**listIssueDetail**](docs/IssueDetailControllerApi.md#listIssueDetail) | **GET** /issueDetails | list +*IssueDetailControllerApi* | [**readIssueDetail**](docs/IssueDetailControllerApi.md#readIssueDetail) | **GET** /issueDetails/{id} | read +*IssueGroupOfProjectVersionControllerApi* | [**listIssueGroupOfProjectVersion**](docs/IssueGroupOfProjectVersionControllerApi.md#listIssueGroupOfProjectVersion) | **GET** /projectVersions/{parentId}/issueGroups | list +*IssueOfProjectVersionControllerApi* | [**assignUserForIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#assignUserForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/assignUser | assignUserFor +*IssueOfProjectVersionControllerApi* | [**auditIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#auditIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/audit | audit +*IssueOfProjectVersionControllerApi* | [**doActionIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#doActionIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action | doAction +*IssueOfProjectVersionControllerApi* | [**fileBugForIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#fileBugForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/fileBug | fileBugFor +*IssueOfProjectVersionControllerApi* | [**listIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#listIssueOfProjectVersion) | **GET** /projectVersions/{parentId}/issues | list +*IssueOfProjectVersionControllerApi* | [**readIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#readIssueOfProjectVersion) | **GET** /projectVersions/{parentId}/issues/{id} | read +*IssueOfProjectVersionControllerApi* | [**suppressIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#suppressIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/suppress | suppress +*IssueOfProjectVersionControllerApi* | [**updateTagForIssueOfProjectVersion**](docs/IssueOfProjectVersionControllerApi.md#updateTagForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/updateTag | updateTagFor +*IssueSelectorSetOfProjectVersionControllerApi* | [**getIssueSelectorSetOfProjectVersion**](docs/IssueSelectorSetOfProjectVersionControllerApi.md#getIssueSelectorSetOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSelectorSet | get +*IssueStatisticsOfProjectVersionControllerApi* | [**listIssueStatisticsOfProjectVersion**](docs/IssueStatisticsOfProjectVersionControllerApi.md#listIssueStatisticsOfProjectVersion) | **GET** /projectVersions/{parentId}/issueStatistics | list +*IssueSummaryOfProjectVersionControllerApi* | [**listIssueSummaryOfProjectVersion**](docs/IssueSummaryOfProjectVersionControllerApi.md#listIssueSummaryOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSummaries | list +*IssueTemplateControllerApi* | [**deleteIssueTemplate**](docs/IssueTemplateControllerApi.md#deleteIssueTemplate) | **DELETE** /issueTemplates/{id} | delete +*IssueTemplateControllerApi* | [**listIssueTemplate**](docs/IssueTemplateControllerApi.md#listIssueTemplate) | **GET** /issueTemplates | list +*IssueTemplateControllerApi* | [**multiDeleteIssueTemplate**](docs/IssueTemplateControllerApi.md#multiDeleteIssueTemplate) | **DELETE** /issueTemplates | multiDelete +*IssueTemplateControllerApi* | [**readIssueTemplate**](docs/IssueTemplateControllerApi.md#readIssueTemplate) | **GET** /issueTemplates/{id} | read +*IssueTemplateControllerApi* | [**updateIssueTemplate**](docs/IssueTemplateControllerApi.md#updateIssueTemplate) | **PUT** /issueTemplates/{id} | update +*IssueViewTemplateControllerApi* | [**listIssueViewTemplate**](docs/IssueViewTemplateControllerApi.md#listIssueViewTemplate) | **GET** /issueViewTemplates | list +*IssueViewTemplateControllerApi* | [**readIssueViewTemplate**](docs/IssueViewTemplateControllerApi.md#readIssueViewTemplate) | **GET** /issueViewTemplates/{id} | read +*JobControllerApi* | [**cancelJob**](docs/JobControllerApi.md#cancelJob) | **POST** /jobs/action/cancel | cancel +*JobControllerApi* | [**doActionJob**](docs/JobControllerApi.md#doActionJob) | **POST** /jobs/{jobName}/action | doAction +*JobControllerApi* | [**listJob**](docs/JobControllerApi.md#listJob) | **GET** /jobs | list +*JobControllerApi* | [**readJob**](docs/JobControllerApi.md#readJob) | **GET** /jobs/{jobName} | read +*JobControllerApi* | [**updateJob**](docs/JobControllerApi.md#updateJob) | **PUT** /jobs/{jobName} | update +*JobPriorityChangeCategoryWarningOfJobControllerApi* | [**listJobPriorityChangeCategoryWarningOfJob**](docs/JobPriorityChangeCategoryWarningOfJobControllerApi.md#listJobPriorityChangeCategoryWarningOfJob) | **GET** /jobs/{parentId}/warnings | list +*LdapObjectControllerApi* | [**createLdapObject**](docs/LdapObjectControllerApi.md#createLdapObject) | **POST** /ldapObjects | create +*LdapObjectControllerApi* | [**deleteLdapObject**](docs/LdapObjectControllerApi.md#deleteLdapObject) | **DELETE** /ldapObjects/{id} | delete +*LdapObjectControllerApi* | [**doCollectionActionLdapObject**](docs/LdapObjectControllerApi.md#doCollectionActionLdapObject) | **POST** /ldapObjects/action | doCollectionAction +*LdapObjectControllerApi* | [**listLdapObject**](docs/LdapObjectControllerApi.md#listLdapObject) | **GET** /ldapObjects | list +*LdapObjectControllerApi* | [**multiDeleteLdapObject**](docs/LdapObjectControllerApi.md#multiDeleteLdapObject) | **DELETE** /ldapObjects | multiDelete +*LdapObjectControllerApi* | [**readLdapObject**](docs/LdapObjectControllerApi.md#readLdapObject) | **GET** /ldapObjects/{id} | read +*LdapObjectControllerApi* | [**refreshLdapObject**](docs/LdapObjectControllerApi.md#refreshLdapObject) | **POST** /ldapObjects/action/refresh | refresh +*LdapObjectControllerApi* | [**updateLdapObject**](docs/LdapObjectControllerApi.md#updateLdapObject) | **PUT** /ldapObjects/{id} | update +*LdapServerControllerApi* | [**createLdapServer**](docs/LdapServerControllerApi.md#createLdapServer) | **POST** /ldapServers | create +*LdapServerControllerApi* | [**deleteLdapServer**](docs/LdapServerControllerApi.md#deleteLdapServer) | **DELETE** /ldapServers/{id} | delete +*LdapServerControllerApi* | [**doCollectionActionLdapServer**](docs/LdapServerControllerApi.md#doCollectionActionLdapServer) | **POST** /ldapServers/action | doCollectionAction +*LdapServerControllerApi* | [**listLdapServer**](docs/LdapServerControllerApi.md#listLdapServer) | **GET** /ldapServers | list +*LdapServerControllerApi* | [**multiDeleteLdapServer**](docs/LdapServerControllerApi.md#multiDeleteLdapServer) | **DELETE** /ldapServers | multiDelete +*LdapServerControllerApi* | [**readLdapServer**](docs/LdapServerControllerApi.md#readLdapServer) | **GET** /ldapServers/{id} | read +*LdapServerControllerApi* | [**testLdapServer**](docs/LdapServerControllerApi.md#testLdapServer) | **POST** /ldapServers/action/test | test +*LdapServerControllerApi* | [**updateLdapServer**](docs/LdapServerControllerApi.md#updateLdapServer) | **PUT** /ldapServers/{id} | update +*LicenseControllerApi* | [**getLicense**](docs/LicenseControllerApi.md#getLicense) | **GET** /license | get +*LocalUserControllerApi* | [**checkLocalUser**](docs/LocalUserControllerApi.md#checkLocalUser) | **POST** /localUsers/action/checkPasswordStrength | check +*LocalUserControllerApi* | [**createLocalUser**](docs/LocalUserControllerApi.md#createLocalUser) | **POST** /localUsers | create +*LocalUserControllerApi* | [**deleteLocalUser**](docs/LocalUserControllerApi.md#deleteLocalUser) | **DELETE** /localUsers/{id} | delete +*LocalUserControllerApi* | [**listLocalUser**](docs/LocalUserControllerApi.md#listLocalUser) | **GET** /localUsers | list +*LocalUserControllerApi* | [**multiDeleteLocalUser**](docs/LocalUserControllerApi.md#multiDeleteLocalUser) | **DELETE** /localUsers | multiDelete +*LocalUserControllerApi* | [**readLocalUser**](docs/LocalUserControllerApi.md#readLocalUser) | **GET** /localUsers/{id} | read +*LocalUserControllerApi* | [**updateLocalUser**](docs/LocalUserControllerApi.md#updateLocalUser) | **PUT** /localUsers/{id} | update +*ParserPluginImageControllerApi* | [**getParserPluginImage**](docs/ParserPluginImageControllerApi.md#getParserPluginImage) | **GET** /pluginimage/parser | get +*PerformanceIndicatorControllerApi* | [**createPerformanceIndicator**](docs/PerformanceIndicatorControllerApi.md#createPerformanceIndicator) | **POST** /performanceIndicators | create +*PerformanceIndicatorControllerApi* | [**deletePerformanceIndicator**](docs/PerformanceIndicatorControllerApi.md#deletePerformanceIndicator) | **DELETE** /performanceIndicators/{id} | delete +*PerformanceIndicatorControllerApi* | [**listPerformanceIndicator**](docs/PerformanceIndicatorControllerApi.md#listPerformanceIndicator) | **GET** /performanceIndicators | list +*PerformanceIndicatorControllerApi* | [**multiDeletePerformanceIndicator**](docs/PerformanceIndicatorControllerApi.md#multiDeletePerformanceIndicator) | **DELETE** /performanceIndicators | multiDelete +*PerformanceIndicatorControllerApi* | [**updatePerformanceIndicator**](docs/PerformanceIndicatorControllerApi.md#updatePerformanceIndicator) | **PUT** /performanceIndicators/{id} | update +*PerformanceIndicatorHistoryOfProjectVersionControllerApi* | [**listPerformanceIndicatorHistoryOfProjectVersion**](docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md#listPerformanceIndicatorHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/performanceIndicatorHistories | list +*PerformanceIndicatorHistoryOfProjectVersionControllerApi* | [**readPerformanceIndicatorHistoryOfProjectVersion**](docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md#readPerformanceIndicatorHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/performanceIndicatorHistories/{id} | read +*PermissionControllerApi* | [**listPermission**](docs/PermissionControllerApi.md#listPermission) | **GET** /permissions | list +*PermissionControllerApi* | [**readPermission**](docs/PermissionControllerApi.md#readPermission) | **GET** /permissions/{id} | read +*PermissionOfRoleControllerApi* | [**listPermissionOfRole**](docs/PermissionOfRoleControllerApi.md#listPermissionOfRole) | **GET** /roles/{parentId}/permissions | list +*PermissionRequiredByPermissionControllerApi* | [**listPermissionRequiredByPermission**](docs/PermissionRequiredByPermissionControllerApi.md#listPermissionRequiredByPermission) | **GET** /permissions/{parentId}/dependsOn | list +*PersonaControllerApi* | [**createPersona**](docs/PersonaControllerApi.md#createPersona) | **POST** /personas | create +*PersonaControllerApi* | [**deletePersona**](docs/PersonaControllerApi.md#deletePersona) | **DELETE** /personas/{id} | delete +*PersonaControllerApi* | [**listPersona**](docs/PersonaControllerApi.md#listPersona) | **GET** /personas | list +*PersonaControllerApi* | [**readPersona**](docs/PersonaControllerApi.md#readPersona) | **GET** /personas/{id} | read +*PersonaControllerApi* | [**updatePersona**](docs/PersonaControllerApi.md#updatePersona) | **PUT** /personas/{id} | update +*PluginControllerApi* | [**deletePlugin**](docs/PluginControllerApi.md#deletePlugin) | **DELETE** /plugins/{id} | delete +*PluginControllerApi* | [**disablePlugin**](docs/PluginControllerApi.md#disablePlugin) | **POST** /plugins/action/disable | disable +*PluginControllerApi* | [**doActionPlugin**](docs/PluginControllerApi.md#doActionPlugin) | **POST** /plugins/{id}/action | doAction +*PluginControllerApi* | [**enablePlugin**](docs/PluginControllerApi.md#enablePlugin) | **POST** /plugins/action/enable | enable +*PluginControllerApi* | [**listPlugin**](docs/PluginControllerApi.md#listPlugin) | **GET** /plugins | list +*PluginControllerApi* | [**readPlugin**](docs/PluginControllerApi.md#readPlugin) | **GET** /plugins/{id} | read +*PluginImageControllerApi* | [**getPluginImage**](docs/PluginImageControllerApi.md#getPluginImage) | **GET** /pluginimage | get +*PluginLocalizationControllerApi* | [**readPluginLocalization**](docs/PluginLocalizationControllerApi.md#readPluginLocalization) | **GET** /pluginlocalization | read +*ProjectControllerApi* | [**doCollectionActionProject**](docs/ProjectControllerApi.md#doCollectionActionProject) | **POST** /projects/action | doCollectionAction +*ProjectControllerApi* | [**listProject**](docs/ProjectControllerApi.md#listProject) | **GET** /projects | list +*ProjectControllerApi* | [**readProject**](docs/ProjectControllerApi.md#readProject) | **GET** /projects/{id} | read +*ProjectControllerApi* | [**testProject**](docs/ProjectControllerApi.md#testProject) | **POST** /projects/action/test | test +*ProjectControllerApi* | [**updateProject**](docs/ProjectControllerApi.md#updateProject) | **PUT** /projects/{id} | update +*ProjectVersionControllerApi* | [**auditByAuditAssistantProjectVersion**](docs/ProjectVersionControllerApi.md#auditByAuditAssistantProjectVersion) | **POST** /projectVersions/action/auditByAuditAssistant | auditByAuditAssistant +*ProjectVersionControllerApi* | [**copyCurrentStateForProjectVersion**](docs/ProjectVersionControllerApi.md#copyCurrentStateForProjectVersion) | **POST** /projectVersions/action/copyCurrentState | copyCurrentStateFor +*ProjectVersionControllerApi* | [**copyProjectVersion**](docs/ProjectVersionControllerApi.md#copyProjectVersion) | **POST** /projectVersions/action/copyFromPartial | copy +*ProjectVersionControllerApi* | [**createProjectVersion**](docs/ProjectVersionControllerApi.md#createProjectVersion) | **POST** /projectVersions | create +*ProjectVersionControllerApi* | [**deleteProjectVersion**](docs/ProjectVersionControllerApi.md#deleteProjectVersion) | **DELETE** /projectVersions/{id} | delete +*ProjectVersionControllerApi* | [**doActionProjectVersion**](docs/ProjectVersionControllerApi.md#doActionProjectVersion) | **POST** /projectVersions/{id}/action | doAction +*ProjectVersionControllerApi* | [**doCollectionActionProjectVersion**](docs/ProjectVersionControllerApi.md#doCollectionActionProjectVersion) | **POST** /projectVersions/action | doCollectionAction +*ProjectVersionControllerApi* | [**listProjectVersion**](docs/ProjectVersionControllerApi.md#listProjectVersion) | **GET** /projectVersions | list +*ProjectVersionControllerApi* | [**purgeProjectVersion**](docs/ProjectVersionControllerApi.md#purgeProjectVersion) | **POST** /projectVersions/action/purge | purge +*ProjectVersionControllerApi* | [**readProjectVersion**](docs/ProjectVersionControllerApi.md#readProjectVersion) | **GET** /projectVersions/{id} | read +*ProjectVersionControllerApi* | [**refreshProjectVersion**](docs/ProjectVersionControllerApi.md#refreshProjectVersion) | **POST** /projectVersions/action/refresh | refresh +*ProjectVersionControllerApi* | [**testProjectVersion**](docs/ProjectVersionControllerApi.md#testProjectVersion) | **POST** /projectVersions/action/test | test +*ProjectVersionControllerApi* | [**trainAuditAssistantProjectVersion**](docs/ProjectVersionControllerApi.md#trainAuditAssistantProjectVersion) | **POST** /projectVersions/action/trainAuditAssistant | trainAuditAssistant +*ProjectVersionControllerApi* | [**updateProjectVersion**](docs/ProjectVersionControllerApi.md#updateProjectVersion) | **PUT** /projectVersions/{id} | update +*ProjectVersionOfAlertDefinitionControllerApi* | [**listProjectVersionOfAlertDefinition**](docs/ProjectVersionOfAlertDefinitionControllerApi.md#listProjectVersionOfAlertDefinition) | **GET** /alertDefinitions/{parentId}/projectVersions | list +*ProjectVersionOfAuthEntityControllerApi* | [**assignProjectVersionOfAuthEntity**](docs/ProjectVersionOfAuthEntityControllerApi.md#assignProjectVersionOfAuthEntity) | **POST** /authEntities/{parentId}/projectVersions/action/assign | assign +*ProjectVersionOfAuthEntityControllerApi* | [**doActionProjectVersionOfAuthEntity**](docs/ProjectVersionOfAuthEntityControllerApi.md#doActionProjectVersionOfAuthEntity) | **POST** /authEntities/{parentId}/projectVersions/action | doAction +*ProjectVersionOfAuthEntityControllerApi* | [**listProjectVersionOfAuthEntity**](docs/ProjectVersionOfAuthEntityControllerApi.md#listProjectVersionOfAuthEntity) | **GET** /authEntities/{parentId}/projectVersions | list +*ProjectVersionOfAuthEntityControllerApi* | [**multiDeleteProjectVersionOfAuthEntity**](docs/ProjectVersionOfAuthEntityControllerApi.md#multiDeleteProjectVersionOfAuthEntity) | **DELETE** /authEntities/{parentId}/projectVersions | multiDelete +*ProjectVersionOfAuthEntityControllerApi* | [**updateProjectVersionOfAuthEntity**](docs/ProjectVersionOfAuthEntityControllerApi.md#updateProjectVersionOfAuthEntity) | **PUT** /authEntities/{parentId}/projectVersions | update +*ProjectVersionOfCloudPoolControllerApi* | [**assignProjectVersionOfCloudPool**](docs/ProjectVersionOfCloudPoolControllerApi.md#assignProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action/assign | assign +*ProjectVersionOfCloudPoolControllerApi* | [**doActionProjectVersionOfCloudPool**](docs/ProjectVersionOfCloudPoolControllerApi.md#doActionProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action | doAction +*ProjectVersionOfCloudPoolControllerApi* | [**listProjectVersionOfCloudPool**](docs/ProjectVersionOfCloudPoolControllerApi.md#listProjectVersionOfCloudPool) | **GET** /cloudpools/{parentId}/versions | list +*ProjectVersionOfCloudPoolControllerApi* | [**replaceProjectVersionOfCloudPool**](docs/ProjectVersionOfCloudPoolControllerApi.md#replaceProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action/replace | replace +*ProjectVersionOfProjectControllerApi* | [**createProjectVersionOfProject**](docs/ProjectVersionOfProjectControllerApi.md#createProjectVersionOfProject) | **POST** /projects/{parentId}/versions | create +*ProjectVersionOfProjectControllerApi* | [**listProjectVersionOfProject**](docs/ProjectVersionOfProjectControllerApi.md#listProjectVersionOfProject) | **GET** /projects/{parentId}/versions | list +*ReportDefinitionControllerApi* | [**createReportDefinition**](docs/ReportDefinitionControllerApi.md#createReportDefinition) | **POST** /reportDefinitions | create +*ReportDefinitionControllerApi* | [**deleteReportDefinition**](docs/ReportDefinitionControllerApi.md#deleteReportDefinition) | **DELETE** /reportDefinitions/{id} | delete +*ReportDefinitionControllerApi* | [**listReportDefinition**](docs/ReportDefinitionControllerApi.md#listReportDefinition) | **GET** /reportDefinitions | list +*ReportDefinitionControllerApi* | [**multiDeleteReportDefinition**](docs/ReportDefinitionControllerApi.md#multiDeleteReportDefinition) | **DELETE** /reportDefinitions | multiDelete +*ReportDefinitionControllerApi* | [**readReportDefinition**](docs/ReportDefinitionControllerApi.md#readReportDefinition) | **GET** /reportDefinitions/{id} | read +*ReportDefinitionControllerApi* | [**updateReportDefinition**](docs/ReportDefinitionControllerApi.md#updateReportDefinition) | **PUT** /reportDefinitions/{id} | update +*ReportLibraryControllerApi* | [**createReportLibrary**](docs/ReportLibraryControllerApi.md#createReportLibrary) | **POST** /reportLibraries | create +*ReportLibraryControllerApi* | [**deleteReportLibrary**](docs/ReportLibraryControllerApi.md#deleteReportLibrary) | **DELETE** /reportLibraries/{id} | delete +*ReportLibraryControllerApi* | [**listReportLibrary**](docs/ReportLibraryControllerApi.md#listReportLibrary) | **GET** /reportLibraries | list +*ReportLibraryControllerApi* | [**multiDeleteReportLibrary**](docs/ReportLibraryControllerApi.md#multiDeleteReportLibrary) | **DELETE** /reportLibraries | multiDelete +*ReportLibraryControllerApi* | [**readReportLibrary**](docs/ReportLibraryControllerApi.md#readReportLibrary) | **GET** /reportLibraries/{id} | read +*ReportLibraryControllerApi* | [**updateReportLibrary**](docs/ReportLibraryControllerApi.md#updateReportLibrary) | **PUT** /reportLibraries/{id} | update +*ResponsibilityAssignmentOfProjectControllerApi* | [**listResponsibilityAssignmentOfProject**](docs/ResponsibilityAssignmentOfProjectControllerApi.md#listResponsibilityAssignmentOfProject) | **GET** /projects/{parentId}/responsibilities | list +*ResponsibilityAssignmentOfProjectControllerApi* | [**readResponsibilityAssignmentOfProject**](docs/ResponsibilityAssignmentOfProjectControllerApi.md#readResponsibilityAssignmentOfProject) | **GET** /projects/{parentId}/responsibilities/{guid} | read +*ResponsibilityAssignmentOfProjectControllerApi* | [**updateCollectionResponsibilityAssignmentOfProject**](docs/ResponsibilityAssignmentOfProjectControllerApi.md#updateCollectionResponsibilityAssignmentOfProject) | **PUT** /projects/{parentId}/responsibilities | updateCollection +*ResponsibilityAssignmentOfProjectVersionControllerApi* | [**listResponsibilityAssignmentOfProjectVersion**](docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md#listResponsibilityAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/responsibilities | list +*ResponsibilityAssignmentOfProjectVersionControllerApi* | [**readResponsibilityAssignmentOfProjectVersion**](docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md#readResponsibilityAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/responsibilities/{guid} | read +*ResponsibilityAssignmentOfProjectVersionControllerApi* | [**updateCollectionResponsibilityAssignmentOfProjectVersion**](docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md#updateCollectionResponsibilityAssignmentOfProjectVersion) | **PUT** /projectVersions/{parentId}/responsibilities | updateCollection +*ResultProcessingRuleOfProjectVersionControllerApi* | [**listResultProcessingRuleOfProjectVersion**](docs/ResultProcessingRuleOfProjectVersionControllerApi.md#listResultProcessingRuleOfProjectVersion) | **GET** /projectVersions/{parentId}/resultProcessingRules | list +*ResultProcessingRuleOfProjectVersionControllerApi* | [**updateCollectionResultProcessingRuleOfProjectVersion**](docs/ResultProcessingRuleOfProjectVersionControllerApi.md#updateCollectionResultProcessingRuleOfProjectVersion) | **PUT** /projectVersions/{parentId}/resultProcessingRules | updateCollection +*RoleControllerApi* | [**createRole**](docs/RoleControllerApi.md#createRole) | **POST** /roles | create +*RoleControllerApi* | [**deleteRole**](docs/RoleControllerApi.md#deleteRole) | **DELETE** /roles/{id} | delete +*RoleControllerApi* | [**listRole**](docs/RoleControllerApi.md#listRole) | **GET** /roles | list +*RoleControllerApi* | [**multiDeleteRole**](docs/RoleControllerApi.md#multiDeleteRole) | **DELETE** /roles | multiDelete +*RoleControllerApi* | [**readRole**](docs/RoleControllerApi.md#readRole) | **GET** /roles/{id} | read +*RoleControllerApi* | [**updateRole**](docs/RoleControllerApi.md#updateRole) | **PUT** /roles/{id} | update +*RoleOfAuthEntityControllerApi* | [**listRoleOfAuthEntity**](docs/RoleOfAuthEntityControllerApi.md#listRoleOfAuthEntity) | **GET** /authEntities/{parentId}/roles | list +*RulepackCoreControllerApi* | [**deleteRulepackCore**](docs/RulepackCoreControllerApi.md#deleteRulepackCore) | **DELETE** /coreRulepacks/{id} | delete +*RulepackCoreControllerApi* | [**listRulepackCore**](docs/RulepackCoreControllerApi.md#listRulepackCore) | **GET** /coreRulepacks | list +*RulepackCoreControllerApi* | [**multiDeleteRulepackCore**](docs/RulepackCoreControllerApi.md#multiDeleteRulepackCore) | **DELETE** /coreRulepacks | multiDelete +*RulepackUpdateControllerApi* | [**listRulepackUpdate**](docs/RulepackUpdateControllerApi.md#listRulepackUpdate) | **GET** /updateRulepacks | list +*SavedReportControllerApi* | [**createSavedReport**](docs/SavedReportControllerApi.md#createSavedReport) | **POST** /reports | create +*SavedReportControllerApi* | [**deleteSavedReport**](docs/SavedReportControllerApi.md#deleteSavedReport) | **DELETE** /reports/{id} | delete +*SavedReportControllerApi* | [**listSavedReport**](docs/SavedReportControllerApi.md#listSavedReport) | **GET** /reports | list +*SavedReportControllerApi* | [**readSavedReport**](docs/SavedReportControllerApi.md#readSavedReport) | **GET** /reports/{id} | read +*ScanControllerApi* | [**readScan**](docs/ScanControllerApi.md#readScan) | **GET** /scans/{id} | read +*ScanErrorOfArtifactControllerApi* | [**listScanErrorOfArtifact**](docs/ScanErrorOfArtifactControllerApi.md#listScanErrorOfArtifact) | **GET** /artifacts/{parentId}/scanerrors | list +*ScanOfArtifactControllerApi* | [**listScanOfArtifact**](docs/ScanOfArtifactControllerApi.md#listScanOfArtifact) | **GET** /artifacts/{parentId}/scans | list +*SourceFileOfProjectVersionControllerApi* | [**listSourceFileOfProjectVersion**](docs/SourceFileOfProjectVersionControllerApi.md#listSourceFileOfProjectVersion) | **GET** /projectVersions/{parentId}/sourceFiles | list +*SourceFileOfProjectVersionControllerApi* | [**readSourceFileOfProjectVersion**](docs/SourceFileOfProjectVersionControllerApi.md#readSourceFileOfProjectVersion) | **GET** /projectVersions/{parentId}/sourceFiles/{id} | read +*SystemConfigurationControllerApi* | [**listSystemConfiguration**](docs/SystemConfigurationControllerApi.md#listSystemConfiguration) | **GET** /systemConfiguration | list +*SystemConfigurationControllerApi* | [**readSystemConfiguration**](docs/SystemConfigurationControllerApi.md#readSystemConfiguration) | **GET** /systemConfiguration/{name} | read +*TokenDefinitionControllerApi* | [**listTokenDefinition**](docs/TokenDefinitionControllerApi.md#listTokenDefinition) | **GET** /tokenDefinitions | list +*UnassignedCloudWorkerOfCloudPoolControllerApi* | [**listUnassignedCloudWorkerOfCloudPool**](docs/UnassignedCloudWorkerOfCloudPoolControllerApi.md#listUnassignedCloudWorkerOfCloudPool) | **GET** /cloudpools/disabledWorkers | list +*UserIssueSearchOptionOfProjectVersionControllerApi* | [**listUserIssueSearchOptionOfProjectVersion**](docs/UserIssueSearchOptionOfProjectVersionControllerApi.md#listUserIssueSearchOptionOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSearchOptions | list +*UserIssueSearchOptionOfProjectVersionControllerApi* | [**readUserIssueSearchOptionOfProjectVersion**](docs/UserIssueSearchOptionOfProjectVersionControllerApi.md#readUserIssueSearchOptionOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSearchOptions/{optionType} | read +*UserIssueSearchOptionOfProjectVersionControllerApi* | [**updateUserIssueSearchOptionOfProjectVersion**](docs/UserIssueSearchOptionOfProjectVersionControllerApi.md#updateUserIssueSearchOptionOfProjectVersion) | **PUT** /projectVersions/{parentId}/issueSearchOptions | update +*UserIssueSearchOptionsControllerApi* | [**getUserIssueSearchOptions**](docs/UserIssueSearchOptionsControllerApi.md#getUserIssueSearchOptions) | **GET** /userIssueSearchOptions | get +*UserIssueSearchOptionsControllerApi* | [**updateUserIssueSearchOptions**](docs/UserIssueSearchOptionsControllerApi.md#updateUserIssueSearchOptions) | **PUT** /userIssueSearchOptions | update +*UserIssueSearchOptionsOfProjectVersionControllerApi* | [**getUserIssueSearchOptionsOfProjectVersion**](docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md#getUserIssueSearchOptionsOfProjectVersion) | **GET** /projectVersions/{parentId}/userIssueSearchOptions | get +*UserIssueSearchOptionsOfProjectVersionControllerApi* | [**updateUserIssueSearchOptionsOfProjectVersion**](docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md#updateUserIssueSearchOptionsOfProjectVersion) | **PUT** /projectVersions/{parentId}/userIssueSearchOptions | update +*UserPreferencesControllerApi* | [**postUserPreferences**](docs/UserPreferencesControllerApi.md#postUserPreferences) | **POST** /userSession/prefs | post +*UserPreferencesControllerApi* | [**updateUserPreferences**](docs/UserPreferencesControllerApi.md#updateUserPreferences) | **PUT** /userSession/prefs | update +*UserSessionInfoControllerApi* | [**postUserSessionInfo**](docs/UserSessionInfoControllerApi.md#postUserSessionInfo) | **POST** /userSession/info | post +*UserSessionStateControllerApi* | [**listUserSessionState**](docs/UserSessionStateControllerApi.md#listUserSessionState) | **GET** /userSession/state | list +*UserSessionStateControllerApi* | [**putUserSessionState**](docs/UserSessionStateControllerApi.md#putUserSessionState) | **PUT** /userSession/state | put +*ValidateEquationControllerApi* | [**doValidateEquation**](docs/ValidateEquationControllerApi.md#doValidateEquation) | **POST** /validateEquation | DoValidation +*ValidateSearchStringControllerApi* | [**doValidateSearchString**](docs/ValidateSearchStringControllerApi.md#doValidateSearchString) | **POST** /validateSearchString | DoValidation +*VariableControllerApi* | [**createVariable**](docs/VariableControllerApi.md#createVariable) | **POST** /variables | create +*VariableControllerApi* | [**deleteVariable**](docs/VariableControllerApi.md#deleteVariable) | **DELETE** /variables/{id} | delete +*VariableControllerApi* | [**listVariable**](docs/VariableControllerApi.md#listVariable) | **GET** /variables | list +*VariableControllerApi* | [**multiDeleteVariable**](docs/VariableControllerApi.md#multiDeleteVariable) | **DELETE** /variables | multiDelete +*VariableControllerApi* | [**updateVariable**](docs/VariableControllerApi.md#updateVariable) | **PUT** /variables/{id} | update +*VariableHistoryOfProjectVersionControllerApi* | [**listVariableHistoryOfProjectVersion**](docs/VariableHistoryOfProjectVersionControllerApi.md#listVariableHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/variableHistories | list +*VariableHistoryOfProjectVersionControllerApi* | [**readVariableHistoryOfProjectVersion**](docs/VariableHistoryOfProjectVersionControllerApi.md#readVariableHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/variableHistories/{id} | read + + +## Documentation for Models + + - [AATrainingStatus](docs/AATrainingStatus.md) + - [ActivityFeed](docs/ActivityFeed.md) + - [AlertDefinitionDto](docs/AlertDefinitionDto.md) + - [AlertHistoryEntry](docs/AlertHistoryEntry.md) + - [AlertSetStatusRequest](docs/AlertSetStatusRequest.md) + - [AlertTriggerDto](docs/AlertTriggerDto.md) + - [AlertableEventType](docs/AlertableEventType.md) + - [ApiActionResponse](docs/ApiActionResponse.md) + - [ApiBulkRequestItem](docs/ApiBulkRequestItem.md) + - [ApiBulkResponseData](docs/ApiBulkResponseData.md) + - [ApiBulkResponseItemResponse](docs/ApiBulkResponseItemResponse.md) + - [ApiCollectionActionlong](docs/ApiCollectionActionlong.md) + - [ApiCollectionActionstring](docs/ApiCollectionActionstring.md) + - [ApiResourceAction](docs/ApiResourceAction.md) + - [ApiResult](docs/ApiResult.md) + - [ApiResultAlertDefinitionDto](docs/ApiResultAlertDefinitionDto.md) + - [ApiResultApiActionResponse](docs/ApiResultApiActionResponse.md) + - [ApiResultApplicationNameTestResponse](docs/ApiResultApplicationNameTestResponse.md) + - [ApiResultApplicationState](docs/ApiResultApplicationState.md) + - [ApiResultArraystring](docs/ApiResultArraystring.md) + - [ApiResultArtifact](docs/ApiResultArtifact.md) + - [ApiResultAttribute](docs/ApiResultAttribute.md) + - [ApiResultAttributeDefinition](docs/ApiResultAttributeDefinition.md) + - [ApiResultAuthenticationEntity](docs/ApiResultAuthenticationEntity.md) + - [ApiResultAuthenticationToken](docs/ApiResultAuthenticationToken.md) + - [ApiResultBugFilingRequirementsResponse](docs/ApiResultBugFilingRequirementsResponse.md) + - [ApiResultBugfieldTemplateGroupDto](docs/ApiResultBugfieldTemplateGroupDto.md) + - [ApiResultCloudJob](docs/ApiResultCloudJob.md) + - [ApiResultCloudPool](docs/ApiResultCloudPool.md) + - [ApiResultCloudPoolMapping](docs/ApiResultCloudPoolMapping.md) + - [ApiResultCloudPoolProjectVersionActionResponse](docs/ApiResultCloudPoolProjectVersionActionResponse.md) + - [ApiResultCloudPoolWorkerActionResponse](docs/ApiResultCloudPoolWorkerActionResponse.md) + - [ApiResultCloudSystemMetrics](docs/ApiResultCloudSystemMetrics.md) + - [ApiResultCloudSystemPollStatus](docs/ApiResultCloudSystemPollStatus.md) + - [ApiResultCloudSystemSettings](docs/ApiResultCloudSystemSettings.md) + - [ApiResultCloudWorker](docs/ApiResultCloudWorker.md) + - [ApiResultConfigProperties](docs/ApiResultConfigProperties.md) + - [ApiResultConfigProperty](docs/ApiResultConfigProperty.md) + - [ApiResultCustomTag](docs/ApiResultCustomTag.md) + - [ApiResultDynamicScanRequest](docs/ApiResultDynamicScanRequest.md) + - [ApiResultDynamicScanRequestTemplate](docs/ApiResultDynamicScanRequestTemplate.md) + - [ApiResultDynamicScanRequestsSummary](docs/ApiResultDynamicScanRequestsSummary.md) + - [ApiResultFeature](docs/ApiResultFeature.md) + - [ApiResultFileToken](docs/ApiResultFileToken.md) + - [ApiResultFolder](docs/ApiResultFolder.md) + - [ApiResultIIDMigration](docs/ApiResultIIDMigration.md) + - [ApiResultIssueActionResponse](docs/ApiResultIssueActionResponse.md) + - [ApiResultIssueAgingPortlet](docs/ApiResultIssueAgingPortlet.md) + - [ApiResultIssueAssignment](docs/ApiResultIssueAssignment.md) + - [ApiResultIssueAttachment](docs/ApiResultIssueAttachment.md) + - [ApiResultIssueAuditComment](docs/ApiResultIssueAuditComment.md) + - [ApiResultIssueFileBugResponse](docs/ApiResultIssueFileBugResponse.md) + - [ApiResultIssueFilterSelectorSet](docs/ApiResultIssueFilterSelectorSet.md) + - [ApiResultIssueSearchOption](docs/ApiResultIssueSearchOption.md) + - [ApiResultIssueTemplate](docs/ApiResultIssueTemplate.md) + - [ApiResultIssueViewTemplate](docs/ApiResultIssueViewTemplate.md) + - [ApiResultJob](docs/ApiResultJob.md) + - [ApiResultLDAPEntity](docs/ApiResultLDAPEntity.md) + - [ApiResultLdapRefreshResponse](docs/ApiResultLdapRefreshResponse.md) + - [ApiResultLdapServerDto](docs/ApiResultLdapServerDto.md) + - [ApiResultLicense](docs/ApiResultLicense.md) + - [ApiResultListAATrainingStatus](docs/ApiResultListAATrainingStatus.md) + - [ApiResultListActivityFeed](docs/ApiResultListActivityFeed.md) + - [ApiResultListAlertDefinitionDto](docs/ApiResultListAlertDefinitionDto.md) + - [ApiResultListAlertHistoryEntry](docs/ApiResultListAlertHistoryEntry.md) + - [ApiResultListAlertableEventType](docs/ApiResultListAlertableEventType.md) + - [ApiResultListArtifact](docs/ApiResultListArtifact.md) + - [ApiResultListAttribute](docs/ApiResultListAttribute.md) + - [ApiResultListAttributeDefinition](docs/ApiResultListAttributeDefinition.md) + - [ApiResultListAuditAssistantStatus](docs/ApiResultListAuditAssistantStatus.md) + - [ApiResultListAuthenticationEntity](docs/ApiResultListAuthenticationEntity.md) + - [ApiResultListAuthenticationToken](docs/ApiResultListAuthenticationToken.md) + - [ApiResultListBugFilingRequirements](docs/ApiResultListBugFilingRequirements.md) + - [ApiResultListBugTracker](docs/ApiResultListBugTracker.md) + - [ApiResultListBugfieldTemplateGroupDto](docs/ApiResultListBugfieldTemplateGroupDto.md) + - [ApiResultListBulkResponseItem](docs/ApiResultListBulkResponseItem.md) + - [ApiResultListCloudJob](docs/ApiResultListCloudJob.md) + - [ApiResultListCloudPool](docs/ApiResultListCloudPool.md) + - [ApiResultListCloudPoolMapping](docs/ApiResultListCloudPoolMapping.md) + - [ApiResultListCloudWorker](docs/ApiResultListCloudWorker.md) + - [ApiResultListCustomTag](docs/ApiResultListCustomTag.md) + - [ApiResultListDashboardVersion](docs/ApiResultListDashboardVersion.md) + - [ApiResultListDataExport](docs/ApiResultListDataExport.md) + - [ApiResultListDynamicScanRequest](docs/ApiResultListDynamicScanRequest.md) + - [ApiResultListEngineType](docs/ApiResultListEngineType.md) + - [ApiResultListEventLog](docs/ApiResultListEventLog.md) + - [ApiResultListFeature](docs/ApiResultListFeature.md) + - [ApiResultListFilterSet](docs/ApiResultListFilterSet.md) + - [ApiResultListFolder](docs/ApiResultListFolder.md) + - [ApiResultListIIDMigration](docs/ApiResultListIIDMigration.md) + - [ApiResultListIssueAgingDto](docs/ApiResultListIssueAgingDto.md) + - [ApiResultListIssueAgingGroupDto](docs/ApiResultListIssueAgingGroupDto.md) + - [ApiResultListIssueAssignment](docs/ApiResultListIssueAssignment.md) + - [ApiResultListIssueAttachment](docs/ApiResultListIssueAttachment.md) + - [ApiResultListIssueAuditComment](docs/ApiResultListIssueAuditComment.md) + - [ApiResultListIssueAuditHistoryDto](docs/ApiResultListIssueAuditHistoryDto.md) + - [ApiResultListIssueSearchOption](docs/ApiResultListIssueSearchOption.md) + - [ApiResultListIssueStatistics](docs/ApiResultListIssueStatistics.md) + - [ApiResultListIssueSummary](docs/ApiResultListIssueSummary.md) + - [ApiResultListIssueTemplate](docs/ApiResultListIssueTemplate.md) + - [ApiResultListIssueViewTemplate](docs/ApiResultListIssueViewTemplate.md) + - [ApiResultListJob](docs/ApiResultListJob.md) + - [ApiResultListJobPriorityChangeCategoryWarning](docs/ApiResultListJobPriorityChangeCategoryWarning.md) + - [ApiResultListLDAPEntity](docs/ApiResultListLDAPEntity.md) + - [ApiResultListLdapServerDto](docs/ApiResultListLdapServerDto.md) + - [ApiResultListLocalUser](docs/ApiResultListLocalUser.md) + - [ApiResultListPerformanceIndicator](docs/ApiResultListPerformanceIndicator.md) + - [ApiResultListPerformanceIndicatorHistory](docs/ApiResultListPerformanceIndicatorHistory.md) + - [ApiResultListPermission](docs/ApiResultListPermission.md) + - [ApiResultListPersona](docs/ApiResultListPersona.md) + - [ApiResultListPluginMetaData](docs/ApiResultListPluginMetaData.md) + - [ApiResultListProject](docs/ApiResultListProject.md) + - [ApiResultListProjectVersion](docs/ApiResultListProjectVersion.md) + - [ApiResultListProjectVersionBugTracker](docs/ApiResultListProjectVersionBugTracker.md) + - [ApiResultListProjectVersionIssue](docs/ApiResultListProjectVersionIssue.md) + - [ApiResultListProjectVersionIssueDetails](docs/ApiResultListProjectVersionIssueDetails.md) + - [ApiResultListProjectVersionIssueGroup](docs/ApiResultListProjectVersionIssueGroup.md) + - [ApiResultListReportDefinition](docs/ApiResultListReportDefinition.md) + - [ApiResultListReportLibrary](docs/ApiResultListReportLibrary.md) + - [ApiResultListResponsibilityAssignment](docs/ApiResultListResponsibilityAssignment.md) + - [ApiResultListResultProcessingRule](docs/ApiResultListResultProcessingRule.md) + - [ApiResultListRole](docs/ApiResultListRole.md) + - [ApiResultListRulepackCore](docs/ApiResultListRulepackCore.md) + - [ApiResultListRulepacksBatchProcessStatus](docs/ApiResultListRulepacksBatchProcessStatus.md) + - [ApiResultListSavedReport](docs/ApiResultListSavedReport.md) + - [ApiResultListScan](docs/ApiResultListScan.md) + - [ApiResultListSourceFileDto](docs/ApiResultListSourceFileDto.md) + - [ApiResultListSystemConfiguration](docs/ApiResultListSystemConfiguration.md) + - [ApiResultListTokenDefinition](docs/ApiResultListTokenDefinition.md) + - [ApiResultListUserSessionState](docs/ApiResultListUserSessionState.md) + - [ApiResultListVariable](docs/ApiResultListVariable.md) + - [ApiResultListVariableHistory](docs/ApiResultListVariableHistory.md) + - [ApiResultListscanError](docs/ApiResultListscanError.md) + - [ApiResultLocalUser](docs/ApiResultLocalUser.md) + - [ApiResultPasswordStrengthCheckResponse](docs/ApiResultPasswordStrengthCheckResponse.md) + - [ApiResultPerformanceIndicator](docs/ApiResultPerformanceIndicator.md) + - [ApiResultPerformanceIndicatorHistory](docs/ApiResultPerformanceIndicatorHistory.md) + - [ApiResultPermission](docs/ApiResultPermission.md) + - [ApiResultPersona](docs/ApiResultPersona.md) + - [ApiResultPluginLocalization](docs/ApiResultPluginLocalization.md) + - [ApiResultPluginMetaData](docs/ApiResultPluginMetaData.md) + - [ApiResultProject](docs/ApiResultProject.md) + - [ApiResultProjectVersion](docs/ApiResultProjectVersion.md) + - [ApiResultProjectVersionIssue](docs/ApiResultProjectVersionIssue.md) + - [ApiResultProjectVersionIssueDetails](docs/ApiResultProjectVersionIssueDetails.md) + - [ApiResultProjectVersionRefreshResponse](docs/ApiResultProjectVersionRefreshResponse.md) + - [ApiResultProjectVersionTestResponse](docs/ApiResultProjectVersionTestResponse.md) + - [ApiResultReportDefinition](docs/ApiResultReportDefinition.md) + - [ApiResultReportLibrary](docs/ApiResultReportLibrary.md) + - [ApiResultResponsibilityAssignment](docs/ApiResultResponsibilityAssignment.md) + - [ApiResultRole](docs/ApiResultRole.md) + - [ApiResultSavedReport](docs/ApiResultSavedReport.md) + - [ApiResultScan](docs/ApiResultScan.md) + - [ApiResultSearchIndexStatus](docs/ApiResultSearchIndexStatus.md) + - [ApiResultSourceFileDto](docs/ApiResultSourceFileDto.md) + - [ApiResultSystemConfiguration](docs/ApiResultSystemConfiguration.md) + - [ApiResultUserIssueSearchOptions](docs/ApiResultUserIssueSearchOptions.md) + - [ApiResultUserPreferences](docs/ApiResultUserPreferences.md) + - [ApiResultUserSessionInformation](docs/ApiResultUserSessionInformation.md) + - [ApiResultValidationStatus](docs/ApiResultValidationStatus.md) + - [ApiResultVariable](docs/ApiResultVariable.md) + - [ApiResultVariableHistory](docs/ApiResultVariableHistory.md) + - [ApiResultVoid](docs/ApiResultVoid.md) + - [ApplicationNameTestRequest](docs/ApplicationNameTestRequest.md) + - [ApplicationNameTestResponse](docs/ApplicationNameTestResponse.md) + - [ApplicationState](docs/ApplicationState.md) + - [Artifact](docs/Artifact.md) + - [ArtifactApproveRequest](docs/ArtifactApproveRequest.md) + - [ArtifactPurgeRequest](docs/ArtifactPurgeRequest.md) + - [AssignedUser](docs/AssignedUser.md) + - [Attribute](docs/Attribute.md) + - [AttributeDefinition](docs/AttributeDefinition.md) + - [AttributeOption](docs/AttributeOption.md) + - [AuditAssistantStatus](docs/AuditAssistantStatus.md) + - [AuthTokenRevokeRequest](docs/AuthTokenRevokeRequest.md) + - [AuthenticationEntity](docs/AuthenticationEntity.md) + - [AuthenticationToken](docs/AuthenticationToken.md) + - [BugFilingRequirements](docs/BugFilingRequirements.md) + - [BugFilingRequirementsRequest](docs/BugFilingRequirementsRequest.md) + - [BugFilingRequirementsResponse](docs/BugFilingRequirementsResponse.md) + - [BugParam](docs/BugParam.md) + - [BugStateManagementCfg](docs/BugStateManagementCfg.md) + - [BugTracker](docs/BugTracker.md) + - [BugTrackerConfiguration](docs/BugTrackerConfiguration.md) + - [BugTrackerRequest](docs/BugTrackerRequest.md) + - [BugfieldTemplateDto](docs/BugfieldTemplateDto.md) + - [BugfieldTemplateGroupDto](docs/BugfieldTemplateGroupDto.md) + - [BulkRequestData](docs/BulkRequestData.md) + - [BulkResponseItem](docs/BulkResponseItem.md) + - [CloudJob](docs/CloudJob.md) + - [CloudJobCancelRequest](docs/CloudJobCancelRequest.md) + - [CloudPool](docs/CloudPool.md) + - [CloudPoolMapping](docs/CloudPoolMapping.md) + - [CloudPoolProjectVersionActionResponse](docs/CloudPoolProjectVersionActionResponse.md) + - [CloudPoolProjectVersionAssignRequest](docs/CloudPoolProjectVersionAssignRequest.md) + - [CloudPoolProjectVersionReplaceRequest](docs/CloudPoolProjectVersionReplaceRequest.md) + - [CloudPoolStats](docs/CloudPoolStats.md) + - [CloudPoolWorkerActionResponse](docs/CloudPoolWorkerActionResponse.md) + - [CloudPoolWorkerAssignRequest](docs/CloudPoolWorkerAssignRequest.md) + - [CloudPoolWorkerDisableRequest](docs/CloudPoolWorkerDisableRequest.md) + - [CloudPoolWorkerReplaceRequest](docs/CloudPoolWorkerReplaceRequest.md) + - [CloudScanConfig](docs/CloudScanConfig.md) + - [CloudSystemMetrics](docs/CloudSystemMetrics.md) + - [CloudSystemPollStatus](docs/CloudSystemPollStatus.md) + - [CloudSystemSettings](docs/CloudSystemSettings.md) + - [CloudWorker](docs/CloudWorker.md) + - [ConfigProperties](docs/ConfigProperties.md) + - [ConfigProperty](docs/ConfigProperty.md) + - [ConfigPropertyValueItem](docs/ConfigPropertyValueItem.md) + - [ConfigPropertyValueValidation](docs/ConfigPropertyValueValidation.md) + - [CustomTag](docs/CustomTag.md) + - [CustomTagInfo](docs/CustomTagInfo.md) + - [CustomTagLookup](docs/CustomTagLookup.md) + - [CustomTagLookupInfo](docs/CustomTagLookupInfo.md) + - [DashboardVersion](docs/DashboardVersion.md) + - [DataExport](docs/DataExport.md) + - [DynamicScanRequest](docs/DynamicScanRequest.md) + - [DynamicScanRequestParameter](docs/DynamicScanRequestParameter.md) + - [DynamicScanRequestParameterDefinition](docs/DynamicScanRequestParameterDefinition.md) + - [DynamicScanRequestParameterOption](docs/DynamicScanRequestParameterOption.md) + - [DynamicScanRequestTemplate](docs/DynamicScanRequestTemplate.md) + - [DynamicScanRequestsSummary](docs/DynamicScanRequestsSummary.md) + - [EmbeddedReportDefinition](docs/EmbeddedReportDefinition.md) + - [EmbeddedRoles](docs/EmbeddedRoles.md) + - [EmbeddedScans](docs/EmbeddedScans.md) + - [EngineType](docs/EngineType.md) + - [EntityStateIdentifier](docs/EntityStateIdentifier.md) + - [EventLog](docs/EventLog.md) + - [ExportAuditToCSVRequest](docs/ExportAuditToCSVRequest.md) + - [ExportIssueStatsToCSVRequest](docs/ExportIssueStatsToCSVRequest.md) + - [ExternalBugInfo](docs/ExternalBugInfo.md) + - [Feature](docs/Feature.md) + - [FileToken](docs/FileToken.md) + - [FilterSet](docs/FilterSet.md) + - [Folder](docs/Folder.md) + - [FolderDto](docs/FolderDto.md) + - [FortifyJob](docs/FortifyJob.md) + - [IIDMigration](docs/IIDMigration.md) + - [IidMapping](docs/IidMapping.md) + - [InputReportParameter](docs/InputReportParameter.md) + - [InputStream](docs/InputStream.md) + - [IssueActionResponse](docs/IssueActionResponse.md) + - [IssueAgingDto](docs/IssueAgingDto.md) + - [IssueAgingGroupDto](docs/IssueAgingGroupDto.md) + - [IssueAgingPortlet](docs/IssueAgingPortlet.md) + - [IssueAssignUserRequest](docs/IssueAssignUserRequest.md) + - [IssueAssignment](docs/IssueAssignment.md) + - [IssueAttachment](docs/IssueAttachment.md) + - [IssueAuditComment](docs/IssueAuditComment.md) + - [IssueAuditHistoryDto](docs/IssueAuditHistoryDto.md) + - [IssueAuditRequest](docs/IssueAuditRequest.md) + - [IssueAuditResult](docs/IssueAuditResult.md) + - [IssueFileBugRequest](docs/IssueFileBugRequest.md) + - [IssueFileBugResponse](docs/IssueFileBugResponse.md) + - [IssueFilterSelector](docs/IssueFilterSelector.md) + - [IssueFilterSelectorSet](docs/IssueFilterSelectorSet.md) + - [IssuePrimaryTag](docs/IssuePrimaryTag.md) + - [IssueSearchOption](docs/IssueSearchOption.md) + - [IssueSelector](docs/IssueSelector.md) + - [IssueStatistics](docs/IssueStatistics.md) + - [IssueSummary](docs/IssueSummary.md) + - [IssueSuppressRequest](docs/IssueSuppressRequest.md) + - [IssueTemplate](docs/IssueTemplate.md) + - [IssueUpdateTagRequest](docs/IssueUpdateTagRequest.md) + - [IssueViewTemplate](docs/IssueViewTemplate.md) + - [Job](docs/Job.md) + - [JobCancelRequest](docs/JobCancelRequest.md) + - [JobPriorityChangeCategoryWarning](docs/JobPriorityChangeCategoryWarning.md) + - [JobPriorityChangeInfo](docs/JobPriorityChangeInfo.md) + - [LDAPEntity](docs/LDAPEntity.md) + - [LdapRefreshResponse](docs/LdapRefreshResponse.md) + - [LdapServerDto](docs/LdapServerDto.md) + - [LdapServerTestRequest](docs/LdapServerTestRequest.md) + - [License](docs/License.md) + - [LicenseCapability](docs/LicenseCapability.md) + - [LocalUser](docs/LocalUser.md) + - [PasswordStrengthCheckRequest](docs/PasswordStrengthCheckRequest.md) + - [PasswordStrengthCheckResponse](docs/PasswordStrengthCheckResponse.md) + - [PerformanceIndicator](docs/PerformanceIndicator.md) + - [PerformanceIndicatorHistory](docs/PerformanceIndicatorHistory.md) + - [Permission](docs/Permission.md) + - [Persona](docs/Persona.md) + - [PluginConfiguration](docs/PluginConfiguration.md) + - [PluginDisableRequest](docs/PluginDisableRequest.md) + - [PluginEnableRequest](docs/PluginEnableRequest.md) + - [PluginLocalization](docs/PluginLocalization.md) + - [PluginMetaData](docs/PluginMetaData.md) + - [Project](docs/Project.md) + - [ProjectVersion](docs/ProjectVersion.md) + - [ProjectVersionAuditByAssistantRequest](docs/ProjectVersionAuditByAssistantRequest.md) + - [ProjectVersionAuthEntityAssignRequest](docs/ProjectVersionAuthEntityAssignRequest.md) + - [ProjectVersionBugTracker](docs/ProjectVersionBugTracker.md) + - [ProjectVersionCopyCurrentStateRequest](docs/ProjectVersionCopyCurrentStateRequest.md) + - [ProjectVersionCopyPartialRequest](docs/ProjectVersionCopyPartialRequest.md) + - [ProjectVersionIssue](docs/ProjectVersionIssue.md) + - [ProjectVersionIssueDetails](docs/ProjectVersionIssueDetails.md) + - [ProjectVersionIssueGroup](docs/ProjectVersionIssueGroup.md) + - [ProjectVersionPurgeRequest](docs/ProjectVersionPurgeRequest.md) + - [ProjectVersionRefreshRequest](docs/ProjectVersionRefreshRequest.md) + - [ProjectVersionRefreshResponse](docs/ProjectVersionRefreshResponse.md) + - [ProjectVersionState](docs/ProjectVersionState.md) + - [ProjectVersionTestRequest](docs/ProjectVersionTestRequest.md) + - [ProjectVersionTestResponse](docs/ProjectVersionTestResponse.md) + - [ProjectVersionTrainAuditAssistantRequest](docs/ProjectVersionTrainAuditAssistantRequest.md) + - [ReportAuthEntity](docs/ReportAuthEntity.md) + - [ReportDefinition](docs/ReportDefinition.md) + - [ReportLibrary](docs/ReportLibrary.md) + - [ReportParameter](docs/ReportParameter.md) + - [ReportParameterOption](docs/ReportParameterOption.md) + - [ReportProject](docs/ReportProject.md) + - [ReportProjectVersion](docs/ReportProjectVersion.md) + - [ResponsibilityAssignment](docs/ResponsibilityAssignment.md) + - [ResultProcessingRule](docs/ResultProcessingRule.md) + - [Role](docs/Role.md) + - [RulepackCore](docs/RulepackCore.md) + - [RulepacksBatchProcessStatus](docs/RulepacksBatchProcessStatus.md) + - [SavedReport](docs/SavedReport.md) + - [Scan](docs/Scan.md) + - [ScanError](docs/ScanError.md) + - [SearchIndexStatus](docs/SearchIndexStatus.md) + - [SelectorOption](docs/SelectorOption.md) + - [SourceFileDto](docs/SourceFileDto.md) + - [SystemConfiguration](docs/SystemConfiguration.md) + - [TemplateItem](docs/TemplateItem.md) + - [TokenDefinition](docs/TokenDefinition.md) + - [TraceNodeDto](docs/TraceNodeDto.md) + - [Trigger](docs/Trigger.md) + - [UserIssueSearchOptions](docs/UserIssueSearchOptions.md) + - [UserPhoto](docs/UserPhoto.md) + - [UserPreferences](docs/UserPreferences.md) + - [UserSessionInformation](docs/UserSessionInformation.md) + - [UserSessionState](docs/UserSessionState.md) + - [ValidationRequest](docs/ValidationRequest.md) + - [ValidationStatus](docs/ValidationStatus.md) + - [Variable](docs/Variable.md) + - [VariableHistory](docs/VariableHistory.md) + - [WIEConfiguration](docs/WIEConfiguration.md) + + +## Documentation for Authorization + +Authentication schemes defined for the API: +### Basic + +- **Type**: HTTP basic authentication + +### FortifyToken + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + + +## Recommendation + +It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. + +## Author + +Fortify R&D diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..255b993 --- /dev/null +++ b/build.gradle @@ -0,0 +1,106 @@ +apply plugin: 'idea' +apply plugin: 'eclipse' +//apply from: file('fortify-custom.gradle') + +group = 'com.fortify' +version = '2.0' + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0" + } +} + +repositories { + jcenter() +} + + +if(hasProperty('target') && target == 'android') { + + apply plugin: 'com.android.library' + apply plugin: 'com.github.dcendents.android-maven' + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.2' + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + + // Rename the aar correctly + libraryVariants.all { variant -> + variant.outputs.each { output -> + def outputFile = output.outputFile + if (outputFile != null && outputFile.name.endsWith('.aar')) { + def fileName = "${project.name}-${variant.baseName}-${version}.aar" + output.outputFile = new File(outputFile.parent, fileName) + } + } + } + + dependencies { + provided 'javax.annotation:jsr250-api:1.0' + } + } + + afterEvaluate { + android.libraryVariants.all { variant -> + def task = project.tasks.create "jar${variant.name.capitalize()}", Jar + task.description = "Create jar artifact for ${variant.name}" + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + task.destinationDir = project.file("${project.buildDir}/outputs/jar") + task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + artifacts.add('archives', task); + } + } + + task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' + } + + artifacts { + archives sourcesJar + } + +} else { + + apply plugin: 'java' + apply plugin: 'maven' + + sourceCompatibility = JavaVersion.VERSION_1_7 + targetCompatibility = JavaVersion.VERSION_1_7 + + install { + repositories.mavenInstaller { + pom.artifactId = 'ssc-restapi-client' + } + } + + task execute(type:JavaExec) { + main = System.getProperty('mainClass') + classpath = sourceSets.main.runtimeClasspath + } +} + +dependencies { + compile 'io.swagger:swagger-annotations:1.5.15' + compile 'com.squareup.okhttp:okhttp:2.7.5' + compile 'com.squareup.okhttp:logging-interceptor:2.7.5' + compile 'com.google.code.gson:gson:2.8.1' + compile 'io.gsonfire:gson-fire:1.8.0' + compile 'org.threeten:threetenbp:1.3.5' + testCompile 'junit:junit:4.12' +} diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..3dfbda0 --- /dev/null +++ b/build.sbt @@ -0,0 +1,21 @@ +lazy val root = (project in file(".")). + settings( + organization := "com.fortify", + name := "ssc-restapi-client", + version := "2.0", + scalaVersion := "2.11.4", + scalacOptions ++= Seq("-feature"), + javacOptions in compile ++= Seq("-Xlint:deprecation"), + publishArtifact in (Compile, packageDoc) := false, + resolvers += Resolver.mavenLocal, + libraryDependencies ++= Seq( + "io.swagger" % "swagger-annotations" % "1.5.15", + "com.squareup.okhttp" % "okhttp" % "2.7.5", + "com.squareup.okhttp" % "logging-interceptor" % "2.7.5", + "com.google.code.gson" % "gson" % "2.8.1", + "org.threeten" % "threetenbp" % "1.3.5" % "compile", + "io.gsonfire" % "gson-fire" % "1.8.0" % "compile", + "junit" % "junit" % "4.12" % "test", + "com.novocode" % "junit-interface" % "0.10" % "test" + ) + ) diff --git a/config.json b/config.json new file mode 100644 index 0000000..2e43523 --- /dev/null +++ b/config.json @@ -0,0 +1,8 @@ +{ + "groupId":"com.fortify", + "artifactId":"ssc-restapi-client", + "artifactVersion":"2.0", + "invokerPackage": "com.fortify.ssc.restclient", + "apiPackage": "com.fortify.ssc.restclient.api", + "modelPackage": "com.fortify.ssc.restclient.model" +} \ No newline at end of file diff --git a/docs/AATrainingStatus.md b/docs/AATrainingStatus.md new file mode 100644 index 0000000..22b18c2 --- /dev/null +++ b/docs/AATrainingStatus.md @@ -0,0 +1,24 @@ + +# AATrainingStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastTrainingTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**message** | **String** | | [optional] +**projectVersionId** | **Long** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**userName** | **String** | | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +NONE | "NONE" +TRAINING_SUBMITTED | "TRAINING_SUBMITTED" +TRAINING_FAILED | "TRAINING_FAILED" +TRAINING_COMPLETE | "TRAINING_COMPLETE" + + + diff --git a/docs/AaTrainingStatusOfProjectVersionControllerApi.md b/docs/AaTrainingStatusOfProjectVersionControllerApi.md new file mode 100644 index 0000000..03701fc --- /dev/null +++ b/docs/AaTrainingStatusOfProjectVersionControllerApi.md @@ -0,0 +1,64 @@ +# AaTrainingStatusOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAaTrainingStatusOfProjectVersion**](AaTrainingStatusOfProjectVersionControllerApi.md#listAaTrainingStatusOfProjectVersion) | **GET** /projectVersions/{parentId}/auditAssistantTrainingStatus | list + + + +# **listAaTrainingStatusOfProjectVersion** +> ApiResultListAATrainingStatus listAaTrainingStatusOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AaTrainingStatusOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AaTrainingStatusOfProjectVersionControllerApi apiInstance = new AaTrainingStatusOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListAATrainingStatus result = apiInstance.listAaTrainingStatusOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AaTrainingStatusOfProjectVersionControllerApi#listAaTrainingStatusOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListAATrainingStatus**](ApiResultListAATrainingStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ActivityFeed.md b/docs/ActivityFeed.md new file mode 100644 index 0000000..04a666f --- /dev/null +++ b/docs/ActivityFeed.md @@ -0,0 +1,229 @@ + +# ActivityFeed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authEntity** | [**AuthenticationEntity**](AuthenticationEntity.md) | Entity | [optional] +**detailedNote** | **String** | | [optional] +**entityId** | **Long** | | [optional] +**eventDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**eventType** | [**EventTypeEnum**](#EventTypeEnum) | | [optional] +**eventTypeDesc** | **String** | Description | [optional] +**id** | **Long** | | [optional] +**projectVersionId** | **Long** | | [optional] +**userName** | **String** | | [optional] + + + +## Enum: EventTypeEnum +Name | Value +---- | ----- +WEBUI_LOGIN_SUCCESS | "WEBUI_LOGIN_SUCCESS" +WEBUI_LOGIN_FAILED | "WEBUI_LOGIN_FAILED" +WEBUI_LOGOUT | "WEBUI_LOGOUT" +WS_LOGIN_SUCCESS | "WS_LOGIN_SUCCESS" +WS_LOGIN_FAILED | "WS_LOGIN_FAILED" +LOCAL_USER_CREATED | "LOCAL_USER_CREATED" +LOCAL_USER_UPDATED | "LOCAL_USER_UPDATED" +LOCAL_USER_DELETED | "LOCAL_USER_DELETED" +AGENT_CREDENTIAL_CREATED | "AGENT_CREDENTIAL_CREATED" +AGENT_CREDENTIAL_UPDATED | "AGENT_CREDENTIAL_UPDATED" +AGENT_CREDENTIAL_DELETED | "AGENT_CREDENTIAL_DELETED" +LDAP_ENTITY_CREATED | "LDAP_ENTITY_CREATED" +LDAP_ENTITY_UPDATED | "LDAP_ENTITY_UPDATED" +LDAP_ENTITY_DELETED | "LDAP_ENTITY_DELETED" +LDAP_CACHE_REFRESH_REQUESTED | "LDAP_CACHE_REFRESH_REQUESTED" +LDAP_CACHE_REFRESH_STARTED | "LDAP_CACHE_REFRESH_STARTED" +LDAP_CACHE_REFRESH_COMPLETED | "LDAP_CACHE_REFRESH_COMPLETED" +PROJECT_VERSION_CREATED | "PROJECT_VERSION_CREATED" +PROJECT_VERSION_CREATED_FROM_PREVIOUS | "PROJECT_VERSION_CREATED_FROM_PREVIOUS" +PROJECT_VERSION_UPDATED | "PROJECT_VERSION_UPDATED" +PROJECT_VERSION_DELETED | "PROJECT_VERSION_DELETED" +PROJECT_VERSION_METADATA_UPDATED | "PROJECT_VERSION_METADATA_UPDATED" +PROJECT_VERSION_ACCESS_ADDED | "PROJECT_VERSION_ACCESS_ADDED" +PROJECT_VERSION_ACCESS_REMOVED | "PROJECT_VERSION_ACCESS_REMOVED" +PROJECT_VERSION_BUG_TRACKER_UPDATED | "PROJECT_VERSION_BUG_TRACKER_UPDATED" +SCA_RESULT_PROCESSED | "SCA_RESULT_PROCESSED" +RUNTIME_RESULT_PROCESSED | "RUNTIME_RESULT_PROCESSED" +EXTERNAL_RESULT_PROCESSED | "EXTERNAL_RESULT_PROCESSED" +PTA_RESULT_PROCESSED | "PTA_RESULT_PROCESSED" +RTA_RESULT_PROCESSED | "RTA_RESULT_PROCESSED" +ARTIFACT_UPLOAD_REQUESTED | "ARTIFACT_UPLOAD_REQUESTED" +ARTIFACT_UPLOAD_STARTED | "ARTIFACT_UPLOAD_STARTED" +ARTIFACT_UPLOAD_COMPLETED | "ARTIFACT_UPLOAD_COMPLETED" +ARTIFACT_UPLOAD_FAILED | "ARTIFACT_UPLOAD_FAILED" +ARTIFACT_UPLOAD_CANCELLED | "ARTIFACT_UPLOAD_CANCELLED" +ARTIFACT_DELETE_REQUESTED | "ARTIFACT_DELETE_REQUESTED" +ARTIFACT_DELETE_STARTED | "ARTIFACT_DELETE_STARTED" +ARTIFACT_DELETE_COMPLETED | "ARTIFACT_DELETE_COMPLETED" +ARTIFACT_DELETE_FAILED | "ARTIFACT_DELETE_FAILED" +ARTIFACT_DELETE_CANCELLED | "ARTIFACT_DELETE_CANCELLED" +JOB_CANCELLED | "JOB_CANCELLED" +ARTIFACT_PURGE_REQUESTED | "ARTIFACT_PURGE_REQUESTED" +ARTIFACT_PURGE_REQUEST_STARTED | "ARTIFACT_PURGE_REQUEST_STARTED" +ARTIFACT_PURGE_COMPLETED | "ARTIFACT_PURGE_COMPLETED" +ARTIFACT_PURGE_FAILED | "ARTIFACT_PURGE_FAILED" +ARTIFACT_PURGE_REQUEST_FINISHED | "ARTIFACT_PURGE_REQUEST_FINISHED" +ARTIFACT_PURGE_CANCELLED | "ARTIFACT_PURGE_CANCELLED" +HISTORICAL_SNAPSHOT_COLLECTION_STARTED | "HISTORICAL_SNAPSHOT_COLLECTION_STARTED" +HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED | "HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED" +HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED | "HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED" +HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES | "HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES" +AUDIT_PERFORMED | "AUDIT_PERFORMED" +ARTIFACT_UPLOAD_REQUIRES_AUTH | "ARTIFACT_UPLOAD_REQUIRES_AUTH" +SOURCE_CODE_UPLOADED | "SOURCE_CODE_UPLOADED" +FILTERSET_FOLDER_REFRESH_REQUESTED | "FILTERSET_FOLDER_REFRESH_REQUESTED" +FILTERSET_FOLDER_REFRESH_COMPLETED | "FILTERSET_FOLDER_REFRESH_COMPLETED" +FILTERSET_FOLDER_REFRESH_FAILED | "FILTERSET_FOLDER_REFRESH_FAILED" +DYNAMIC_SCAN_CREATED | "DYNAMIC_SCAN_CREATED" +DYNAMIC_SCAN_EDITED | "DYNAMIC_SCAN_EDITED" +DYNAMIC_SCAN_CANCELED | "DYNAMIC_SCAN_CANCELED" +DYNAMIC_SCAN_COMPLETED | "DYNAMIC_SCAN_COMPLETED" +DYNAMIC_SCAN_PICKED_UP | "DYNAMIC_SCAN_PICKED_UP" +BATCH_BUG_FILING_REQUESTED | "BATCH_BUG_FILING_REQUESTED" +BATCH_BUG_FILING_REQUEST_FAILED | "BATCH_BUG_FILING_REQUEST_FAILED" +BATCH_BUG_FILING_STARTED | "BATCH_BUG_FILING_STARTED" +BATCH_BUG_FILING_ENDED | "BATCH_BUG_FILING_ENDED" +BATCH_BUG_FILING_FAILED | "BATCH_BUG_FILING_FAILED" +BUG_FILED | "BUG_FILED" +BUG_FAILED_TO_FILE | "BUG_FAILED_TO_FILE" +BUG_STATE_MANAGEMENT_STARTED | "BUG_STATE_MANAGEMENT_STARTED" +BUG_STATE_MANAGEMENT_ENDED | "BUG_STATE_MANAGEMENT_ENDED" +BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS | "BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS" +BUG_UPDATED | "BUG_UPDATED" +BUG_FAILED_TO_UPDATE | "BUG_FAILED_TO_UPDATE" +COMMENT_ADDED_TO_ISSUE | "COMMENT_ADDED_TO_ISSUE" +AUDIT_ASSISTANT_ISSUES_SUBMITTED | "AUDIT_ASSISTANT_ISSUES_SUBMITTED" +AUDIT_ASSISTANT_ISSUES_RETRIEVED | "AUDIT_ASSISTANT_ISSUES_RETRIEVED" +AUDIT_ASSISTANT_FPR_UPLOAD_STARTED | "AUDIT_ASSISTANT_FPR_UPLOAD_STARTED" +AUDIT_ASSISTANT_TRAINING_SENT | "AUDIT_ASSISTANT_TRAINING_SENT" +AUDIT_ASSISTANT_TEST_CONNECTION_FAILED | "AUDIT_ASSISTANT_TEST_CONNECTION_FAILED" +AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED | "AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED" +AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED | "AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED" +AUDIT_ASSISTANT_FPR_UPLOAD_FAILED | "AUDIT_ASSISTANT_FPR_UPLOAD_FAILED" +AUDIT_ASSISTANT_TRAINING_SENT_FAILED | "AUDIT_ASSISTANT_TRAINING_SENT_FAILED" +REPORT_GENERATION_REQUESTED | "REPORT_GENERATION_REQUESTED" +REPORT_GENERATION_COMPLETED | "REPORT_GENERATION_COMPLETED" +REPORT_GENERATION_FAILED | "REPORT_GENERATION_FAILED" +REPORT_GENERATION_CANCELLED | "REPORT_GENERATION_CANCELLED" +REPORT_DELETED | "REPORT_DELETED" +RULEPACK_SERVER_UPDATE | "RULEPACK_SERVER_UPDATE" +RULEPACK_USER_UPLOAD | "RULEPACK_USER_UPLOAD" +RULEPACK_DELETED | "RULEPACK_DELETED" +RULEPACK_DOWNLOAD | "RULEPACK_DOWNLOAD" +RULEPACK_CLIENT_UPDATE | "RULEPACK_CLIENT_UPDATE" +DOCUMENT_ARTIFACT_CREATED | "DOCUMENT_ARTIFACT_CREATED" +DOCUMENT_ARTIFACT_UPDATED | "DOCUMENT_ARTIFACT_UPDATED" +DOCUMENT_ARTIFACT_DELETED | "DOCUMENT_ARTIFACT_DELETED" +TASK_INSTANCE_CREATED | "TASK_INSTANCE_CREATED" +TASK_INSTANCE_UPDATED | "TASK_INSTANCE_UPDATED" +TASK_INSTANCE_DELETED | "TASK_INSTANCE_DELETED" +TASK_INSTANCE_SIGNOFF_UPDATED | "TASK_INSTANCE_SIGNOFF_UPDATED" +ACTIVITY_INSTANCE_SIGNOFF_UPDATED | "ACTIVITY_INSTANCE_SIGNOFF_UPDATED" +REQUIREMENT_INSTANCE_SIGNOFF_UPDATED | "REQUIREMENT_INSTANCE_SIGNOFF_UPDATED" +REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED | "REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED" +TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF | "REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF" +SDL_COMMENT_CREATED | "SDL_COMMENT_CREATED" +PROJECT_PERSONA_ASSIGNMENT_UPDATED | "PROJECT_PERSONA_ASSIGNMENT_UPDATED" +PERSONA_ASSIGNMENT_UPDATED | "PERSONA_ASSIGNMENT_UPDATED" +WORK_OWNER_UPDATED | "WORK_OWNER_UPDATED" +DUE_DATE_UPDATED | "DUE_DATE_UPDATED" +SESSION_TIMEOUT | "SESSION_TIMEOUT" +REQ_TEMPLATE_CREATED | "REQ_TEMPLATE_CREATED" +REQ_TEMPLATE_UPDATED | "REQ_TEMPLATE_UPDATED" +ACTIVITY_CREATED | "ACTIVITY_CREATED" +ACTIVITY_UPDATED | "ACTIVITY_UPDATED" +VARIABLE_CREATED | "VARIABLE_CREATED" +VARIABLE_UPDATED | "VARIABLE_UPDATED" +VARIABLE_DELETED | "VARIABLE_DELETED" +MEASUREMENT_AGENT_CREATED | "MEASUREMENT_AGENT_CREATED" +MEASUREMENT_AGENT_UPDATED | "MEASUREMENT_AGENT_UPDATED" +MEASUREMENT_AGENT_DELETED | "MEASUREMENT_AGENT_DELETED" +DOCUMENT_DEF_CREATED | "DOCUMENT_DEF_CREATED" +DOCUMENT_DEF_UPDATED | "DOCUMENT_DEF_UPDATED" +PROJECT_TEMPLATE_CREATED | "PROJECT_TEMPLATE_CREATED" +PROJECT_TEMPLATE_UPDATED | "PROJECT_TEMPLATE_UPDATED" +PROJECT_TEMPLATE_DELETED | "PROJECT_TEMPLATE_DELETED" +ASSIGNMENT_RULES_UPDATED | "ASSIGNMENT_RULES_UPDATED" +PERSONA_CREATED | "PERSONA_CREATED" +PERSONA_UPDATED | "PERSONA_UPDATED" +PERSONA_DELETED | "PERSONA_DELETED" +ATTR_CREATED | "ATTR_CREATED" +ATTR_UPDATED | "ATTR_UPDATED" +ATTR_DELETED | "ATTR_DELETED" +PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT | "PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT" +PROJECT_VERSION_PRIMARY_TAG_UPDATE | "PROJECT_VERSION_PRIMARY_TAG_UPDATE" +REPORT_DEFINITION_CREATED | "REPORT_DEFINITION_CREATED" +REPORT_DEFINITION_UPDATED | "REPORT_DEFINITION_UPDATED" +REPORT_DEFINITION_DELETED | "REPORT_DEFINITION_DELETED" +REPORT_LIBRARY_CREATED | "REPORT_LIBRARY_CREATED" +REPORT_LIBRARY_UPDATED | "REPORT_LIBRARY_UPDATED" +REPORT_LIBRARY_DELETED | "REPORT_LIBRARY_DELETED" +RUNTIME_HOST_CONNECTED | "RUNTIME_HOST_CONNECTED" +RUNTIME_HOST_DISCONNECTED | "RUNTIME_HOST_DISCONNECTED" +RUNTIME_HOST_CREATED | "RUNTIME_HOST_CREATED" +RUNTIME_HOST_DELETED | "RUNTIME_HOST_DELETED" +RUNTIME_HOST_DISCOVERED | "RUNTIME_HOST_DISCOVERED" +RUNTIME_HOST_ENABLED | "RUNTIME_HOST_ENABLED" +RUNTIME_HOST_DISABLED | "RUNTIME_HOST_DISABLED" +RUNTIME_HOST_AUTH_RESET | "RUNTIME_HOST_AUTH_RESET" +ACCEPT_NEW_HOSTS_ENABLED | "ACCEPT_NEW_HOSTS_ENABLED" +ACCEPT_NEW_HOSTS_DISABLED | "ACCEPT_NEW_HOSTS_DISABLED" +DISABLED_HOST_CONNECTION | "DISABLED_HOST_CONNECTION" +RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED | "RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED" +RUNTIME_CONFIGURATION_CREATED | "RUNTIME_CONFIGURATION_CREATED" +RUNTIME_CONFIGURATION_UPDATED | "RUNTIME_CONFIGURATION_UPDATED" +RUNTIME_CONFIGURATION_DELETED | "RUNTIME_CONFIGURATION_DELETED" +RUNTIME_CONFIGURATION_TEMPLATE_UPDATED | "RUNTIME_CONFIGURATION_TEMPLATE_UPDATED" +RUNTIME_EH_CREATED | "RUNTIME_EH_CREATED" +RUNTIME_EH_UPDATED | "RUNTIME_EH_UPDATED" +RUNTIME_EH_DELETED | "RUNTIME_EH_DELETED" +RUNTIME_SETTINGS_UPDATED | "RUNTIME_SETTINGS_UPDATED" +RUNTIME_RULEPACK_CONFIG_UPDATED | "RUNTIME_RULEPACK_CONFIG_UPDATED" +RUNTIME_EVENT_RECEIVED | "RUNTIME_EVENT_RECEIVED" +RUNTIME_ALERT_RECEIVED | "RUNTIME_ALERT_RECEIVED" +FEDERATION_CREATED | "FEDERATION_CREATED" +FEDERATION_UPDATED | "FEDERATION_UPDATED" +FEDERATION_DELETED | "FEDERATION_DELETED" +RTAPP_CREATED | "RTAPP_CREATED" +RTAPP_UPDATED | "RTAPP_UPDATED" +RTAPP_DELETED | "RTAPP_DELETED" +RTAPP_ACCESS_ADDED | "RTAPP_ACCESS_ADDED" +RTAPP_ACCESS_REMOVED | "RTAPP_ACCESS_REMOVED" +USERROLE_CREATED | "USERROLE_CREATED" +USERROLE_UPDATED | "USERROLE_UPDATED" +USERROLE_DELETED | "USERROLE_DELETED" +CLOUD_SCAN_POLLED | "CLOUD_SCAN_POLLED" +CLOUD_POOL_CREATED | "CLOUD_POOL_CREATED" +CLOUD_POOL_UPDATED | "CLOUD_POOL_UPDATED" +CLOUD_POOL_DELETED | "CLOUD_POOL_DELETED" +CLOUD_POOL_AVS_UPDATED | "CLOUD_POOL_AVS_UPDATED" +CLOUD_POOL_SENSORS_UPDATED | "CLOUD_POOL_SENSORS_UPDATED" +CLOUD_JOB_CANCELED | "CLOUD_JOB_CANCELED" +CLOUD_JOB_FPR_DOWNLOADED | "CLOUD_JOB_FPR_DOWNLOADED" +CLOUD_JOB_LOG_DOWNLOADED | "CLOUD_JOB_LOG_DOWNLOADED" +INDEX_MAINTENANCE_STARTED | "INDEX_MAINTENANCE_STARTED" +INDEX_MAINTENANCE_COMPLETED | "INDEX_MAINTENANCE_COMPLETED" +FULL_REINDEX_STARTED | "FULL_REINDEX_STARTED" +FULL_REINDEX_COMPLETED | "FULL_REINDEX_COMPLETED" +INDEX_NEW_ISSUES_STARTED | "INDEX_NEW_ISSUES_STARTED" +INDEX_NEW_ISSUES_COMPLETED | "INDEX_NEW_ISSUES_COMPLETED" +SSC_CONFIGURATION_UPDATED | "SSC_CONFIGURATION_UPDATED" +LDAP_CONFIG_CREATED | "LDAP_CONFIG_CREATED" +LDAP_CONFIG_UPDATED | "LDAP_CONFIG_UPDATED" +LDAP_CONFIG_DELETED | "LDAP_CONFIG_DELETED" +LDAP_CONFIG_DEFAULT_CHANGED | "LDAP_CONFIG_DEFAULT_CHANGED" +SEED_BUNDLE_UPLOAD_COMPLETED | "SEED_BUNDLE_UPLOAD_COMPLETED" +SEED_BUNDLE_UPLOAD_FAILED | "SEED_BUNDLE_UPLOAD_FAILED" +SEED_BUNDLE_COMPLETED | "SEED_BUNDLE_COMPLETED" +SEED_BUNDLE_FAILED | "SEED_BUNDLE_FAILED" + + + diff --git a/docs/ActivityFeedControllerApi.md b/docs/ActivityFeedControllerApi.md new file mode 100644 index 0000000..58ff8e0 --- /dev/null +++ b/docs/ActivityFeedControllerApi.md @@ -0,0 +1,66 @@ +# ActivityFeedControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listActivityFeed**](ActivityFeedControllerApi.md#listActivityFeed) | **GET** /activityFeedEvents | list + + + +# **listActivityFeed** +> ApiResultListActivityFeed listActivityFeed(fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ActivityFeedControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ActivityFeedControllerApi apiInstance = new ActivityFeedControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListActivityFeed result = apiInstance.listActivityFeed(fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityFeedControllerApi#listActivityFeed"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListActivityFeed**](ApiResultListActivityFeed.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AlertDefinitionControllerApi.md b/docs/AlertDefinitionControllerApi.md new file mode 100644 index 0000000..8b05d1c --- /dev/null +++ b/docs/AlertDefinitionControllerApi.md @@ -0,0 +1,344 @@ +# AlertDefinitionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAlertDefinition**](AlertDefinitionControllerApi.md#createAlertDefinition) | **POST** /alertDefinitions | create +[**deleteAlertDefinition**](AlertDefinitionControllerApi.md#deleteAlertDefinition) | **DELETE** /alertDefinitions/{id} | delete +[**listAlertDefinition**](AlertDefinitionControllerApi.md#listAlertDefinition) | **GET** /alertDefinitions | list +[**multiDeleteAlertDefinition**](AlertDefinitionControllerApi.md#multiDeleteAlertDefinition) | **DELETE** /alertDefinitions | multiDelete +[**readAlertDefinition**](AlertDefinitionControllerApi.md#readAlertDefinition) | **GET** /alertDefinitions/{id} | read +[**updateAlertDefinition**](AlertDefinitionControllerApi.md#updateAlertDefinition) | **PUT** /alertDefinitions/{id} | update + + + +# **createAlertDefinition** +> ApiResultAlertDefinitionDto createAlertDefinition(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +AlertDefinitionDto resource = new AlertDefinitionDto(); // AlertDefinitionDto | resource +try { + ApiResultAlertDefinitionDto result = apiInstance.createAlertDefinition(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#createAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**AlertDefinitionDto**](AlertDefinitionDto.md)| resource | + +### Return type + +[**ApiResultAlertDefinitionDto**](ApiResultAlertDefinitionDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteAlertDefinition** +> ApiResultVoid deleteAlertDefinition(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteAlertDefinition(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#deleteAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAlertDefinition** +> ApiResultListAlertDefinitionDto listAlertDefinition(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListAlertDefinitionDto result = apiInstance.listAlertDefinition(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#listAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListAlertDefinitionDto**](ApiResultListAlertDefinitionDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteAlertDefinition** +> ApiResultVoid multiDeleteAlertDefinition(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteAlertDefinition(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#multiDeleteAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAlertDefinition** +> ApiResultAlertDefinitionDto readAlertDefinition(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultAlertDefinitionDto result = apiInstance.readAlertDefinition(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#readAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultAlertDefinitionDto**](ApiResultAlertDefinitionDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateAlertDefinition** +> ApiResultAlertDefinitionDto updateAlertDefinition(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertDefinitionControllerApi apiInstance = new AlertDefinitionControllerApi(); +Long id = 789L; // Long | id +AlertDefinitionDto resource = new AlertDefinitionDto(); // AlertDefinitionDto | resource +try { + ApiResultAlertDefinitionDto result = apiInstance.updateAlertDefinition(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertDefinitionControllerApi#updateAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**AlertDefinitionDto**](AlertDefinitionDto.md)| resource | + +### Return type + +[**ApiResultAlertDefinitionDto**](ApiResultAlertDefinitionDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AlertDefinitionDto.md b/docs/AlertDefinitionDto.md new file mode 100644 index 0000000..19dae31 --- /dev/null +++ b/docs/AlertDefinitionDto.md @@ -0,0 +1,61 @@ + +# AlertDefinitionDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alertAllChildren** | **Boolean** | | [optional] +**alertStakeholders** | **Boolean** | | [optional] +**alertTriggers** | [**List<AlertTriggerDto>**](AlertTriggerDto.md) | | +**createdBy** | **String** | | [optional] +**creationDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**customMessage** | **String** | Required field for Scheduled alerts, Optional for other types | +**description** | **String** | | [optional] +**enabled** | **Boolean** | | [optional] +**endDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**id** | **Long** | | [optional] +**monitorAllApps** | **Boolean** | | [optional] +**monitoredEntityName** | **String** | | [optional] +**monitoredEntityType** | [**MonitoredEntityTypeEnum**](#MonitoredEntityTypeEnum) | | +**monitoredInstanceId** | **Long** | | [optional] +**monitorsProjectVersions** | **Boolean** | | [optional] +**monitorsRuntimeApp** | **Boolean** | | [optional] +**name** | **String** | | +**projectVersionIds** | **List<Long>** | | [optional] +**recipientType** | [**RecipientTypeEnum**](#RecipientTypeEnum) | | +**remindPeriodically** | **Boolean** | | [optional] +**reminderPeriod** | **Integer** | | [optional] +**startAtDueDate** | **Boolean** | | [optional] +**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**triggerDescription** | **String** | | [optional] +**triggerDescriptionName** | **String** | | [optional] +**triggerDescriptionOperation** | **String** | | [optional] +**triggerDescriptionValue** | **String** | | [optional] +**userCanModify** | **Boolean** | | [optional] + + + +## Enum: MonitoredEntityTypeEnum +Name | Value +---- | ----- +RT_INSTANCE | "RT_INSTANCE" +REQ_INSTANCE | "REQ_INSTANCE" +ACTIVITY_INSTANCE | "ACTIVITY_INSTANCE" +MEASUREMENT_AGENT | "MEASUREMENT_AGENT" +VARIABLE | "VARIABLE" +RUNTIME_ALERT | "RUNTIME_ALERT" +EVENT | "EVENT" +SCHEDULED_ALERT | "SCHEDULED_ALERT" + + + +## Enum: RecipientTypeEnum +Name | Value +---- | ----- +ME_ONLY | "ME_ONLY" +PROCESS_ENTITY_STAKEHOLDERS | "PROCESS_ENTITY_STAKEHOLDERS" +ALL_USERS | "ALL_USERS" +ALL_SYSTEM_USERS | "ALL_SYSTEM_USERS" + + + diff --git a/docs/AlertHistoryControllerApi.md b/docs/AlertHistoryControllerApi.md new file mode 100644 index 0000000..16cd756 --- /dev/null +++ b/docs/AlertHistoryControllerApi.md @@ -0,0 +1,176 @@ +# AlertHistoryControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doActionAlertHistory**](AlertHistoryControllerApi.md#doActionAlertHistory) | **POST** /alerts/action | doAction +[**listAlertHistory**](AlertHistoryControllerApi.md#listAlertHistory) | **GET** /alerts | list +[**setStatusForAlertHistory**](AlertHistoryControllerApi.md#setStatusForAlertHistory) | **POST** /alerts/action/setStatus | setStatusFor + + + +# **doActionAlertHistory** +> ApiResultApiActionResponse doActionAlertHistory(collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertHistoryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertHistoryControllerApi apiInstance = new AlertHistoryControllerApi(); +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionAlertHistory(collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertHistoryControllerApi#doActionAlertHistory"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAlertHistory** +> ApiResultListAlertHistoryEntry listAlertHistory(start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertHistoryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertHistoryControllerApi apiInstance = new AlertHistoryControllerApi(); +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListAlertHistoryEntry result = apiInstance.listAlertHistory(start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertHistoryControllerApi#listAlertHistory"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListAlertHistoryEntry**](ApiResultListAlertHistoryEntry.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **setStatusForAlertHistory** +> ApiResultVoid setStatusForAlertHistory(resource) + +setStatusFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertHistoryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertHistoryControllerApi apiInstance = new AlertHistoryControllerApi(); +AlertSetStatusRequest resource = new AlertSetStatusRequest(); // AlertSetStatusRequest | resource +try { + ApiResultVoid result = apiInstance.setStatusForAlertHistory(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertHistoryControllerApi#setStatusForAlertHistory"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**AlertSetStatusRequest**](AlertSetStatusRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AlertHistoryEntry.md b/docs/AlertHistoryEntry.md new file mode 100644 index 0000000..9d6a2d4 --- /dev/null +++ b/docs/AlertHistoryEntry.md @@ -0,0 +1,19 @@ + +# AlertHistoryEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**alertCustomMessage** | **String** | | [optional] +**alertDefinitionName** | **String** | | [optional] +**alertMessage** | **String** | | [optional] +**id** | **Long** | alert history id | [optional] +**monitoredEntityType** | **String** | | [optional] +**projectAndVersionLabel** | **String** | | [optional] +**projectVersionId** | **Long** | | [optional] +**triggeredDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**userName** | **String** | | [optional] + + + diff --git a/docs/AlertSetStatusRequest.md b/docs/AlertSetStatusRequest.md new file mode 100644 index 0000000..334fb55 --- /dev/null +++ b/docs/AlertSetStatusRequest.md @@ -0,0 +1,11 @@ + +# AlertSetStatusRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alertHistoryIds** | **List<Long>** | Alert history ids to set status | +**status** | **String** | Status of alerts, classified as read or unread | + + + diff --git a/docs/AlertTriggerDto.md b/docs/AlertTriggerDto.md new file mode 100644 index 0000000..df9c0cd --- /dev/null +++ b/docs/AlertTriggerDto.md @@ -0,0 +1,27 @@ + +# AlertTriggerDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alertDefinitionId** | **Long** | | [optional] +**monitoredAttribute** | [**MonitoredAttributeEnum**](#MonitoredAttributeEnum) | | [optional] +**resetAfterTriggering** | **Boolean** | | [optional] +**triggeredValue** | **String** | | [optional] + + + +## Enum: MonitoredAttributeEnum +Name | Value +---- | ----- +SIGN_OFF_STATE | "SIGN_OFF_STATE" +VALUE_GT | "VALUE_GT" +VALUE_LT | "VALUE_LT" +VALUE_EQ | "VALUE_EQ" +VALUE_GTE | "VALUE_GTE" +VALUE_LTE | "VALUE_LTE" +EVENT_TYPE | "EVENT_TYPE" +SCHEDULED_ALERT_TIME | "SCHEDULED_ALERT_TIME" + + + diff --git a/docs/AlertableEventType.md b/docs/AlertableEventType.md new file mode 100644 index 0000000..f421b92 --- /dev/null +++ b/docs/AlertableEventType.md @@ -0,0 +1,41 @@ + +# AlertableEventType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | [**CategoryEnum**](#CategoryEnum) | | [optional] +**displayName** | **String** | | [optional] +**eventTypeConstant** | **String** | | [optional] +**scope** | [**ScopeEnum**](#ScopeEnum) | | [optional] + + + +## Enum: CategoryEnum +Name | Value +---- | ----- +USER_ADMINISTRATION | "USER_ADMINISTRATION" +PV_ADMINISTRATION | "PV_ADMINISTRATION" +PV_ISSUES | "PV_ISSUES" +REPORT | "REPORT" +GENERAL_ADMINISTRATION | "GENERAL_ADMINISTRATION" +GOVERNANCE | "GOVERNANCE" +RUNTIME_HOST | "RUNTIME_HOST" +RUNTIME_FEDERATION | "RUNTIME_FEDERATION" +RUNTIME_CONFIGURATION | "RUNTIME_CONFIGURATION" +RUNTIME_APP_ADMINISTRATION | "RUNTIME_APP_ADMINISTRATION" +FULLTEXT | "FULLTEXT" +CLOUDSCAN | "CLOUDSCAN" + + + +## Enum: ScopeEnum +Name | Value +---- | ----- +PROJECT_VERSION | "PROJECT_VERSION" +RUNTIME_APP | "RUNTIME_APP" +NONE | "NONE" +ALL | "ALL" + + + diff --git a/docs/AlertableEventTypeControllerApi.md b/docs/AlertableEventTypeControllerApi.md new file mode 100644 index 0000000..c2fb93f --- /dev/null +++ b/docs/AlertableEventTypeControllerApi.md @@ -0,0 +1,62 @@ +# AlertableEventTypeControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAlertableEventType**](AlertableEventTypeControllerApi.md#listAlertableEventType) | **GET** /alertableEventTypes | list + + + +# **listAlertableEventType** +> ApiResultListAlertableEventType listAlertableEventType(fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AlertableEventTypeControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AlertableEventTypeControllerApi apiInstance = new AlertableEventTypeControllerApi(); +String fields = "fields_example"; // String | Output fields +try { + ApiResultListAlertableEventType result = apiInstance.listAlertableEventType(fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AlertableEventTypeControllerApi#listAlertableEventType"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListAlertableEventType**](ApiResultListAlertableEventType.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ApiActionResponse.md b/docs/ApiActionResponse.md new file mode 100644 index 0000000..ccae3c2 --- /dev/null +++ b/docs/ApiActionResponse.md @@ -0,0 +1,21 @@ + +# ApiActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**values** | **Object** | | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +SUCCESS | "success" +CREATED | "created" +ERROR | "error" + + + diff --git a/docs/ApiBulkRequestItem.md b/docs/ApiBulkRequestItem.md new file mode 100644 index 0000000..7432a1e --- /dev/null +++ b/docs/ApiBulkRequestItem.md @@ -0,0 +1,22 @@ + +# ApiBulkRequestItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**httpVerb** | [**HttpVerbEnum**](#HttpVerbEnum) | | [optional] +**postData** | **Object** | | [optional] +**uri** | **String** | | [optional] + + + +## Enum: HttpVerbEnum +Name | Value +---- | ----- +GET | "GET" +PUT | "PUT" +POST | "POST" +DELETE | "DELETE" + + + diff --git a/docs/ApiBulkResponseData.md b/docs/ApiBulkResponseData.md new file mode 100644 index 0000000..488ae07 --- /dev/null +++ b/docs/ApiBulkResponseData.md @@ -0,0 +1,17 @@ + +# ApiBulkResponseData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | **Object** | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiBulkResponseItemResponse.md b/docs/ApiBulkResponseItemResponse.md new file mode 100644 index 0000000..cdd512c --- /dev/null +++ b/docs/ApiBulkResponseItemResponse.md @@ -0,0 +1,12 @@ + +# ApiBulkResponseItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**ApiBulkResponseData**](ApiBulkResponseData.md) | | [optional] +**headers** | **Map<String, String>** | | [optional] +**requestUrl** | **String** | | [optional] + + + diff --git a/docs/ApiCollectionActionlong.md b/docs/ApiCollectionActionlong.md new file mode 100644 index 0000000..1532a24 --- /dev/null +++ b/docs/ApiCollectionActionlong.md @@ -0,0 +1,46 @@ + +# ApiCollectionActionlong + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List<Long>** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | [optional] +**values** | **Object** | | [optional] + + + +## Enum: TypeEnum +Name | Value +---- | ----- +CREATE | "create" +LOGIN | "login" +APPROVE | "approve" +PURGE | "purge" +REVOKE | "revoke" +CANCEL | "cancel" +REVIEW | "review" +ASSIGN | "assign" +ENABLE | "enable" +DISABLE | "disable" +REPLACE | "replace" +DELEGATE | "delegate" +UPDATE_ISSUE_TAG | "update_issue_tag" +SET_ISSUE_SUPPRESSED | "set_issue_suppressed" +ASSIGN_ISSUE_TO_USER | "assign_issue_to_user" +AUDIT_ISSUE | "audit_issue" +SET_STATUS | "set_status" +FILE_BUG | "file_bug" +REFRESH | "refresh" +TEST | "test" +CHECK_PASSWORD_STRENGTH | "check_password_strength" +COPY_FROM_PARTIAL | "copy_from_partial" +COPY_CURRENT_STATE | "copy_current_state" +SEND_TO_AUDITASSISTANT | "send_to_auditassistant" +SEND_FOR_TRAINING | "send_for_training" +EXPORT_TO_CSV | "export_to_csv" +EXPORT_ISSUE_STATS_TO_CSV | "export_issue_stats_to_csv" +EXPORT_AUDIT_TO_CSV | "export_audit_to_csv" + + + diff --git a/docs/ApiCollectionActionstring.md b/docs/ApiCollectionActionstring.md new file mode 100644 index 0000000..e8dddbc --- /dev/null +++ b/docs/ApiCollectionActionstring.md @@ -0,0 +1,46 @@ + +# ApiCollectionActionstring + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List<String>** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | [optional] +**values** | **Object** | | [optional] + + + +## Enum: TypeEnum +Name | Value +---- | ----- +CREATE | "create" +LOGIN | "login" +APPROVE | "approve" +PURGE | "purge" +REVOKE | "revoke" +CANCEL | "cancel" +REVIEW | "review" +ASSIGN | "assign" +ENABLE | "enable" +DISABLE | "disable" +REPLACE | "replace" +DELEGATE | "delegate" +UPDATE_ISSUE_TAG | "update_issue_tag" +SET_ISSUE_SUPPRESSED | "set_issue_suppressed" +ASSIGN_ISSUE_TO_USER | "assign_issue_to_user" +AUDIT_ISSUE | "audit_issue" +SET_STATUS | "set_status" +FILE_BUG | "file_bug" +REFRESH | "refresh" +TEST | "test" +CHECK_PASSWORD_STRENGTH | "check_password_strength" +COPY_FROM_PARTIAL | "copy_from_partial" +COPY_CURRENT_STATE | "copy_current_state" +SEND_TO_AUDITASSISTANT | "send_to_auditassistant" +SEND_FOR_TRAINING | "send_for_training" +EXPORT_TO_CSV | "export_to_csv" +EXPORT_ISSUE_STATS_TO_CSV | "export_issue_stats_to_csv" +EXPORT_AUDIT_TO_CSV | "export_audit_to_csv" + + + diff --git a/docs/ApiResourceAction.md b/docs/ApiResourceAction.md new file mode 100644 index 0000000..0212b25 --- /dev/null +++ b/docs/ApiResourceAction.md @@ -0,0 +1,45 @@ + +# ApiResourceAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TypeEnum**](#TypeEnum) | | [optional] +**values** | **Object** | | [optional] + + + +## Enum: TypeEnum +Name | Value +---- | ----- +CREATE | "create" +LOGIN | "login" +APPROVE | "approve" +PURGE | "purge" +REVOKE | "revoke" +CANCEL | "cancel" +REVIEW | "review" +ASSIGN | "assign" +ENABLE | "enable" +DISABLE | "disable" +REPLACE | "replace" +DELEGATE | "delegate" +UPDATE_ISSUE_TAG | "update_issue_tag" +SET_ISSUE_SUPPRESSED | "set_issue_suppressed" +ASSIGN_ISSUE_TO_USER | "assign_issue_to_user" +AUDIT_ISSUE | "audit_issue" +SET_STATUS | "set_status" +FILE_BUG | "file_bug" +REFRESH | "refresh" +TEST | "test" +CHECK_PASSWORD_STRENGTH | "check_password_strength" +COPY_FROM_PARTIAL | "copy_from_partial" +COPY_CURRENT_STATE | "copy_current_state" +SEND_TO_AUDITASSISTANT | "send_to_auditassistant" +SEND_FOR_TRAINING | "send_for_training" +EXPORT_TO_CSV | "export_to_csv" +EXPORT_ISSUE_STATS_TO_CSV | "export_issue_stats_to_csv" +EXPORT_AUDIT_TO_CSV | "export_audit_to_csv" + + + diff --git a/docs/ApiResult.md b/docs/ApiResult.md new file mode 100644 index 0000000..00d64b8 --- /dev/null +++ b/docs/ApiResult.md @@ -0,0 +1,17 @@ + +# ApiResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | **Object** | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultAlertDefinitionDto.md b/docs/ApiResultAlertDefinitionDto.md new file mode 100644 index 0000000..2c17e9c --- /dev/null +++ b/docs/ApiResultAlertDefinitionDto.md @@ -0,0 +1,17 @@ + +# ApiResultAlertDefinitionDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**AlertDefinitionDto**](AlertDefinitionDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultApiActionResponse.md b/docs/ApiResultApiActionResponse.md new file mode 100644 index 0000000..3db0df6 --- /dev/null +++ b/docs/ApiResultApiActionResponse.md @@ -0,0 +1,17 @@ + +# ApiResultApiActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ApiActionResponse**](ApiActionResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultApplicationNameTestResponse.md b/docs/ApiResultApplicationNameTestResponse.md new file mode 100644 index 0000000..0160ef6 --- /dev/null +++ b/docs/ApiResultApplicationNameTestResponse.md @@ -0,0 +1,17 @@ + +# ApiResultApplicationNameTestResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ApplicationNameTestResponse**](ApplicationNameTestResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultApplicationState.md b/docs/ApiResultApplicationState.md new file mode 100644 index 0000000..4955d92 --- /dev/null +++ b/docs/ApiResultApplicationState.md @@ -0,0 +1,17 @@ + +# ApiResultApplicationState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ApplicationState**](ApplicationState.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultArraystring.md b/docs/ApiResultArraystring.md new file mode 100644 index 0000000..c2a8964 --- /dev/null +++ b/docs/ApiResultArraystring.md @@ -0,0 +1,17 @@ + +# ApiResultArraystring + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | **List<String>** | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultArtifact.md b/docs/ApiResultArtifact.md new file mode 100644 index 0000000..10c9c41 --- /dev/null +++ b/docs/ApiResultArtifact.md @@ -0,0 +1,17 @@ + +# ApiResultArtifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Artifact**](Artifact.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultAttribute.md b/docs/ApiResultAttribute.md new file mode 100644 index 0000000..09f02bb --- /dev/null +++ b/docs/ApiResultAttribute.md @@ -0,0 +1,17 @@ + +# ApiResultAttribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Attribute**](Attribute.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultAttributeDefinition.md b/docs/ApiResultAttributeDefinition.md new file mode 100644 index 0000000..e01962f --- /dev/null +++ b/docs/ApiResultAttributeDefinition.md @@ -0,0 +1,17 @@ + +# ApiResultAttributeDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**AttributeDefinition**](AttributeDefinition.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultAuthenticationEntity.md b/docs/ApiResultAuthenticationEntity.md new file mode 100644 index 0000000..7688532 --- /dev/null +++ b/docs/ApiResultAuthenticationEntity.md @@ -0,0 +1,17 @@ + +# ApiResultAuthenticationEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**AuthenticationEntity**](AuthenticationEntity.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultAuthenticationToken.md b/docs/ApiResultAuthenticationToken.md new file mode 100644 index 0000000..f26ef73 --- /dev/null +++ b/docs/ApiResultAuthenticationToken.md @@ -0,0 +1,17 @@ + +# ApiResultAuthenticationToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**AuthenticationToken**](AuthenticationToken.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultBugFilingRequirementsResponse.md b/docs/ApiResultBugFilingRequirementsResponse.md new file mode 100644 index 0000000..e5d1e69 --- /dev/null +++ b/docs/ApiResultBugFilingRequirementsResponse.md @@ -0,0 +1,17 @@ + +# ApiResultBugFilingRequirementsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**BugFilingRequirementsResponse**](BugFilingRequirementsResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultBugfieldTemplateGroupDto.md b/docs/ApiResultBugfieldTemplateGroupDto.md new file mode 100644 index 0000000..13e909b --- /dev/null +++ b/docs/ApiResultBugfieldTemplateGroupDto.md @@ -0,0 +1,17 @@ + +# ApiResultBugfieldTemplateGroupDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**BugfieldTemplateGroupDto**](BugfieldTemplateGroupDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudJob.md b/docs/ApiResultCloudJob.md new file mode 100644 index 0000000..09a0b79 --- /dev/null +++ b/docs/ApiResultCloudJob.md @@ -0,0 +1,17 @@ + +# ApiResultCloudJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudJob**](CloudJob.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudPool.md b/docs/ApiResultCloudPool.md new file mode 100644 index 0000000..7b9faaa --- /dev/null +++ b/docs/ApiResultCloudPool.md @@ -0,0 +1,17 @@ + +# ApiResultCloudPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudPool**](CloudPool.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudPoolMapping.md b/docs/ApiResultCloudPoolMapping.md new file mode 100644 index 0000000..98fab23 --- /dev/null +++ b/docs/ApiResultCloudPoolMapping.md @@ -0,0 +1,17 @@ + +# ApiResultCloudPoolMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudPoolMapping**](CloudPoolMapping.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudPoolProjectVersionActionResponse.md b/docs/ApiResultCloudPoolProjectVersionActionResponse.md new file mode 100644 index 0000000..302126a --- /dev/null +++ b/docs/ApiResultCloudPoolProjectVersionActionResponse.md @@ -0,0 +1,17 @@ + +# ApiResultCloudPoolProjectVersionActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudPoolProjectVersionActionResponse**](CloudPoolProjectVersionActionResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudPoolWorkerActionResponse.md b/docs/ApiResultCloudPoolWorkerActionResponse.md new file mode 100644 index 0000000..77dfee0 --- /dev/null +++ b/docs/ApiResultCloudPoolWorkerActionResponse.md @@ -0,0 +1,17 @@ + +# ApiResultCloudPoolWorkerActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudPoolWorkerActionResponse**](CloudPoolWorkerActionResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudSystemMetrics.md b/docs/ApiResultCloudSystemMetrics.md new file mode 100644 index 0000000..47e1ee8 --- /dev/null +++ b/docs/ApiResultCloudSystemMetrics.md @@ -0,0 +1,17 @@ + +# ApiResultCloudSystemMetrics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudSystemMetrics**](CloudSystemMetrics.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudSystemPollStatus.md b/docs/ApiResultCloudSystemPollStatus.md new file mode 100644 index 0000000..7172d98 --- /dev/null +++ b/docs/ApiResultCloudSystemPollStatus.md @@ -0,0 +1,17 @@ + +# ApiResultCloudSystemPollStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudSystemPollStatus**](CloudSystemPollStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudSystemSettings.md b/docs/ApiResultCloudSystemSettings.md new file mode 100644 index 0000000..25e9c3c --- /dev/null +++ b/docs/ApiResultCloudSystemSettings.md @@ -0,0 +1,17 @@ + +# ApiResultCloudSystemSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudSystemSettings**](CloudSystemSettings.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCloudWorker.md b/docs/ApiResultCloudWorker.md new file mode 100644 index 0000000..160f8df --- /dev/null +++ b/docs/ApiResultCloudWorker.md @@ -0,0 +1,17 @@ + +# ApiResultCloudWorker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CloudWorker**](CloudWorker.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultConfigProperties.md b/docs/ApiResultConfigProperties.md new file mode 100644 index 0000000..041e96e --- /dev/null +++ b/docs/ApiResultConfigProperties.md @@ -0,0 +1,17 @@ + +# ApiResultConfigProperties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ConfigProperties**](ConfigProperties.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultConfigProperty.md b/docs/ApiResultConfigProperty.md new file mode 100644 index 0000000..5b133c6 --- /dev/null +++ b/docs/ApiResultConfigProperty.md @@ -0,0 +1,17 @@ + +# ApiResultConfigProperty + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ConfigProperty**](ConfigProperty.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultCustomTag.md b/docs/ApiResultCustomTag.md new file mode 100644 index 0000000..df1729f --- /dev/null +++ b/docs/ApiResultCustomTag.md @@ -0,0 +1,17 @@ + +# ApiResultCustomTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**CustomTag**](CustomTag.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultDynamicScanRequest.md b/docs/ApiResultDynamicScanRequest.md new file mode 100644 index 0000000..2b2fd1a --- /dev/null +++ b/docs/ApiResultDynamicScanRequest.md @@ -0,0 +1,17 @@ + +# ApiResultDynamicScanRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**DynamicScanRequest**](DynamicScanRequest.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultDynamicScanRequestTemplate.md b/docs/ApiResultDynamicScanRequestTemplate.md new file mode 100644 index 0000000..4fc1849 --- /dev/null +++ b/docs/ApiResultDynamicScanRequestTemplate.md @@ -0,0 +1,17 @@ + +# ApiResultDynamicScanRequestTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**DynamicScanRequestTemplate**](DynamicScanRequestTemplate.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultDynamicScanRequestsSummary.md b/docs/ApiResultDynamicScanRequestsSummary.md new file mode 100644 index 0000000..788bd70 --- /dev/null +++ b/docs/ApiResultDynamicScanRequestsSummary.md @@ -0,0 +1,17 @@ + +# ApiResultDynamicScanRequestsSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**DynamicScanRequestsSummary**](DynamicScanRequestsSummary.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultFeature.md b/docs/ApiResultFeature.md new file mode 100644 index 0000000..9c66605 --- /dev/null +++ b/docs/ApiResultFeature.md @@ -0,0 +1,17 @@ + +# ApiResultFeature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Feature**](Feature.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultFileToken.md b/docs/ApiResultFileToken.md new file mode 100644 index 0000000..30f09e5 --- /dev/null +++ b/docs/ApiResultFileToken.md @@ -0,0 +1,17 @@ + +# ApiResultFileToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**FileToken**](FileToken.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultFolder.md b/docs/ApiResultFolder.md new file mode 100644 index 0000000..d1f5f64 --- /dev/null +++ b/docs/ApiResultFolder.md @@ -0,0 +1,17 @@ + +# ApiResultFolder + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Folder**](Folder.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIIDMigration.md b/docs/ApiResultIIDMigration.md new file mode 100644 index 0000000..e48d552 --- /dev/null +++ b/docs/ApiResultIIDMigration.md @@ -0,0 +1,17 @@ + +# ApiResultIIDMigration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IIDMigration**](IIDMigration.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueActionResponse.md b/docs/ApiResultIssueActionResponse.md new file mode 100644 index 0000000..0ec2703 --- /dev/null +++ b/docs/ApiResultIssueActionResponse.md @@ -0,0 +1,17 @@ + +# ApiResultIssueActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueActionResponse**](IssueActionResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueAgingPortlet.md b/docs/ApiResultIssueAgingPortlet.md new file mode 100644 index 0000000..65541ff --- /dev/null +++ b/docs/ApiResultIssueAgingPortlet.md @@ -0,0 +1,17 @@ + +# ApiResultIssueAgingPortlet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueAgingPortlet**](IssueAgingPortlet.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueAssignment.md b/docs/ApiResultIssueAssignment.md new file mode 100644 index 0000000..6c99a66 --- /dev/null +++ b/docs/ApiResultIssueAssignment.md @@ -0,0 +1,17 @@ + +# ApiResultIssueAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueAssignment**](IssueAssignment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueAttachment.md b/docs/ApiResultIssueAttachment.md new file mode 100644 index 0000000..abc70b6 --- /dev/null +++ b/docs/ApiResultIssueAttachment.md @@ -0,0 +1,17 @@ + +# ApiResultIssueAttachment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueAttachment**](IssueAttachment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueAuditComment.md b/docs/ApiResultIssueAuditComment.md new file mode 100644 index 0000000..eb1719e --- /dev/null +++ b/docs/ApiResultIssueAuditComment.md @@ -0,0 +1,17 @@ + +# ApiResultIssueAuditComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueAuditComment**](IssueAuditComment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueFileBugResponse.md b/docs/ApiResultIssueFileBugResponse.md new file mode 100644 index 0000000..72a0b7e --- /dev/null +++ b/docs/ApiResultIssueFileBugResponse.md @@ -0,0 +1,17 @@ + +# ApiResultIssueFileBugResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueFileBugResponse**](IssueFileBugResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueFilterSelectorSet.md b/docs/ApiResultIssueFilterSelectorSet.md new file mode 100644 index 0000000..0158ba2 --- /dev/null +++ b/docs/ApiResultIssueFilterSelectorSet.md @@ -0,0 +1,17 @@ + +# ApiResultIssueFilterSelectorSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueFilterSelectorSet**](IssueFilterSelectorSet.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueSearchOption.md b/docs/ApiResultIssueSearchOption.md new file mode 100644 index 0000000..eb3d7aa --- /dev/null +++ b/docs/ApiResultIssueSearchOption.md @@ -0,0 +1,17 @@ + +# ApiResultIssueSearchOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueSearchOption**](IssueSearchOption.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueTemplate.md b/docs/ApiResultIssueTemplate.md new file mode 100644 index 0000000..294edc8 --- /dev/null +++ b/docs/ApiResultIssueTemplate.md @@ -0,0 +1,17 @@ + +# ApiResultIssueTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueTemplate**](IssueTemplate.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultIssueViewTemplate.md b/docs/ApiResultIssueViewTemplate.md new file mode 100644 index 0000000..f82a2b3 --- /dev/null +++ b/docs/ApiResultIssueViewTemplate.md @@ -0,0 +1,17 @@ + +# ApiResultIssueViewTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**IssueViewTemplate**](IssueViewTemplate.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultJob.md b/docs/ApiResultJob.md new file mode 100644 index 0000000..104c6af --- /dev/null +++ b/docs/ApiResultJob.md @@ -0,0 +1,17 @@ + +# ApiResultJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Job**](Job.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultLDAPEntity.md b/docs/ApiResultLDAPEntity.md new file mode 100644 index 0000000..ef81fd3 --- /dev/null +++ b/docs/ApiResultLDAPEntity.md @@ -0,0 +1,17 @@ + +# ApiResultLDAPEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**LDAPEntity**](LDAPEntity.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultLdapRefreshResponse.md b/docs/ApiResultLdapRefreshResponse.md new file mode 100644 index 0000000..3dfd65e --- /dev/null +++ b/docs/ApiResultLdapRefreshResponse.md @@ -0,0 +1,17 @@ + +# ApiResultLdapRefreshResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**LdapRefreshResponse**](LdapRefreshResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultLdapServerDto.md b/docs/ApiResultLdapServerDto.md new file mode 100644 index 0000000..4948914 --- /dev/null +++ b/docs/ApiResultLdapServerDto.md @@ -0,0 +1,17 @@ + +# ApiResultLdapServerDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**LdapServerDto**](LdapServerDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultLicense.md b/docs/ApiResultLicense.md new file mode 100644 index 0000000..deb7906 --- /dev/null +++ b/docs/ApiResultLicense.md @@ -0,0 +1,17 @@ + +# ApiResultLicense + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**License**](License.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAATrainingStatus.md b/docs/ApiResultListAATrainingStatus.md new file mode 100644 index 0000000..678691d --- /dev/null +++ b/docs/ApiResultListAATrainingStatus.md @@ -0,0 +1,17 @@ + +# ApiResultListAATrainingStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AATrainingStatus>**](AATrainingStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListActivityFeed.md b/docs/ApiResultListActivityFeed.md new file mode 100644 index 0000000..c58b261 --- /dev/null +++ b/docs/ApiResultListActivityFeed.md @@ -0,0 +1,17 @@ + +# ApiResultListActivityFeed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ActivityFeed>**](ActivityFeed.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAlertDefinitionDto.md b/docs/ApiResultListAlertDefinitionDto.md new file mode 100644 index 0000000..b80db2b --- /dev/null +++ b/docs/ApiResultListAlertDefinitionDto.md @@ -0,0 +1,17 @@ + +# ApiResultListAlertDefinitionDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AlertDefinitionDto>**](AlertDefinitionDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAlertHistoryEntry.md b/docs/ApiResultListAlertHistoryEntry.md new file mode 100644 index 0000000..c155f1c --- /dev/null +++ b/docs/ApiResultListAlertHistoryEntry.md @@ -0,0 +1,17 @@ + +# ApiResultListAlertHistoryEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AlertHistoryEntry>**](AlertHistoryEntry.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAlertableEventType.md b/docs/ApiResultListAlertableEventType.md new file mode 100644 index 0000000..02dc4c3 --- /dev/null +++ b/docs/ApiResultListAlertableEventType.md @@ -0,0 +1,17 @@ + +# ApiResultListAlertableEventType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AlertableEventType>**](AlertableEventType.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListArtifact.md b/docs/ApiResultListArtifact.md new file mode 100644 index 0000000..2bacbda --- /dev/null +++ b/docs/ApiResultListArtifact.md @@ -0,0 +1,17 @@ + +# ApiResultListArtifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Artifact>**](Artifact.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAttribute.md b/docs/ApiResultListAttribute.md new file mode 100644 index 0000000..9bb69dc --- /dev/null +++ b/docs/ApiResultListAttribute.md @@ -0,0 +1,17 @@ + +# ApiResultListAttribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Attribute>**](Attribute.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAttributeDefinition.md b/docs/ApiResultListAttributeDefinition.md new file mode 100644 index 0000000..1679f27 --- /dev/null +++ b/docs/ApiResultListAttributeDefinition.md @@ -0,0 +1,17 @@ + +# ApiResultListAttributeDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AttributeDefinition>**](AttributeDefinition.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAuditAssistantStatus.md b/docs/ApiResultListAuditAssistantStatus.md new file mode 100644 index 0000000..265099c --- /dev/null +++ b/docs/ApiResultListAuditAssistantStatus.md @@ -0,0 +1,17 @@ + +# ApiResultListAuditAssistantStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AuditAssistantStatus>**](AuditAssistantStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAuthenticationEntity.md b/docs/ApiResultListAuthenticationEntity.md new file mode 100644 index 0000000..064173b --- /dev/null +++ b/docs/ApiResultListAuthenticationEntity.md @@ -0,0 +1,17 @@ + +# ApiResultListAuthenticationEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AuthenticationEntity>**](AuthenticationEntity.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListAuthenticationToken.md b/docs/ApiResultListAuthenticationToken.md new file mode 100644 index 0000000..aa8ba14 --- /dev/null +++ b/docs/ApiResultListAuthenticationToken.md @@ -0,0 +1,17 @@ + +# ApiResultListAuthenticationToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<AuthenticationToken>**](AuthenticationToken.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListBugFilingRequirements.md b/docs/ApiResultListBugFilingRequirements.md new file mode 100644 index 0000000..0808fe0 --- /dev/null +++ b/docs/ApiResultListBugFilingRequirements.md @@ -0,0 +1,17 @@ + +# ApiResultListBugFilingRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<BugFilingRequirements>**](BugFilingRequirements.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListBugTracker.md b/docs/ApiResultListBugTracker.md new file mode 100644 index 0000000..387fedd --- /dev/null +++ b/docs/ApiResultListBugTracker.md @@ -0,0 +1,17 @@ + +# ApiResultListBugTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<BugTracker>**](BugTracker.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListBugfieldTemplateGroupDto.md b/docs/ApiResultListBugfieldTemplateGroupDto.md new file mode 100644 index 0000000..37acccc --- /dev/null +++ b/docs/ApiResultListBugfieldTemplateGroupDto.md @@ -0,0 +1,17 @@ + +# ApiResultListBugfieldTemplateGroupDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<BugfieldTemplateGroupDto>**](BugfieldTemplateGroupDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListBulkResponseItem.md b/docs/ApiResultListBulkResponseItem.md new file mode 100644 index 0000000..628cc06 --- /dev/null +++ b/docs/ApiResultListBulkResponseItem.md @@ -0,0 +1,17 @@ + +# ApiResultListBulkResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<BulkResponseItem>**](BulkResponseItem.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListCloudJob.md b/docs/ApiResultListCloudJob.md new file mode 100644 index 0000000..f2579b8 --- /dev/null +++ b/docs/ApiResultListCloudJob.md @@ -0,0 +1,17 @@ + +# ApiResultListCloudJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<CloudJob>**](CloudJob.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListCloudPool.md b/docs/ApiResultListCloudPool.md new file mode 100644 index 0000000..45c7588 --- /dev/null +++ b/docs/ApiResultListCloudPool.md @@ -0,0 +1,17 @@ + +# ApiResultListCloudPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<CloudPool>**](CloudPool.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListCloudPoolMapping.md b/docs/ApiResultListCloudPoolMapping.md new file mode 100644 index 0000000..22bc089 --- /dev/null +++ b/docs/ApiResultListCloudPoolMapping.md @@ -0,0 +1,17 @@ + +# ApiResultListCloudPoolMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<CloudPoolMapping>**](CloudPoolMapping.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListCloudWorker.md b/docs/ApiResultListCloudWorker.md new file mode 100644 index 0000000..fe83e0b --- /dev/null +++ b/docs/ApiResultListCloudWorker.md @@ -0,0 +1,17 @@ + +# ApiResultListCloudWorker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<CloudWorker>**](CloudWorker.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListCustomTag.md b/docs/ApiResultListCustomTag.md new file mode 100644 index 0000000..cdde7f2 --- /dev/null +++ b/docs/ApiResultListCustomTag.md @@ -0,0 +1,17 @@ + +# ApiResultListCustomTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<CustomTag>**](CustomTag.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListDashboardVersion.md b/docs/ApiResultListDashboardVersion.md new file mode 100644 index 0000000..f71f607 --- /dev/null +++ b/docs/ApiResultListDashboardVersion.md @@ -0,0 +1,17 @@ + +# ApiResultListDashboardVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<DashboardVersion>**](DashboardVersion.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListDataExport.md b/docs/ApiResultListDataExport.md new file mode 100644 index 0000000..9f4ff76 --- /dev/null +++ b/docs/ApiResultListDataExport.md @@ -0,0 +1,17 @@ + +# ApiResultListDataExport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<DataExport>**](DataExport.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListDynamicScanRequest.md b/docs/ApiResultListDynamicScanRequest.md new file mode 100644 index 0000000..bf4a03d --- /dev/null +++ b/docs/ApiResultListDynamicScanRequest.md @@ -0,0 +1,17 @@ + +# ApiResultListDynamicScanRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<DynamicScanRequest>**](DynamicScanRequest.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListEngineType.md b/docs/ApiResultListEngineType.md new file mode 100644 index 0000000..3ef074f --- /dev/null +++ b/docs/ApiResultListEngineType.md @@ -0,0 +1,17 @@ + +# ApiResultListEngineType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<EngineType>**](EngineType.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListEventLog.md b/docs/ApiResultListEventLog.md new file mode 100644 index 0000000..741381f --- /dev/null +++ b/docs/ApiResultListEventLog.md @@ -0,0 +1,17 @@ + +# ApiResultListEventLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<EventLog>**](EventLog.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListFeature.md b/docs/ApiResultListFeature.md new file mode 100644 index 0000000..d84e141 --- /dev/null +++ b/docs/ApiResultListFeature.md @@ -0,0 +1,17 @@ + +# ApiResultListFeature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Feature>**](Feature.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListFilterSet.md b/docs/ApiResultListFilterSet.md new file mode 100644 index 0000000..b9bbe62 --- /dev/null +++ b/docs/ApiResultListFilterSet.md @@ -0,0 +1,17 @@ + +# ApiResultListFilterSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<FilterSet>**](FilterSet.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListFolder.md b/docs/ApiResultListFolder.md new file mode 100644 index 0000000..e2b297d --- /dev/null +++ b/docs/ApiResultListFolder.md @@ -0,0 +1,17 @@ + +# ApiResultListFolder + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Folder>**](Folder.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIIDMigration.md b/docs/ApiResultListIIDMigration.md new file mode 100644 index 0000000..ea28493 --- /dev/null +++ b/docs/ApiResultListIIDMigration.md @@ -0,0 +1,17 @@ + +# ApiResultListIIDMigration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IIDMigration>**](IIDMigration.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAgingDto.md b/docs/ApiResultListIssueAgingDto.md new file mode 100644 index 0000000..5fc45de --- /dev/null +++ b/docs/ApiResultListIssueAgingDto.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAgingDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAgingDto>**](IssueAgingDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAgingGroupDto.md b/docs/ApiResultListIssueAgingGroupDto.md new file mode 100644 index 0000000..80e3714 --- /dev/null +++ b/docs/ApiResultListIssueAgingGroupDto.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAgingGroupDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAgingGroupDto>**](IssueAgingGroupDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAssignment.md b/docs/ApiResultListIssueAssignment.md new file mode 100644 index 0000000..3e2bf11 --- /dev/null +++ b/docs/ApiResultListIssueAssignment.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAssignment>**](IssueAssignment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAttachment.md b/docs/ApiResultListIssueAttachment.md new file mode 100644 index 0000000..c2f86cd --- /dev/null +++ b/docs/ApiResultListIssueAttachment.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAttachment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAttachment>**](IssueAttachment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAuditComment.md b/docs/ApiResultListIssueAuditComment.md new file mode 100644 index 0000000..ea127d5 --- /dev/null +++ b/docs/ApiResultListIssueAuditComment.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAuditComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAuditComment>**](IssueAuditComment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueAuditHistoryDto.md b/docs/ApiResultListIssueAuditHistoryDto.md new file mode 100644 index 0000000..3230393 --- /dev/null +++ b/docs/ApiResultListIssueAuditHistoryDto.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueAuditHistoryDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueAuditHistoryDto>**](IssueAuditHistoryDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueSearchOption.md b/docs/ApiResultListIssueSearchOption.md new file mode 100644 index 0000000..40d9893 --- /dev/null +++ b/docs/ApiResultListIssueSearchOption.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueSearchOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueSearchOption>**](IssueSearchOption.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueStatistics.md b/docs/ApiResultListIssueStatistics.md new file mode 100644 index 0000000..8c1a90b --- /dev/null +++ b/docs/ApiResultListIssueStatistics.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueStatistics>**](IssueStatistics.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueSummary.md b/docs/ApiResultListIssueSummary.md new file mode 100644 index 0000000..7176ee9 --- /dev/null +++ b/docs/ApiResultListIssueSummary.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueSummary>**](IssueSummary.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueTemplate.md b/docs/ApiResultListIssueTemplate.md new file mode 100644 index 0000000..df16d61 --- /dev/null +++ b/docs/ApiResultListIssueTemplate.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueTemplate>**](IssueTemplate.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListIssueViewTemplate.md b/docs/ApiResultListIssueViewTemplate.md new file mode 100644 index 0000000..0282dfb --- /dev/null +++ b/docs/ApiResultListIssueViewTemplate.md @@ -0,0 +1,17 @@ + +# ApiResultListIssueViewTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<IssueViewTemplate>**](IssueViewTemplate.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListJob.md b/docs/ApiResultListJob.md new file mode 100644 index 0000000..704d9af --- /dev/null +++ b/docs/ApiResultListJob.md @@ -0,0 +1,17 @@ + +# ApiResultListJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Job>**](Job.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListJobPriorityChangeCategoryWarning.md b/docs/ApiResultListJobPriorityChangeCategoryWarning.md new file mode 100644 index 0000000..e6dc57b --- /dev/null +++ b/docs/ApiResultListJobPriorityChangeCategoryWarning.md @@ -0,0 +1,17 @@ + +# ApiResultListJobPriorityChangeCategoryWarning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<JobPriorityChangeCategoryWarning>**](JobPriorityChangeCategoryWarning.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListLDAPEntity.md b/docs/ApiResultListLDAPEntity.md new file mode 100644 index 0000000..b3cfccd --- /dev/null +++ b/docs/ApiResultListLDAPEntity.md @@ -0,0 +1,17 @@ + +# ApiResultListLDAPEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<LDAPEntity>**](LDAPEntity.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListLdapServerDto.md b/docs/ApiResultListLdapServerDto.md new file mode 100644 index 0000000..bc3b109 --- /dev/null +++ b/docs/ApiResultListLdapServerDto.md @@ -0,0 +1,17 @@ + +# ApiResultListLdapServerDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<LdapServerDto>**](LdapServerDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListLocalUser.md b/docs/ApiResultListLocalUser.md new file mode 100644 index 0000000..aa4053f --- /dev/null +++ b/docs/ApiResultListLocalUser.md @@ -0,0 +1,17 @@ + +# ApiResultListLocalUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<LocalUser>**](LocalUser.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListPerformanceIndicator.md b/docs/ApiResultListPerformanceIndicator.md new file mode 100644 index 0000000..63090bd --- /dev/null +++ b/docs/ApiResultListPerformanceIndicator.md @@ -0,0 +1,17 @@ + +# ApiResultListPerformanceIndicator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<PerformanceIndicator>**](PerformanceIndicator.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListPerformanceIndicatorHistory.md b/docs/ApiResultListPerformanceIndicatorHistory.md new file mode 100644 index 0000000..d76ce09 --- /dev/null +++ b/docs/ApiResultListPerformanceIndicatorHistory.md @@ -0,0 +1,17 @@ + +# ApiResultListPerformanceIndicatorHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<PerformanceIndicatorHistory>**](PerformanceIndicatorHistory.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListPermission.md b/docs/ApiResultListPermission.md new file mode 100644 index 0000000..e4cff52 --- /dev/null +++ b/docs/ApiResultListPermission.md @@ -0,0 +1,17 @@ + +# ApiResultListPermission + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Permission>**](Permission.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListPersona.md b/docs/ApiResultListPersona.md new file mode 100644 index 0000000..59bdbb7 --- /dev/null +++ b/docs/ApiResultListPersona.md @@ -0,0 +1,17 @@ + +# ApiResultListPersona + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Persona>**](Persona.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListPluginMetaData.md b/docs/ApiResultListPluginMetaData.md new file mode 100644 index 0000000..3b9fb8d --- /dev/null +++ b/docs/ApiResultListPluginMetaData.md @@ -0,0 +1,17 @@ + +# ApiResultListPluginMetaData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<PluginMetaData>**](PluginMetaData.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProject.md b/docs/ApiResultListProject.md new file mode 100644 index 0000000..cddb80f --- /dev/null +++ b/docs/ApiResultListProject.md @@ -0,0 +1,17 @@ + +# ApiResultListProject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Project>**](Project.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProjectVersion.md b/docs/ApiResultListProjectVersion.md new file mode 100644 index 0000000..e9a71ea --- /dev/null +++ b/docs/ApiResultListProjectVersion.md @@ -0,0 +1,17 @@ + +# ApiResultListProjectVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ProjectVersion>**](ProjectVersion.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProjectVersionBugTracker.md b/docs/ApiResultListProjectVersionBugTracker.md new file mode 100644 index 0000000..ff324b0 --- /dev/null +++ b/docs/ApiResultListProjectVersionBugTracker.md @@ -0,0 +1,17 @@ + +# ApiResultListProjectVersionBugTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ProjectVersionBugTracker>**](ProjectVersionBugTracker.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProjectVersionIssue.md b/docs/ApiResultListProjectVersionIssue.md new file mode 100644 index 0000000..0360d15 --- /dev/null +++ b/docs/ApiResultListProjectVersionIssue.md @@ -0,0 +1,17 @@ + +# ApiResultListProjectVersionIssue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ProjectVersionIssue>**](ProjectVersionIssue.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProjectVersionIssueDetails.md b/docs/ApiResultListProjectVersionIssueDetails.md new file mode 100644 index 0000000..ffff681 --- /dev/null +++ b/docs/ApiResultListProjectVersionIssueDetails.md @@ -0,0 +1,17 @@ + +# ApiResultListProjectVersionIssueDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ProjectVersionIssueDetails>**](ProjectVersionIssueDetails.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListProjectVersionIssueGroup.md b/docs/ApiResultListProjectVersionIssueGroup.md new file mode 100644 index 0000000..19d7412 --- /dev/null +++ b/docs/ApiResultListProjectVersionIssueGroup.md @@ -0,0 +1,17 @@ + +# ApiResultListProjectVersionIssueGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ProjectVersionIssueGroup>**](ProjectVersionIssueGroup.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListReportDefinition.md b/docs/ApiResultListReportDefinition.md new file mode 100644 index 0000000..63efe27 --- /dev/null +++ b/docs/ApiResultListReportDefinition.md @@ -0,0 +1,17 @@ + +# ApiResultListReportDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ReportDefinition>**](ReportDefinition.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListReportLibrary.md b/docs/ApiResultListReportLibrary.md new file mode 100644 index 0000000..084d79c --- /dev/null +++ b/docs/ApiResultListReportLibrary.md @@ -0,0 +1,17 @@ + +# ApiResultListReportLibrary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ReportLibrary>**](ReportLibrary.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListResponsibilityAssignment.md b/docs/ApiResultListResponsibilityAssignment.md new file mode 100644 index 0000000..bd0f304 --- /dev/null +++ b/docs/ApiResultListResponsibilityAssignment.md @@ -0,0 +1,17 @@ + +# ApiResultListResponsibilityAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ResponsibilityAssignment>**](ResponsibilityAssignment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListResultProcessingRule.md b/docs/ApiResultListResultProcessingRule.md new file mode 100644 index 0000000..6ae7c63 --- /dev/null +++ b/docs/ApiResultListResultProcessingRule.md @@ -0,0 +1,17 @@ + +# ApiResultListResultProcessingRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ResultProcessingRule>**](ResultProcessingRule.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListRole.md b/docs/ApiResultListRole.md new file mode 100644 index 0000000..4c160ab --- /dev/null +++ b/docs/ApiResultListRole.md @@ -0,0 +1,17 @@ + +# ApiResultListRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Role>**](Role.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListRulepackCore.md b/docs/ApiResultListRulepackCore.md new file mode 100644 index 0000000..902bb2d --- /dev/null +++ b/docs/ApiResultListRulepackCore.md @@ -0,0 +1,17 @@ + +# ApiResultListRulepackCore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<RulepackCore>**](RulepackCore.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListRulepacksBatchProcessStatus.md b/docs/ApiResultListRulepacksBatchProcessStatus.md new file mode 100644 index 0000000..dd18a68 --- /dev/null +++ b/docs/ApiResultListRulepacksBatchProcessStatus.md @@ -0,0 +1,17 @@ + +# ApiResultListRulepacksBatchProcessStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<RulepacksBatchProcessStatus>**](RulepacksBatchProcessStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListSavedReport.md b/docs/ApiResultListSavedReport.md new file mode 100644 index 0000000..533be07 --- /dev/null +++ b/docs/ApiResultListSavedReport.md @@ -0,0 +1,17 @@ + +# ApiResultListSavedReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<SavedReport>**](SavedReport.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListScan.md b/docs/ApiResultListScan.md new file mode 100644 index 0000000..2abd6ea --- /dev/null +++ b/docs/ApiResultListScan.md @@ -0,0 +1,17 @@ + +# ApiResultListScan + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Scan>**](Scan.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListSourceFileDto.md b/docs/ApiResultListSourceFileDto.md new file mode 100644 index 0000000..c486ff3 --- /dev/null +++ b/docs/ApiResultListSourceFileDto.md @@ -0,0 +1,17 @@ + +# ApiResultListSourceFileDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<SourceFileDto>**](SourceFileDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListSystemConfiguration.md b/docs/ApiResultListSystemConfiguration.md new file mode 100644 index 0000000..471d675 --- /dev/null +++ b/docs/ApiResultListSystemConfiguration.md @@ -0,0 +1,17 @@ + +# ApiResultListSystemConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<SystemConfiguration>**](SystemConfiguration.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListTokenDefinition.md b/docs/ApiResultListTokenDefinition.md new file mode 100644 index 0000000..538fef4 --- /dev/null +++ b/docs/ApiResultListTokenDefinition.md @@ -0,0 +1,17 @@ + +# ApiResultListTokenDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<TokenDefinition>**](TokenDefinition.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListUserSessionState.md b/docs/ApiResultListUserSessionState.md new file mode 100644 index 0000000..0d9b1ea --- /dev/null +++ b/docs/ApiResultListUserSessionState.md @@ -0,0 +1,17 @@ + +# ApiResultListUserSessionState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<UserSessionState>**](UserSessionState.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListVariable.md b/docs/ApiResultListVariable.md new file mode 100644 index 0000000..392b3c9 --- /dev/null +++ b/docs/ApiResultListVariable.md @@ -0,0 +1,17 @@ + +# ApiResultListVariable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<Variable>**](Variable.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListVariableHistory.md b/docs/ApiResultListVariableHistory.md new file mode 100644 index 0000000..443ca1f --- /dev/null +++ b/docs/ApiResultListVariableHistory.md @@ -0,0 +1,17 @@ + +# ApiResultListVariableHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<VariableHistory>**](VariableHistory.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultListscanError.md b/docs/ApiResultListscanError.md new file mode 100644 index 0000000..84ae338 --- /dev/null +++ b/docs/ApiResultListscanError.md @@ -0,0 +1,17 @@ + +# ApiResultListscanError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**List<ScanError>**](ScanError.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultLocalUser.md b/docs/ApiResultLocalUser.md new file mode 100644 index 0000000..311c587 --- /dev/null +++ b/docs/ApiResultLocalUser.md @@ -0,0 +1,17 @@ + +# ApiResultLocalUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**LocalUser**](LocalUser.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPasswordStrengthCheckResponse.md b/docs/ApiResultPasswordStrengthCheckResponse.md new file mode 100644 index 0000000..1f9cd24 --- /dev/null +++ b/docs/ApiResultPasswordStrengthCheckResponse.md @@ -0,0 +1,17 @@ + +# ApiResultPasswordStrengthCheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**PasswordStrengthCheckResponse**](PasswordStrengthCheckResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPerformanceIndicator.md b/docs/ApiResultPerformanceIndicator.md new file mode 100644 index 0000000..295cdf1 --- /dev/null +++ b/docs/ApiResultPerformanceIndicator.md @@ -0,0 +1,17 @@ + +# ApiResultPerformanceIndicator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**PerformanceIndicator**](PerformanceIndicator.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPerformanceIndicatorHistory.md b/docs/ApiResultPerformanceIndicatorHistory.md new file mode 100644 index 0000000..dd94d86 --- /dev/null +++ b/docs/ApiResultPerformanceIndicatorHistory.md @@ -0,0 +1,17 @@ + +# ApiResultPerformanceIndicatorHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**PerformanceIndicatorHistory**](PerformanceIndicatorHistory.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPermission.md b/docs/ApiResultPermission.md new file mode 100644 index 0000000..521a4b2 --- /dev/null +++ b/docs/ApiResultPermission.md @@ -0,0 +1,17 @@ + +# ApiResultPermission + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Permission**](Permission.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPersona.md b/docs/ApiResultPersona.md new file mode 100644 index 0000000..02dac74 --- /dev/null +++ b/docs/ApiResultPersona.md @@ -0,0 +1,17 @@ + +# ApiResultPersona + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Persona**](Persona.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPluginLocalization.md b/docs/ApiResultPluginLocalization.md new file mode 100644 index 0000000..c6ffb93 --- /dev/null +++ b/docs/ApiResultPluginLocalization.md @@ -0,0 +1,17 @@ + +# ApiResultPluginLocalization + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | **Map<String, Object>** | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultPluginMetaData.md b/docs/ApiResultPluginMetaData.md new file mode 100644 index 0000000..920950b --- /dev/null +++ b/docs/ApiResultPluginMetaData.md @@ -0,0 +1,17 @@ + +# ApiResultPluginMetaData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**PluginMetaData**](PluginMetaData.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProject.md b/docs/ApiResultProject.md new file mode 100644 index 0000000..dd4f0a4 --- /dev/null +++ b/docs/ApiResultProject.md @@ -0,0 +1,17 @@ + +# ApiResultProject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Project**](Project.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProjectVersion.md b/docs/ApiResultProjectVersion.md new file mode 100644 index 0000000..c4e3fbc --- /dev/null +++ b/docs/ApiResultProjectVersion.md @@ -0,0 +1,17 @@ + +# ApiResultProjectVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ProjectVersion**](ProjectVersion.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProjectVersionIssue.md b/docs/ApiResultProjectVersionIssue.md new file mode 100644 index 0000000..1eff9b5 --- /dev/null +++ b/docs/ApiResultProjectVersionIssue.md @@ -0,0 +1,17 @@ + +# ApiResultProjectVersionIssue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ProjectVersionIssue**](ProjectVersionIssue.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProjectVersionIssueDetails.md b/docs/ApiResultProjectVersionIssueDetails.md new file mode 100644 index 0000000..604193f --- /dev/null +++ b/docs/ApiResultProjectVersionIssueDetails.md @@ -0,0 +1,17 @@ + +# ApiResultProjectVersionIssueDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ProjectVersionIssueDetails**](ProjectVersionIssueDetails.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProjectVersionRefreshResponse.md b/docs/ApiResultProjectVersionRefreshResponse.md new file mode 100644 index 0000000..50a2172 --- /dev/null +++ b/docs/ApiResultProjectVersionRefreshResponse.md @@ -0,0 +1,17 @@ + +# ApiResultProjectVersionRefreshResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ProjectVersionRefreshResponse**](ProjectVersionRefreshResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultProjectVersionTestResponse.md b/docs/ApiResultProjectVersionTestResponse.md new file mode 100644 index 0000000..a0c4849 --- /dev/null +++ b/docs/ApiResultProjectVersionTestResponse.md @@ -0,0 +1,17 @@ + +# ApiResultProjectVersionTestResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ProjectVersionTestResponse**](ProjectVersionTestResponse.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultReportDefinition.md b/docs/ApiResultReportDefinition.md new file mode 100644 index 0000000..2b42644 --- /dev/null +++ b/docs/ApiResultReportDefinition.md @@ -0,0 +1,17 @@ + +# ApiResultReportDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ReportDefinition**](ReportDefinition.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultReportLibrary.md b/docs/ApiResultReportLibrary.md new file mode 100644 index 0000000..776a7b3 --- /dev/null +++ b/docs/ApiResultReportLibrary.md @@ -0,0 +1,17 @@ + +# ApiResultReportLibrary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ReportLibrary**](ReportLibrary.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultResponsibilityAssignment.md b/docs/ApiResultResponsibilityAssignment.md new file mode 100644 index 0000000..83ee9e6 --- /dev/null +++ b/docs/ApiResultResponsibilityAssignment.md @@ -0,0 +1,17 @@ + +# ApiResultResponsibilityAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ResponsibilityAssignment**](ResponsibilityAssignment.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultRole.md b/docs/ApiResultRole.md new file mode 100644 index 0000000..a6ecd74 --- /dev/null +++ b/docs/ApiResultRole.md @@ -0,0 +1,17 @@ + +# ApiResultRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Role**](Role.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultSavedReport.md b/docs/ApiResultSavedReport.md new file mode 100644 index 0000000..e866e7c --- /dev/null +++ b/docs/ApiResultSavedReport.md @@ -0,0 +1,17 @@ + +# ApiResultSavedReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**SavedReport**](SavedReport.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultScan.md b/docs/ApiResultScan.md new file mode 100644 index 0000000..f3a881e --- /dev/null +++ b/docs/ApiResultScan.md @@ -0,0 +1,17 @@ + +# ApiResultScan + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Scan**](Scan.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultSearchIndexStatus.md b/docs/ApiResultSearchIndexStatus.md new file mode 100644 index 0000000..6af2863 --- /dev/null +++ b/docs/ApiResultSearchIndexStatus.md @@ -0,0 +1,17 @@ + +# ApiResultSearchIndexStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**SearchIndexStatus**](SearchIndexStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultSourceFileDto.md b/docs/ApiResultSourceFileDto.md new file mode 100644 index 0000000..0aca978 --- /dev/null +++ b/docs/ApiResultSourceFileDto.md @@ -0,0 +1,17 @@ + +# ApiResultSourceFileDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**SourceFileDto**](SourceFileDto.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultSystemConfiguration.md b/docs/ApiResultSystemConfiguration.md new file mode 100644 index 0000000..82619c8 --- /dev/null +++ b/docs/ApiResultSystemConfiguration.md @@ -0,0 +1,17 @@ + +# ApiResultSystemConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**SystemConfiguration**](SystemConfiguration.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultUserIssueSearchOptions.md b/docs/ApiResultUserIssueSearchOptions.md new file mode 100644 index 0000000..ddbadeb --- /dev/null +++ b/docs/ApiResultUserIssueSearchOptions.md @@ -0,0 +1,17 @@ + +# ApiResultUserIssueSearchOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**UserIssueSearchOptions**](UserIssueSearchOptions.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultUserPreferences.md b/docs/ApiResultUserPreferences.md new file mode 100644 index 0000000..2bd7010 --- /dev/null +++ b/docs/ApiResultUserPreferences.md @@ -0,0 +1,17 @@ + +# ApiResultUserPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**UserPreferences**](UserPreferences.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultUserSessionInformation.md b/docs/ApiResultUserSessionInformation.md new file mode 100644 index 0000000..61c96aa --- /dev/null +++ b/docs/ApiResultUserSessionInformation.md @@ -0,0 +1,17 @@ + +# ApiResultUserSessionInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**UserSessionInformation**](UserSessionInformation.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultValidationStatus.md b/docs/ApiResultValidationStatus.md new file mode 100644 index 0000000..471d9ce --- /dev/null +++ b/docs/ApiResultValidationStatus.md @@ -0,0 +1,17 @@ + +# ApiResultValidationStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**ValidationStatus**](ValidationStatus.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultVariable.md b/docs/ApiResultVariable.md new file mode 100644 index 0000000..f1a6f60 --- /dev/null +++ b/docs/ApiResultVariable.md @@ -0,0 +1,17 @@ + +# ApiResultVariable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**Variable**](Variable.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultVariableHistory.md b/docs/ApiResultVariableHistory.md new file mode 100644 index 0000000..6a897e6 --- /dev/null +++ b/docs/ApiResultVariableHistory.md @@ -0,0 +1,17 @@ + +# ApiResultVariableHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**data** | [**VariableHistory**](VariableHistory.md) | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApiResultVoid.md b/docs/ApiResultVoid.md new file mode 100644 index 0000000..3b7815c --- /dev/null +++ b/docs/ApiResultVoid.md @@ -0,0 +1,16 @@ + +# ApiResultVoid + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Long** | | [optional] +**errorCode** | **Integer** | | [optional] +**links** | **Object** | | [optional] +**message** | **String** | | [optional] +**responseCode** | **Integer** | | [optional] +**stackTrace** | **String** | | [optional] +**successCount** | **Long** | | [optional] + + + diff --git a/docs/ApplicationNameTestRequest.md b/docs/ApplicationNameTestRequest.md new file mode 100644 index 0000000..be2bb6c --- /dev/null +++ b/docs/ApplicationNameTestRequest.md @@ -0,0 +1,10 @@ + +# ApplicationNameTestRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applicationName** | **String** | application name to test | + + + diff --git a/docs/ApplicationNameTestResponse.md b/docs/ApplicationNameTestResponse.md new file mode 100644 index 0000000..7572138 --- /dev/null +++ b/docs/ApplicationNameTestResponse.md @@ -0,0 +1,10 @@ + +# ApplicationNameTestResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**found** | **Boolean** | If application founds | [optional] + + + diff --git a/docs/ApplicationState.md b/docs/ApplicationState.md new file mode 100644 index 0000000..f032a08 --- /dev/null +++ b/docs/ApplicationState.md @@ -0,0 +1,13 @@ + +# ApplicationState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoConfigurationMode** | **Boolean** | Indicates whether SSC application is in auto configuration mode | [optional] +**configVisitRequired** | **Boolean** | Indicates whether a config visit is needed | [optional] +**maintenanceMode** | **Boolean** | Indicates whether SSC application is in maintenance mode | [optional] +**restartRequired** | **Boolean** | Indicates whether a restart is needed | [optional] + + + diff --git a/docs/ApplicationStateControllerApi.md b/docs/ApplicationStateControllerApi.md new file mode 100644 index 0000000..7b39cdf --- /dev/null +++ b/docs/ApplicationStateControllerApi.md @@ -0,0 +1,112 @@ +# ApplicationStateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getApplicationState**](ApplicationStateControllerApi.md#getApplicationState) | **GET** /applicationState | get +[**putApplicationState**](ApplicationStateControllerApi.md#putApplicationState) | **PUT** /applicationState | put + + + +# **getApplicationState** +> ApiResultApplicationState getApplicationState() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ApplicationStateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ApplicationStateControllerApi apiInstance = new ApplicationStateControllerApi(); +try { + ApiResultApplicationState result = apiInstance.getApplicationState(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ApplicationStateControllerApi#getApplicationState"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultApplicationState**](ApiResultApplicationState.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putApplicationState** +> ApiResultApplicationState putApplicationState(applicationState) + +put + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ApplicationStateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ApplicationStateControllerApi apiInstance = new ApplicationStateControllerApi(); +ApplicationState applicationState = new ApplicationState(); // ApplicationState | applicationState +try { + ApiResultApplicationState result = apiInstance.putApplicationState(applicationState); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ApplicationStateControllerApi#putApplicationState"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationState** | [**ApplicationState**](ApplicationState.md)| applicationState | + +### Return type + +[**ApiResultApplicationState**](ApiResultApplicationState.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Artifact.md b/docs/Artifact.md new file mode 100644 index 0000000..65c7695 --- /dev/null +++ b/docs/Artifact.md @@ -0,0 +1,119 @@ + +# Artifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embed** | [**EmbeddedScans**](EmbeddedScans.md) | | [optional] +**allowApprove** | **Boolean** | | [optional] +**allowDelete** | **Boolean** | | [optional] +**allowPurge** | **Boolean** | | [optional] +**approvalComment** | **String** | | [optional] +**approvalDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**approvalUsername** | **String** | | [optional] +**artifactType** | [**ArtifactTypeEnum**](#ArtifactTypeEnum) | | [optional] +**auditUpdated** | **Boolean** | | [optional] +**fileName** | **String** | | [optional] +**fileSize** | **Long** | | [optional] +**fileURL** | **String** | | [optional] +**id** | **Long** | Artifact id | [optional] +**inModifyingStatus** | **Boolean** | | [optional] +**indexed** | **Boolean** | | [optional] +**lastScanDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**messageCount** | **Long** | | [optional] +**messages** | **String** | | [optional] +**originalFileName** | **String** | | [optional] +**otherStatus** | [**OtherStatusEnum**](#OtherStatusEnum) | | [optional] +**purged** | **Boolean** | | [optional] +**runtimeStatus** | [**RuntimeStatusEnum**](#RuntimeStatusEnum) | | [optional] +**scaStatus** | [**ScaStatusEnum**](#ScaStatusEnum) | | [optional] +**scanErrorsCount** | **Long** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**uploadDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**uploadIP** | **String** | | [optional] +**userName** | **String** | | [optional] +**versionNumber** | **Integer** | | [optional] +**webInspectStatus** | [**WebInspectStatusEnum**](#WebInspectStatusEnum) | | [optional] + + + +## Enum: ArtifactTypeEnum +Name | Value +---- | ----- +EMPTY | "" +FPR | "Fpr" +FPRPREPROCESS | "FprPreProcess" +ANALYSISARTIFACT | "AnalysisArtifact" +SOURCEARCHIVE | "SourceArchive" +RUNTIMEEVENTLOG | "RuntimeEventLog" + + + +## Enum: OtherStatusEnum +Name | Value +---- | ----- +EMPTY | "" +NOTEXIST | "NotExist" +IGNORED | "Ignored" +PROCESSED | "Processed" + + + +## Enum: RuntimeStatusEnum +Name | Value +---- | ----- +EMPTY | "" +NOTEXIST | "NotExist" +IGNORED | "Ignored" +PROCESSED | "Processed" + + + +## Enum: ScaStatusEnum +Name | Value +---- | ----- +EMPTY | "" +NOTEXIST | "NotExist" +IGNORED | "Ignored" +PROCESSED | "Processed" + + + +## Enum: StatusEnum +Name | Value +---- | ----- +NONE | "NONE" +SCHED_PROCESSING | "SCHED_PROCESSING" +PROCESSING | "PROCESSING" +PROCESS_COMPLETE | "PROCESS_COMPLETE" +ERROR_PROCESSING | "ERROR_PROCESSING" +REQUIRE_AUTH | "REQUIRE_AUTH" +DELETING | "DELETING" +ERROR_DELETING | "ERROR_DELETING" +DELETED | "DELETED" +PURGING | "PURGING" +PURGED | "PURGED" +ERROR_PURGING | "ERROR_PURGING" +DISPATCH_ANALYSIS | "DISPATCH_ANALYSIS" +DISPATCH_REAUDIT | "DISPATCH_REAUDIT" +ERROR_DISPATCH | "ERROR_DISPATCH" +QUEUED_ANALYSIS | "QUEUED_ANALYSIS" +REQUEUED_ANALYSIS | "REQUEUED_ANALYSIS" +ANALYZING | "ANALYZING" +ANALYSIS_COMPLETE | "ANALYSIS_COMPLETE" +ERROR_ANALYZING | "ERROR_ANALYZING" +UNKNOWN | "UNKNOWN" +AUDIT_FAILED | "AUDIT_FAILED" + + + +## Enum: WebInspectStatusEnum +Name | Value +---- | ----- +EMPTY | "" +NOTEXIST | "NotExist" +IGNORED | "Ignored" +PROCESSED | "Processed" + + + diff --git a/docs/ArtifactApproveRequest.md b/docs/ArtifactApproveRequest.md new file mode 100644 index 0000000..179c14a --- /dev/null +++ b/docs/ArtifactApproveRequest.md @@ -0,0 +1,11 @@ + +# ArtifactApproveRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifactIds** | **List<Long>** | List containing single artifact ID to approve | +**comment** | **String** | Approval comments | + + + diff --git a/docs/ArtifactControllerApi.md b/docs/ArtifactControllerApi.md new file mode 100644 index 0000000..b76f9b1 --- /dev/null +++ b/docs/ArtifactControllerApi.md @@ -0,0 +1,284 @@ +# ArtifactControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**approveArtifact**](ArtifactControllerApi.md#approveArtifact) | **POST** /artifacts/action/approve | approve +[**deleteArtifact**](ArtifactControllerApi.md#deleteArtifact) | **DELETE** /artifacts/{id} | delete +[**doActionArtifact**](ArtifactControllerApi.md#doActionArtifact) | **POST** /artifacts/{id}/action | doAction +[**purgeArtifact**](ArtifactControllerApi.md#purgeArtifact) | **POST** /artifacts/action/purge | purge +[**readArtifact**](ArtifactControllerApi.md#readArtifact) | **GET** /artifacts/{id} | read + + + +# **approveArtifact** +> ApiResultVoid approveArtifact(resource) + +approve + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactControllerApi apiInstance = new ArtifactControllerApi(); +ArtifactApproveRequest resource = new ArtifactApproveRequest(); // ArtifactApproveRequest | resource +try { + ApiResultVoid result = apiInstance.approveArtifact(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactControllerApi#approveArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ArtifactApproveRequest**](ArtifactApproveRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteArtifact** +> ApiResultVoid deleteArtifact(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactControllerApi apiInstance = new ArtifactControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteArtifact(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactControllerApi#deleteArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionArtifact** +> ApiResultApiActionResponse doActionArtifact(id, resourceAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactControllerApi apiInstance = new ArtifactControllerApi(); +Long id = 789L; // Long | id +ApiResourceAction resourceAction = new ApiResourceAction(); // ApiResourceAction | resourceAction +try { + ApiResultApiActionResponse result = apiInstance.doActionArtifact(id, resourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactControllerApi#doActionArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resourceAction** | [**ApiResourceAction**](ApiResourceAction.md)| resourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **purgeArtifact** +> ApiResultVoid purgeArtifact(resource) + +purge + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactControllerApi apiInstance = new ArtifactControllerApi(); +ArtifactPurgeRequest resource = new ArtifactPurgeRequest(); // ArtifactPurgeRequest | resource +try { + ApiResultVoid result = apiInstance.purgeArtifact(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactControllerApi#purgeArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ArtifactPurgeRequest**](ArtifactPurgeRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readArtifact** +> ApiResultArtifact readArtifact(id, fields, embed) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactControllerApi apiInstance = new ArtifactControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultArtifact result = apiInstance.readArtifact(id, fields, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactControllerApi#readArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultArtifact**](ApiResultArtifact.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ArtifactOfProjectVersionControllerApi.md b/docs/ArtifactOfProjectVersionControllerApi.md new file mode 100644 index 0000000..cffe7d4 --- /dev/null +++ b/docs/ArtifactOfProjectVersionControllerApi.md @@ -0,0 +1,130 @@ +# ArtifactOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listArtifactOfProjectVersion**](ArtifactOfProjectVersionControllerApi.md#listArtifactOfProjectVersion) | **GET** /projectVersions/{parentId}/artifacts | list +[**uploadArtifactOfProjectVersion**](ArtifactOfProjectVersionControllerApi.md#uploadArtifactOfProjectVersion) | **POST** /projectVersions/{parentId}/artifacts | upload + + + +# **listArtifactOfProjectVersion** +> ApiResultListArtifact listArtifactOfProjectVersion(parentId, fields, start, limit, q, embed) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactOfProjectVersionControllerApi apiInstance = new ArtifactOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultListArtifact result = apiInstance.listArtifactOfProjectVersion(parentId, fields, start, limit, q, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactOfProjectVersionControllerApi#listArtifactOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultListArtifact**](ApiResultListArtifact.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **uploadArtifactOfProjectVersion** +> ApiResultArtifact uploadArtifactOfProjectVersion(parentId, file, engineType) + +upload + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ArtifactOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ArtifactOfProjectVersionControllerApi apiInstance = new ArtifactOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +File file = new File("/path/to/file.txt"); // File | file +String engineType = "engineType_example"; // String | engineType +try { + ApiResultArtifact result = apiInstance.uploadArtifactOfProjectVersion(parentId, file, engineType); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ArtifactOfProjectVersionControllerApi#uploadArtifactOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **file** | **File**| file | + **engineType** | **String**| engineType | [optional] + +### Return type + +[**ApiResultArtifact**](ApiResultArtifact.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + diff --git a/docs/ArtifactPurgeRequest.md b/docs/ArtifactPurgeRequest.md new file mode 100644 index 0000000..6672d96 --- /dev/null +++ b/docs/ArtifactPurgeRequest.md @@ -0,0 +1,10 @@ + +# ArtifactPurgeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifactIds** | **List<Long>** | List containing single artifact ID to purge | + + + diff --git a/docs/AssignedUser.md b/docs/AssignedUser.md new file mode 100644 index 0000000..113dec3 --- /dev/null +++ b/docs/AssignedUser.md @@ -0,0 +1,11 @@ + +# AssignedUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasAccess** | **Boolean** | whether the assigned user currently has access to the project version in current context | +**userName** | **String** | username assigned to issue | + + + diff --git a/docs/Attribute.md b/docs/Attribute.md new file mode 100644 index 0000000..41c207f --- /dev/null +++ b/docs/Attribute.md @@ -0,0 +1,13 @@ + +# Attribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributeDefinitionId** | **Long** | ID required when referencing an existing Attribute Definition. | +**id** | **Long** | ID required when referencing an existing Attribute. | [optional] +**value** | **String** | Attribute value - should be set if Attribute Definition type is NUMBER/STRING/BOOLEAN/DATE/FILE | +**values** | [**List<AttributeOption>**](AttributeOption.md) | Attribute Options associated with Attribute Definition with type=SINGLE/MULTIPLE | + + + diff --git a/docs/AttributeDefinition.md b/docs/AttributeDefinition.md new file mode 100644 index 0000000..f3c7732 --- /dev/null +++ b/docs/AttributeDefinition.md @@ -0,0 +1,69 @@ + +# AttributeDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**appEntityType** | [**AppEntityTypeEnum**](#AppEntityTypeEnum) | Application Entity Type | +**category** | [**CategoryEnum**](#CategoryEnum) | Attribute Definition Category | +**description** | **String** | | [optional] +**guid** | **String** | Unique string identifier for this Attribute Definition | +**hasDefault** | **Boolean** | Set to true if this Attribute Definition should be the default | +**hidden** | **Boolean** | Set to true if this Attribute Definition is hidden | [optional] +**id** | **Long** | ID required when referencing an existing Attribute Definition | [optional] +**name** | **String** | | +**objectVersion** | **Integer** | | [optional] +**options** | [**List<AttributeOption>**](AttributeOption.md) | List of options (i.e. values) associated with this Attribute Definition | [optional] +**publishVersion** | **Integer** | | [optional] +**required** | **Boolean** | Set to true if this Attribute Definition is required | +**sequenceNumber** | **Long** | | [optional] +**systemUsage** | [**SystemUsageEnum**](#SystemUsageEnum) | System Usage Type | +**type** | [**TypeEnum**](#TypeEnum) | Attribute Definition Type | + + + +## Enum: AppEntityTypeEnum +Name | Value +---- | ----- +PROJECT_VERSION | "PROJECT_VERSION" +RUNTIME_APP | "RUNTIME_APP" +NONE | "NONE" +ALL | "ALL" + + + +## Enum: CategoryEnum +Name | Value +---- | ----- +TECHNICAL | "TECHNICAL" +BUSINESS | "BUSINESS" +DYNAMIC_SCAN_REQUEST | "DYNAMIC_SCAN_REQUEST" +ORGANIZATION | "ORGANIZATION" + + + +## Enum: SystemUsageEnum +Name | Value +---- | ----- +HP_DEFINED_DELETABLE | "HP_DEFINED_DELETABLE" +HP_DEFINED_NON_DELETABLE | "HP_DEFINED_NON_DELETABLE" +USER_DEFINED_DELETABLE | "USER_DEFINED_DELETABLE" +USER_DEFINED_NON_DELETABLE | "USER_DEFINED_NON_DELETABLE" + + + +## Enum: TypeEnum +Name | Value +---- | ----- +TEXT | "TEXT" +SINGLE | "SINGLE" +MULTIPLE | "MULTIPLE" +LONG_TEXT | "LONG_TEXT" +SENSITIVE_TEXT | "SENSITIVE_TEXT" +BOOLEAN | "BOOLEAN" +INTEGER | "INTEGER" +DATE | "DATE" +FILE | "FILE" + + + diff --git a/docs/AttributeDefinitionControllerApi.md b/docs/AttributeDefinitionControllerApi.md new file mode 100644 index 0000000..94b8c63 --- /dev/null +++ b/docs/AttributeDefinitionControllerApi.md @@ -0,0 +1,344 @@ +# AttributeDefinitionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAttributeDefinition**](AttributeDefinitionControllerApi.md#createAttributeDefinition) | **POST** /attributeDefinitions | create +[**deleteAttributeDefinition**](AttributeDefinitionControllerApi.md#deleteAttributeDefinition) | **DELETE** /attributeDefinitions/{id} | delete +[**listAttributeDefinition**](AttributeDefinitionControllerApi.md#listAttributeDefinition) | **GET** /attributeDefinitions | list +[**multiDeleteAttributeDefinition**](AttributeDefinitionControllerApi.md#multiDeleteAttributeDefinition) | **DELETE** /attributeDefinitions | multiDelete +[**readAttributeDefinition**](AttributeDefinitionControllerApi.md#readAttributeDefinition) | **GET** /attributeDefinitions/{id} | read +[**updateAttributeDefinition**](AttributeDefinitionControllerApi.md#updateAttributeDefinition) | **PUT** /attributeDefinitions/{id} | update + + + +# **createAttributeDefinition** +> ApiResultAttributeDefinition createAttributeDefinition(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +AttributeDefinition resource = new AttributeDefinition(); // AttributeDefinition | resource +try { + ApiResultAttributeDefinition result = apiInstance.createAttributeDefinition(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#createAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**AttributeDefinition**](AttributeDefinition.md)| resource | + +### Return type + +[**ApiResultAttributeDefinition**](ApiResultAttributeDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteAttributeDefinition** +> ApiResultVoid deleteAttributeDefinition(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteAttributeDefinition(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#deleteAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAttributeDefinition** +> ApiResultListAttributeDefinition listAttributeDefinition(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListAttributeDefinition result = apiInstance.listAttributeDefinition(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#listAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListAttributeDefinition**](ApiResultListAttributeDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteAttributeDefinition** +> ApiResultVoid multiDeleteAttributeDefinition(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteAttributeDefinition(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#multiDeleteAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAttributeDefinition** +> ApiResultAttributeDefinition readAttributeDefinition(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultAttributeDefinition result = apiInstance.readAttributeDefinition(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#readAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultAttributeDefinition**](ApiResultAttributeDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateAttributeDefinition** +> ApiResultAttributeDefinition updateAttributeDefinition(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeDefinitionControllerApi apiInstance = new AttributeDefinitionControllerApi(); +Long id = 789L; // Long | id +AttributeDefinition resource = new AttributeDefinition(); // AttributeDefinition | resource +try { + ApiResultAttributeDefinition result = apiInstance.updateAttributeDefinition(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeDefinitionControllerApi#updateAttributeDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**AttributeDefinition**](AttributeDefinition.md)| resource | + +### Return type + +[**ApiResultAttributeDefinition**](ApiResultAttributeDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AttributeOfProjectControllerApi.md b/docs/AttributeOfProjectControllerApi.md new file mode 100644 index 0000000..a2414dd --- /dev/null +++ b/docs/AttributeOfProjectControllerApi.md @@ -0,0 +1,238 @@ +# AttributeOfProjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAttributeOfProject**](AttributeOfProjectControllerApi.md#createAttributeOfProject) | **POST** /projects/{parentId}/attributes | create +[**listAttributeOfProject**](AttributeOfProjectControllerApi.md#listAttributeOfProject) | **GET** /projects/{parentId}/attributes | list +[**readAttributeOfProject**](AttributeOfProjectControllerApi.md#readAttributeOfProject) | **GET** /projects/{parentId}/attributes/{id} | read +[**updateCollectionAttributeOfProject**](AttributeOfProjectControllerApi.md#updateCollectionAttributeOfProject) | **PUT** /projects/{parentId}/attributes | updateCollection + + + +# **createAttributeOfProject** +> ApiResultAttribute createAttributeOfProject(parentId, data) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectControllerApi apiInstance = new AttributeOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +Attribute data = new Attribute(); // Attribute | data +try { + ApiResultAttribute result = apiInstance.createAttributeOfProject(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectControllerApi#createAttributeOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**Attribute**](Attribute.md)| data | + +### Return type + +[**ApiResultAttribute**](ApiResultAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAttributeOfProject** +> ApiResultListAttribute listAttributeOfProject(parentId, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectControllerApi apiInstance = new AttributeOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListAttribute result = apiInstance.listAttributeOfProject(parentId, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectControllerApi#listAttributeOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListAttribute**](ApiResultListAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAttributeOfProject** +> ApiResultAttribute readAttributeOfProject(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectControllerApi apiInstance = new AttributeOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultAttribute result = apiInstance.readAttributeOfProject(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectControllerApi#readAttributeOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultAttribute**](ApiResultAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionAttributeOfProject** +> ApiResultListAttribute updateCollectionAttributeOfProject(parentId, resources) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectControllerApi apiInstance = new AttributeOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +List resources = Arrays.asList(new Attribute()); // List | resources +try { + ApiResultListAttribute result = apiInstance.updateCollectionAttributeOfProject(parentId, resources); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectControllerApi#updateCollectionAttributeOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resources** | [**List<Attribute>**](Attribute.md)| resources | + +### Return type + +[**ApiResultListAttribute**](ApiResultListAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AttributeOfProjectVersionControllerApi.md b/docs/AttributeOfProjectVersionControllerApi.md new file mode 100644 index 0000000..43a63c5 --- /dev/null +++ b/docs/AttributeOfProjectVersionControllerApi.md @@ -0,0 +1,234 @@ +# AttributeOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAttributeOfProjectVersion**](AttributeOfProjectVersionControllerApi.md#createAttributeOfProjectVersion) | **POST** /projectVersions/{parentId}/attributes | create +[**listAttributeOfProjectVersion**](AttributeOfProjectVersionControllerApi.md#listAttributeOfProjectVersion) | **GET** /projectVersions/{parentId}/attributes | list +[**readAttributeOfProjectVersion**](AttributeOfProjectVersionControllerApi.md#readAttributeOfProjectVersion) | **GET** /projectVersions/{parentId}/attributes/{id} | read +[**updateCollectionAttributeOfProjectVersion**](AttributeOfProjectVersionControllerApi.md#updateCollectionAttributeOfProjectVersion) | **PUT** /projectVersions/{parentId}/attributes | updateCollection + + + +# **createAttributeOfProjectVersion** +> ApiResultAttribute createAttributeOfProjectVersion(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectVersionControllerApi apiInstance = new AttributeOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Attribute resource = new Attribute(); // Attribute | resource +try { + ApiResultAttribute result = apiInstance.createAttributeOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectVersionControllerApi#createAttributeOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**Attribute**](Attribute.md)| resource | + +### Return type + +[**ApiResultAttribute**](ApiResultAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAttributeOfProjectVersion** +> ApiResultListAttribute listAttributeOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectVersionControllerApi apiInstance = new AttributeOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListAttribute result = apiInstance.listAttributeOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectVersionControllerApi#listAttributeOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListAttribute**](ApiResultListAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAttributeOfProjectVersion** +> ApiResultAttribute readAttributeOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectVersionControllerApi apiInstance = new AttributeOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultAttribute result = apiInstance.readAttributeOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectVersionControllerApi#readAttributeOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultAttribute**](ApiResultAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionAttributeOfProjectVersion** +> ApiResultListAttribute updateCollectionAttributeOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AttributeOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AttributeOfProjectVersionControllerApi apiInstance = new AttributeOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new Attribute()); // List | data +try { + ApiResultListAttribute result = apiInstance.updateCollectionAttributeOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AttributeOfProjectVersionControllerApi#updateCollectionAttributeOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<Attribute>**](Attribute.md)| data | + +### Return type + +[**ApiResultListAttribute**](ApiResultListAttribute.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AttributeOption.md b/docs/AttributeOption.md new file mode 100644 index 0000000..78d08b9 --- /dev/null +++ b/docs/AttributeOption.md @@ -0,0 +1,19 @@ + +# AttributeOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**guid** | **String** | Unique string identifier for an Attribute Option | +**hidden** | **Boolean** | Set to true if this option is to be hidden | [optional] +**id** | **Long** | ID required with referencing an existing Attribute Option | +**inUse** | **Boolean** | Set to true if this option is being used | [optional] +**index** | **Integer** | Index of this option in list of options | +**name** | **String** | Name | +**objectVersion** | **Integer** | | [optional] +**projectMetaDataDefId** | **Long** | ID of Attribute Definition this option is associated with | +**publishVersion** | **Integer** | | [optional] + + + diff --git a/docs/AuditAssistantStatus.md b/docs/AuditAssistantStatus.md new file mode 100644 index 0000000..5a800c4 --- /dev/null +++ b/docs/AuditAssistantStatus.md @@ -0,0 +1,33 @@ + +# AuditAssistantStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fprFilePath** | **String** | | [optional] +**message** | **String** | | [optional] +**projectVersionId** | **Long** | | [optional] +**serverId** | **Long** | | [optional] +**serverStatus** | **Integer** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**userName** | **String** | | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +NONE | "NONE" +PRE_PREDICT_FAILURE | "PRE_PREDICT_FAILURE" +PREDICT_QUEUED | "PREDICT_QUEUED" +PREDICT_PREP | "PREDICT_PREP" +PREDICT_SUBMITTED | "PREDICT_SUBMITTED" +PREDICT_COMPLETE | "PREDICT_COMPLETE" +PREDICT_FAILED | "PREDICT_FAILED" +PREDICTIONS_RETRIEVING | "PREDICTIONS_RETRIEVING" +PREDICTIONS_RETRIEVED | "PREDICTIONS_RETRIEVED" +PREDICTIONS_RETRIEVE_FAILED | "PREDICTIONS_RETRIEVE_FAILED" +UPLOAD_FPR_FAILED | "UPLOAD_FPR_FAILED" + + + diff --git a/docs/AuditAssistantStatusOfProjectVersionControllerApi.md b/docs/AuditAssistantStatusOfProjectVersionControllerApi.md new file mode 100644 index 0000000..bb8c374 --- /dev/null +++ b/docs/AuditAssistantStatusOfProjectVersionControllerApi.md @@ -0,0 +1,64 @@ +# AuditAssistantStatusOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAuditAssistantStatusOfProjectVersion**](AuditAssistantStatusOfProjectVersionControllerApi.md#listAuditAssistantStatusOfProjectVersion) | **GET** /projectVersions/{parentId}/auditAssistantStatus | list + + + +# **listAuditAssistantStatusOfProjectVersion** +> ApiResultListAuditAssistantStatus listAuditAssistantStatusOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuditAssistantStatusOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuditAssistantStatusOfProjectVersionControllerApi apiInstance = new AuditAssistantStatusOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListAuditAssistantStatus result = apiInstance.listAuditAssistantStatusOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuditAssistantStatusOfProjectVersionControllerApi#listAuditAssistantStatusOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListAuditAssistantStatus**](ApiResultListAuditAssistantStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuditHistoryOfIssueControllerApi.md b/docs/AuditHistoryOfIssueControllerApi.md new file mode 100644 index 0000000..22ef5b8 --- /dev/null +++ b/docs/AuditHistoryOfIssueControllerApi.md @@ -0,0 +1,64 @@ +# AuditHistoryOfIssueControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAuditHistoryOfIssue**](AuditHistoryOfIssueControllerApi.md#listAuditHistoryOfIssue) | **GET** /issues/{parentId}/auditHistory | list + + + +# **listAuditHistoryOfIssue** +> ApiResultListIssueAuditHistoryDto listAuditHistoryOfIssue(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuditHistoryOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuditHistoryOfIssueControllerApi apiInstance = new AuditHistoryOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListIssueAuditHistoryDto result = apiInstance.listAuditHistoryOfIssue(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuditHistoryOfIssueControllerApi#listAuditHistoryOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListIssueAuditHistoryDto**](ApiResultListIssueAuditHistoryDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuthEntityControllerApi.md b/docs/AuthEntityControllerApi.md new file mode 100644 index 0000000..b749152 --- /dev/null +++ b/docs/AuthEntityControllerApi.md @@ -0,0 +1,190 @@ +# AuthEntityControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAuthEntity**](AuthEntityControllerApi.md#listAuthEntity) | **GET** /authEntities | list +[**multiDeleteAuthEntity**](AuthEntityControllerApi.md#multiDeleteAuthEntity) | **DELETE** /authEntities | multiDelete +[**readAuthEntity**](AuthEntityControllerApi.md#readAuthEntity) | **GET** /authEntities/{id} | read + + + +# **listAuthEntity** +> ApiResultListAuthenticationEntity listAuthEntity(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityControllerApi apiInstance = new AuthEntityControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +String embed = "embed_example"; // String | Fields to embed +String entityname = "entityname_example"; // String | entityname +String ldaptype = "ldaptype_example"; // String | ldaptype +try { + ApiResultListAuthenticationEntity result = apiInstance.listAuthEntity(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityControllerApi#listAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + **embed** | **String**| Fields to embed | [optional] + **entityname** | **String**| entityname | [optional] + **ldaptype** | **String**| ldaptype | [optional] + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteAuthEntity** +> ApiResultVoid multiDeleteAuthEntity(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityControllerApi apiInstance = new AuthEntityControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteAuthEntity(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityControllerApi#multiDeleteAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAuthEntity** +> ApiResultAuthenticationEntity readAuthEntity(id, fields, embed) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityControllerApi apiInstance = new AuthEntityControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultAuthenticationEntity result = apiInstance.readAuthEntity(id, fields, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityControllerApi#readAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultAuthenticationEntity**](ApiResultAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuthEntityOfProjectControllerApi.md b/docs/AuthEntityOfProjectControllerApi.md new file mode 100644 index 0000000..f98cbf8 --- /dev/null +++ b/docs/AuthEntityOfProjectControllerApi.md @@ -0,0 +1,178 @@ +# AuthEntityOfProjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAuthEntityOfProject**](AuthEntityOfProjectControllerApi.md#listAuthEntityOfProject) | **GET** /projects/{parentId}/authEntities | list +[**readAuthEntityOfProject**](AuthEntityOfProjectControllerApi.md#readAuthEntityOfProject) | **GET** /projects/{parentId}/authEntities/{id} | read +[**updateCollectionAuthEntityOfProject**](AuthEntityOfProjectControllerApi.md#updateCollectionAuthEntityOfProject) | **PUT** /projects/{parentId}/authEntities | updateCollection + + + +# **listAuthEntityOfProject** +> ApiResultListAuthenticationEntity listAuthEntityOfProject(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectControllerApi apiInstance = new AuthEntityOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListAuthenticationEntity result = apiInstance.listAuthEntityOfProject(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectControllerApi#listAuthEntityOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAuthEntityOfProject** +> ApiResultAuthenticationEntity readAuthEntityOfProject(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectControllerApi apiInstance = new AuthEntityOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultAuthenticationEntity result = apiInstance.readAuthEntityOfProject(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectControllerApi#readAuthEntityOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultAuthenticationEntity**](ApiResultAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionAuthEntityOfProject** +> ApiResultListAuthenticationEntity updateCollectionAuthEntityOfProject(parentId, resources) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectControllerApi apiInstance = new AuthEntityOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +List resources = Arrays.asList(new AuthenticationEntity()); // List | resources +try { + ApiResultListAuthenticationEntity result = apiInstance.updateCollectionAuthEntityOfProject(parentId, resources); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectControllerApi#updateCollectionAuthEntityOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resources** | [**List<AuthenticationEntity>**](AuthenticationEntity.md)| resources | + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuthEntityOfProjectVersionControllerApi.md b/docs/AuthEntityOfProjectVersionControllerApi.md new file mode 100644 index 0000000..d15d83c --- /dev/null +++ b/docs/AuthEntityOfProjectVersionControllerApi.md @@ -0,0 +1,188 @@ +# AuthEntityOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listAuthEntityOfProjectVersion**](AuthEntityOfProjectVersionControllerApi.md#listAuthEntityOfProjectVersion) | **GET** /projectVersions/{parentId}/authEntities | list +[**readAuthEntityOfProjectVersion**](AuthEntityOfProjectVersionControllerApi.md#readAuthEntityOfProjectVersion) | **GET** /projectVersions/{parentId}/authEntities/{id} | read +[**updateCollectionAuthEntityOfProjectVersion**](AuthEntityOfProjectVersionControllerApi.md#updateCollectionAuthEntityOfProjectVersion) | **PUT** /projectVersions/{parentId}/authEntities | updateCollection + + + +# **listAuthEntityOfProjectVersion** +> ApiResultListAuthenticationEntity listAuthEntityOfProjectVersion(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectVersionControllerApi apiInstance = new AuthEntityOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +String embed = "embed_example"; // String | Fields to embed +Boolean extractusersfromgroups = true; // Boolean | extractusersfromgroups +Boolean includeuniversalaccessentities = true; // Boolean | includeuniversalaccessentities +String entityname = "entityname_example"; // String | entityname +try { + ApiResultListAuthenticationEntity result = apiInstance.listAuthEntityOfProjectVersion(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectVersionControllerApi#listAuthEntityOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **embed** | **String**| Fields to embed | [optional] + **extractusersfromgroups** | **Boolean**| extractusersfromgroups | [optional] + **includeuniversalaccessentities** | **Boolean**| includeuniversalaccessentities | [optional] + **entityname** | **String**| entityname | [optional] + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readAuthEntityOfProjectVersion** +> ApiResultAuthenticationEntity readAuthEntityOfProjectVersion(parentId, id, fields, embed) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectVersionControllerApi apiInstance = new AuthEntityOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultAuthenticationEntity result = apiInstance.readAuthEntityOfProjectVersion(parentId, id, fields, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectVersionControllerApi#readAuthEntityOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultAuthenticationEntity**](ApiResultAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionAuthEntityOfProjectVersion** +> ApiResultListAuthenticationEntity updateCollectionAuthEntityOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthEntityOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +AuthEntityOfProjectVersionControllerApi apiInstance = new AuthEntityOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new AuthenticationEntity()); // List | data +try { + ApiResultListAuthenticationEntity result = apiInstance.updateCollectionAuthEntityOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthEntityOfProjectVersionControllerApi#updateCollectionAuthEntityOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<AuthenticationEntity>**](AuthenticationEntity.md)| data | + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuthTokenControllerApi.md b/docs/AuthTokenControllerApi.md new file mode 100644 index 0000000..dd8eb7a --- /dev/null +++ b/docs/AuthTokenControllerApi.md @@ -0,0 +1,338 @@ +# AuthTokenControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAuthToken**](AuthTokenControllerApi.md#createAuthToken) | **POST** /tokens | create +[**deleteAuthToken**](AuthTokenControllerApi.md#deleteAuthToken) | **DELETE** /tokens/{id} | delete +[**listAuthToken**](AuthTokenControllerApi.md#listAuthToken) | **GET** /tokens | list +[**multiDeleteAuthToken**](AuthTokenControllerApi.md#multiDeleteAuthToken) | **DELETE** /tokens | Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. +[**revokeAuthToken**](AuthTokenControllerApi.md#revokeAuthToken) | **POST** /tokens/action/revoke | Revoke authentication tokens by value +[**updateAuthToken**](AuthTokenControllerApi.md#updateAuthToken) | **PUT** /tokens/{id} | update + + + +# **createAuthToken** +> ApiResultAuthenticationToken createAuthToken(authToken) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +AuthenticationToken authToken = new AuthenticationToken(); // AuthenticationToken | authToken +try { + ApiResultAuthenticationToken result = apiInstance.createAuthToken(authToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#createAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authToken** | [**AuthenticationToken**](AuthenticationToken.md)| authToken | + +### Return type + +[**ApiResultAuthenticationToken**](ApiResultAuthenticationToken.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteAuthToken** +> ApiResultVoid deleteAuthToken(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteAuthToken(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#deleteAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAuthToken** +> ApiResultListAuthenticationToken listAuthToken(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListAuthenticationToken result = apiInstance.listAuthToken(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#listAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListAuthenticationToken**](ApiResultListAuthenticationToken.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteAuthToken** +> ApiResultVoid multiDeleteAuthToken(all, ids) + +Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +Boolean all = false; // Boolean | Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteAuthToken(all, ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#multiDeleteAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **Boolean**| Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. | [optional] [default to false] + **ids** | **String**| A comma-separated list of resource identifiers | [optional] + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **revokeAuthToken** +> ApiResultVoid revokeAuthToken(resource) + +Revoke authentication tokens by value + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +AuthTokenRevokeRequest resource = new AuthTokenRevokeRequest(); // AuthTokenRevokeRequest | resource +try { + ApiResultVoid result = apiInstance.revokeAuthToken(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#revokeAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**AuthTokenRevokeRequest**](AuthTokenRevokeRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateAuthToken** +> ApiResultAuthenticationToken updateAuthToken(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.AuthTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +AuthTokenControllerApi apiInstance = new AuthTokenControllerApi(); +Long id = 789L; // Long | id +AuthenticationToken resource = new AuthenticationToken(); // AuthenticationToken | resource +try { + ApiResultAuthenticationToken result = apiInstance.updateAuthToken(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AuthTokenControllerApi#updateAuthToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**AuthenticationToken**](AuthenticationToken.md)| resource | + +### Return type + +[**ApiResultAuthenticationToken**](ApiResultAuthenticationToken.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/AuthTokenRevokeRequest.md b/docs/AuthTokenRevokeRequest.md new file mode 100644 index 0000000..67a987b --- /dev/null +++ b/docs/AuthTokenRevokeRequest.md @@ -0,0 +1,10 @@ + +# AuthTokenRevokeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tokens** | **List<String>** | A list of tokens (atleast one) to revoke | + + + diff --git a/docs/AuthenticationEntity.md b/docs/AuthenticationEntity.md new file mode 100644 index 0000000..60b0482 --- /dev/null +++ b/docs/AuthenticationEntity.md @@ -0,0 +1,20 @@ + +# AuthenticationEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embed** | [**EmbeddedRoles**](EmbeddedRoles.md) | | [optional] +**displayName** | **String** | Display Name supports the use of wildcard matching. So, for example, \"L*\" will match Lando Calrissian and Lara Croft. | [optional] +**email** | **String** | | [optional] +**entityName** | **String** | | [optional] +**firstName** | **String** | | [optional] +**id** | **Long** | Authentication entity id | [optional] +**isLdap** | **Boolean** | | [optional] +**lastName** | **String** | | [optional] +**ldapDn** | **String** | Distinguished Name (DN) that is only set for LDAP user accounts | [optional] +**type** | **String** | | [optional] +**userPhoto** | [**UserPhoto**](UserPhoto.md) | | [optional] + + + diff --git a/docs/AuthenticationToken.md b/docs/AuthenticationToken.md new file mode 100644 index 0000000..9358eb8 --- /dev/null +++ b/docs/AuthenticationToken.md @@ -0,0 +1,17 @@ + +# AuthenticationToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the token was created (in ISO 8601 format) | [optional] +**description** | **String** | Purpose for which the token was requested. | [optional] +**id** | **Long** | Unique identifier of token | [optional] +**remainingUsages** | **Integer** | The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls. | [optional] +**terminalDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the token expires (in ISO 8601 format). If not specified, it will default to the maximum lifetime for this token type. | [optional] +**token** | **String** | String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.) | [optional] +**type** | **String** | Token type | +**username** | **String** | Username of token owner | [optional] + + + diff --git a/docs/BugFilingRequirements.md b/docs/BugFilingRequirements.md new file mode 100644 index 0000000..f3af81f --- /dev/null +++ b/docs/BugFilingRequirements.md @@ -0,0 +1,13 @@ + +# BugFilingRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugParams** | [**List<BugParam>**](BugParam.md) | | [optional] +**bugTrackerLongDisplayName** | **String** | | [optional] +**bugTrackerShortDisplayName** | **String** | | [optional] +**requiresAuthentication** | **Boolean** | | [optional] + + + diff --git a/docs/BugFilingRequirementsOfProjectVersionControllerApi.md b/docs/BugFilingRequirementsOfProjectVersionControllerApi.md new file mode 100644 index 0000000..9a9d158 --- /dev/null +++ b/docs/BugFilingRequirementsOfProjectVersionControllerApi.md @@ -0,0 +1,234 @@ +# BugFilingRequirementsOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doActionBugFilingRequirementsOfProjectVersion**](BugFilingRequirementsOfProjectVersionControllerApi.md#doActionBugFilingRequirementsOfProjectVersion) | **POST** /projectVersions/{parentId}/bugfilingrequirements/action | doAction +[**listBugFilingRequirementsOfProjectVersion**](BugFilingRequirementsOfProjectVersionControllerApi.md#listBugFilingRequirementsOfProjectVersion) | **GET** /projectVersions/{parentId}/bugfilingrequirements | list +[**loginBugFilingRequirementsOfProjectVersion**](BugFilingRequirementsOfProjectVersionControllerApi.md#loginBugFilingRequirementsOfProjectVersion) | **POST** /projectVersions/{parentId}/bugfilingrequirements/action/login | login +[**updateCollectionBugFilingRequirementsOfProjectVersion**](BugFilingRequirementsOfProjectVersionControllerApi.md#updateCollectionBugFilingRequirementsOfProjectVersion) | **PUT** /projectVersions/{parentId}/bugfilingrequirements | updateCollection + + + +# **doActionBugFilingRequirementsOfProjectVersion** +> ApiResultApiActionResponse doActionBugFilingRequirementsOfProjectVersion(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugFilingRequirementsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugFilingRequirementsOfProjectVersionControllerApi apiInstance = new BugFilingRequirementsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +ApiCollectionActionstring collectionAction = new ApiCollectionActionstring(); // ApiCollectionActionstring | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionBugFilingRequirementsOfProjectVersion(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugFilingRequirementsOfProjectVersionControllerApi#doActionBugFilingRequirementsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **collectionAction** | [**ApiCollectionActionstring**](ApiCollectionActionstring.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listBugFilingRequirementsOfProjectVersion** +> ApiResultListBugFilingRequirements listBugFilingRequirementsOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugFilingRequirementsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugFilingRequirementsOfProjectVersionControllerApi apiInstance = new BugFilingRequirementsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListBugFilingRequirements result = apiInstance.listBugFilingRequirementsOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugFilingRequirementsOfProjectVersionControllerApi#listBugFilingRequirementsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListBugFilingRequirements**](ApiResultListBugFilingRequirements.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **loginBugFilingRequirementsOfProjectVersion** +> ApiResultBugFilingRequirementsResponse loginBugFilingRequirementsOfProjectVersion(parentId, resource) + +login + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugFilingRequirementsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugFilingRequirementsOfProjectVersionControllerApi apiInstance = new BugFilingRequirementsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +BugFilingRequirementsRequest resource = new BugFilingRequirementsRequest(); // BugFilingRequirementsRequest | resource +try { + ApiResultBugFilingRequirementsResponse result = apiInstance.loginBugFilingRequirementsOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugFilingRequirementsOfProjectVersionControllerApi#loginBugFilingRequirementsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**BugFilingRequirementsRequest**](BugFilingRequirementsRequest.md)| resource | + +### Return type + +[**ApiResultBugFilingRequirementsResponse**](ApiResultBugFilingRequirementsResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionBugFilingRequirementsOfProjectVersion** +> ApiResultListBugFilingRequirements updateCollectionBugFilingRequirementsOfProjectVersion(parentId, data, changedParamIdentifier) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugFilingRequirementsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugFilingRequirementsOfProjectVersionControllerApi apiInstance = new BugFilingRequirementsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new BugFilingRequirements()); // List | data +String changedParamIdentifier = "changedParamIdentifier_example"; // String | changedParamIdentifier +try { + ApiResultListBugFilingRequirements result = apiInstance.updateCollectionBugFilingRequirementsOfProjectVersion(parentId, data, changedParamIdentifier); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugFilingRequirementsOfProjectVersionControllerApi#updateCollectionBugFilingRequirementsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<BugFilingRequirements>**](BugFilingRequirements.md)| data | + **changedParamIdentifier** | **String**| changedParamIdentifier | [optional] + +### Return type + +[**ApiResultListBugFilingRequirements**](ApiResultListBugFilingRequirements.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/BugFilingRequirementsRequest.md b/docs/BugFilingRequirementsRequest.md new file mode 100644 index 0000000..9d8da01 --- /dev/null +++ b/docs/BugFilingRequirementsRequest.md @@ -0,0 +1,11 @@ + +# BugFilingRequirementsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **String** | Password | +**username** | **String** | Username | + + + diff --git a/docs/BugFilingRequirementsResponse.md b/docs/BugFilingRequirementsResponse.md new file mode 100644 index 0000000..c3cf9b1 --- /dev/null +++ b/docs/BugFilingRequirementsResponse.md @@ -0,0 +1,10 @@ + +# BugFilingRequirementsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugFilingRequirements** | [**BugFilingRequirements**](BugFilingRequirements.md) | Requirements to file the bugs | [optional] + + + diff --git a/docs/BugParam.md b/docs/BugParam.md new file mode 100644 index 0000000..f623620 --- /dev/null +++ b/docs/BugParam.md @@ -0,0 +1,27 @@ + +# BugParam + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugParamType** | [**BugParamTypeEnum**](#BugParamTypeEnum) | | [optional] +**choiceList** | **List<String>** | | [optional] +**description** | **String** | | [optional] +**displayLabel** | **String** | | [optional] +**hasDependentParams** | **Boolean** | | [optional] +**identifier** | **String** | | [optional] +**maxLength** | **Integer** | | [optional] +**required** | **Boolean** | | [optional] +**value** | **String** | | [optional] + + + +## Enum: BugParamTypeEnum +Name | Value +---- | ----- +TEXT | "BUGPARAM_TEXT" +TEXTAREA | "BUGPARAM_TEXTAREA" +CHOICE | "BUGPARAM_CHOICE" + + + diff --git a/docs/BugStateManagementCfg.md b/docs/BugStateManagementCfg.md new file mode 100644 index 0000000..a926104 --- /dev/null +++ b/docs/BugStateManagementCfg.md @@ -0,0 +1,13 @@ + +# BugStateManagementCfg + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**password** | **String** | | [optional] +**projectVersionId** | **Long** | | [optional] +**username** | **String** | | [optional] + + + diff --git a/docs/BugTracker.md b/docs/BugTracker.md new file mode 100644 index 0000000..4f7e6a9 --- /dev/null +++ b/docs/BugTracker.md @@ -0,0 +1,16 @@ + +# BugTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authenticationRequired** | **Boolean** | Authentication required | +**bugTrackerConfigs** | [**List<BugTrackerConfiguration>**](BugTrackerConfiguration.md) | Bug tracker configuration | [optional] +**id** | **String** | Bug tracker identifier | [optional] +**longDisplayName** | **String** | Long display name | [optional] +**pluginClassName** | **String** | Class name | +**pluginId** | **String** | Bug tracker plugin identifier | +**shortDisplayName** | **String** | Short display name | + + + diff --git a/docs/BugTrackerConfiguration.md b/docs/BugTrackerConfiguration.md new file mode 100644 index 0000000..5b8bb8c --- /dev/null +++ b/docs/BugTrackerConfiguration.md @@ -0,0 +1,14 @@ + +# BugTrackerConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | Description | +**displayLabel** | **String** | Configuration name | +**identifier** | **String** | Identifier | +**required** | **Boolean** | Set to true if configuration is required | +**value** | **String** | Configuration value | + + + diff --git a/docs/BugTrackerControllerApi.md b/docs/BugTrackerControllerApi.md new file mode 100644 index 0000000..9252f98 --- /dev/null +++ b/docs/BugTrackerControllerApi.md @@ -0,0 +1,62 @@ +# BugTrackerControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listBugTracker**](BugTrackerControllerApi.md#listBugTracker) | **GET** /bugtrackers | list + + + +# **listBugTracker** +> ApiResultListBugTracker listBugTracker(fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugTrackerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugTrackerControllerApi apiInstance = new BugTrackerControllerApi(); +String fields = "fields_example"; // String | Output fields +try { + ApiResultListBugTracker result = apiInstance.listBugTracker(fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugTrackerControllerApi#listBugTracker"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListBugTracker**](ApiResultListBugTracker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/BugTrackerOfProjectVersionControllerApi.md b/docs/BugTrackerOfProjectVersionControllerApi.md new file mode 100644 index 0000000..d11cb88 --- /dev/null +++ b/docs/BugTrackerOfProjectVersionControllerApi.md @@ -0,0 +1,232 @@ +# BugTrackerOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doActionBugTrackerOfProjectVersion**](BugTrackerOfProjectVersionControllerApi.md#doActionBugTrackerOfProjectVersion) | **POST** /projectVersions/{parentId}/bugtracker/action | doAction +[**listBugTrackerOfProjectVersion**](BugTrackerOfProjectVersionControllerApi.md#listBugTrackerOfProjectVersion) | **GET** /projectVersions/{parentId}/bugtracker | list +[**testBugTrackerOfProjectVersion**](BugTrackerOfProjectVersionControllerApi.md#testBugTrackerOfProjectVersion) | **POST** /projectVersions/{parentId}/bugtracker/action/test | test +[**updateCollectionBugTrackerOfProjectVersion**](BugTrackerOfProjectVersionControllerApi.md#updateCollectionBugTrackerOfProjectVersion) | **PUT** /projectVersions/{parentId}/bugtracker | updateCollection + + + +# **doActionBugTrackerOfProjectVersion** +> ApiResultApiActionResponse doActionBugTrackerOfProjectVersion(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugTrackerOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +ApiCollectionActionstring collectionAction = new ApiCollectionActionstring(); // ApiCollectionActionstring | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionBugTrackerOfProjectVersion(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#doActionBugTrackerOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **collectionAction** | [**ApiCollectionActionstring**](ApiCollectionActionstring.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listBugTrackerOfProjectVersion** +> ApiResultListProjectVersionBugTracker listBugTrackerOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugTrackerOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListProjectVersionBugTracker result = apiInstance.listBugTrackerOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#listBugTrackerOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListProjectVersionBugTracker**](ApiResultListProjectVersionBugTracker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **testBugTrackerOfProjectVersion** +> ApiResultVoid testBugTrackerOfProjectVersion(parentId, resource) + +test + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugTrackerOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +BugTrackerRequest resource = new BugTrackerRequest(); // BugTrackerRequest | resource +try { + ApiResultVoid result = apiInstance.testBugTrackerOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#testBugTrackerOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**BugTrackerRequest**](BugTrackerRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionBugTrackerOfProjectVersion** +> ApiResultListProjectVersionBugTracker updateCollectionBugTrackerOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugTrackerOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new ProjectVersionBugTracker()); // List | data +try { + ApiResultListProjectVersionBugTracker result = apiInstance.updateCollectionBugTrackerOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#updateCollectionBugTrackerOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<ProjectVersionBugTracker>**](ProjectVersionBugTracker.md)| data | + +### Return type + +[**ApiResultListProjectVersionBugTracker**](ApiResultListProjectVersionBugTracker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/BugTrackerRequest.md b/docs/BugTrackerRequest.md new file mode 100644 index 0000000..37cb174 --- /dev/null +++ b/docs/BugTrackerRequest.md @@ -0,0 +1,10 @@ + +# BugTrackerRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**testPlugin** | [**ProjectVersionBugTracker**](ProjectVersionBugTracker.md) | Bugtracker plugin information to test connection | + + + diff --git a/docs/BugfieldTemplateDto.md b/docs/BugfieldTemplateDto.md new file mode 100644 index 0000000..c896a00 --- /dev/null +++ b/docs/BugfieldTemplateDto.md @@ -0,0 +1,12 @@ + +# BugfieldTemplateDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fieldName** | **String** | unique name of bugfield template. | +**fieldValue** | **String** | description for bugfield template . | [optional] +**id** | **Long** | unique identifier of bugfield template. | [optional] + + + diff --git a/docs/BugfieldTemplateGroupControllerApi.md b/docs/BugfieldTemplateGroupControllerApi.md new file mode 100644 index 0000000..e34448e --- /dev/null +++ b/docs/BugfieldTemplateGroupControllerApi.md @@ -0,0 +1,336 @@ +# BugfieldTemplateGroupControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#createBugfieldTemplateGroup) | **POST** /bugfieldTemplateGroups | create +[**deleteBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#deleteBugfieldTemplateGroup) | **DELETE** /bugfieldTemplateGroups/{id} | delete +[**listBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#listBugfieldTemplateGroup) | **GET** /bugfieldTemplateGroups | list +[**multiDeleteBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#multiDeleteBugfieldTemplateGroup) | **DELETE** /bugfieldTemplateGroups | multiDelete +[**readBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#readBugfieldTemplateGroup) | **GET** /bugfieldTemplateGroups/{id} | read +[**updateBugfieldTemplateGroup**](BugfieldTemplateGroupControllerApi.md#updateBugfieldTemplateGroup) | **PUT** /bugfieldTemplateGroups/{id} | update + + + +# **createBugfieldTemplateGroup** +> ApiResultBugfieldTemplateGroupDto createBugfieldTemplateGroup(data) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +BugfieldTemplateGroupDto data = new BugfieldTemplateGroupDto(); // BugfieldTemplateGroupDto | data +try { + ApiResultBugfieldTemplateGroupDto result = apiInstance.createBugfieldTemplateGroup(data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#createBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**BugfieldTemplateGroupDto**](BugfieldTemplateGroupDto.md)| data | + +### Return type + +[**ApiResultBugfieldTemplateGroupDto**](ApiResultBugfieldTemplateGroupDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteBugfieldTemplateGroup** +> ApiResultVoid deleteBugfieldTemplateGroup(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteBugfieldTemplateGroup(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#deleteBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listBugfieldTemplateGroup** +> ApiResultListBugfieldTemplateGroupDto listBugfieldTemplateGroup(fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +String fields = "fields_example"; // String | Output fields +try { + ApiResultListBugfieldTemplateGroupDto result = apiInstance.listBugfieldTemplateGroup(fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#listBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListBugfieldTemplateGroupDto**](ApiResultListBugfieldTemplateGroupDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteBugfieldTemplateGroup** +> ApiResultVoid multiDeleteBugfieldTemplateGroup(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteBugfieldTemplateGroup(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#multiDeleteBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readBugfieldTemplateGroup** +> ApiResultBugfieldTemplateGroupDto readBugfieldTemplateGroup(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultBugfieldTemplateGroupDto result = apiInstance.readBugfieldTemplateGroup(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#readBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultBugfieldTemplateGroupDto**](ApiResultBugfieldTemplateGroupDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateBugfieldTemplateGroup** +> ApiResultBugfieldTemplateGroupDto updateBugfieldTemplateGroup(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BugfieldTemplateGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BugfieldTemplateGroupControllerApi apiInstance = new BugfieldTemplateGroupControllerApi(); +Long id = 789L; // Long | id +BugfieldTemplateGroupDto resource = new BugfieldTemplateGroupDto(); // BugfieldTemplateGroupDto | resource +try { + ApiResultBugfieldTemplateGroupDto result = apiInstance.updateBugfieldTemplateGroup(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BugfieldTemplateGroupControllerApi#updateBugfieldTemplateGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**BugfieldTemplateGroupDto**](BugfieldTemplateGroupDto.md)| resource | + +### Return type + +[**ApiResultBugfieldTemplateGroupDto**](ApiResultBugfieldTemplateGroupDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/BugfieldTemplateGroupDto.md b/docs/BugfieldTemplateGroupDto.md new file mode 100644 index 0000000..d8400fd --- /dev/null +++ b/docs/BugfieldTemplateGroupDto.md @@ -0,0 +1,16 @@ + +# BugfieldTemplateGroupDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugTrackerPluginId** | **String** | Identifier of the bug tracker plugin associated with this template group. | +**deletable** | **Boolean** | Flag that says if bugfield template group can be deleted. | +**description** | **String** | description for bugfield template group. | [optional] +**id** | **Long** | unique identifier of bugfield template group. | [optional] +**name** | **String** | short name of associated bug tracker plugin. (May be null if plugin is not currently enabled.) | +**objectVersion** | **Integer** | version of bugfield template group stored on the server. This value is used for optimistic locking to prevent concurrent modification by different users at the same time. | +**valueList** | [**List<BugfieldTemplateDto>**](BugfieldTemplateDto.md) | Collection of all templates belonging to this bugfield template group. | + + + diff --git a/docs/BulkControllerApi.md b/docs/BulkControllerApi.md new file mode 100644 index 0000000..b2dae27 --- /dev/null +++ b/docs/BulkControllerApi.md @@ -0,0 +1,62 @@ +# BulkControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**postBulk**](BulkControllerApi.md#postBulk) | **POST** /bulk | post + + + +# **postBulk** +> ApiResultListBulkResponseItem postBulk(apiBulkRequestData) + +post + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.BulkControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +BulkControllerApi apiInstance = new BulkControllerApi(); +BulkRequestData apiBulkRequestData = new BulkRequestData(); // BulkRequestData | apiBulkRequestData +try { + ApiResultListBulkResponseItem result = apiInstance.postBulk(apiBulkRequestData); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling BulkControllerApi#postBulk"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiBulkRequestData** | [**BulkRequestData**](BulkRequestData.md)| apiBulkRequestData | + +### Return type + +[**ApiResultListBulkResponseItem**](ApiResultListBulkResponseItem.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/BulkRequestData.md b/docs/BulkRequestData.md new file mode 100644 index 0000000..983caa4 --- /dev/null +++ b/docs/BulkRequestData.md @@ -0,0 +1,10 @@ + +# BulkRequestData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**List<ApiBulkRequestItem>**](ApiBulkRequestItem.md) | A list of bulk request items that represents requests that could have been issued independently (or use HATEOAS \"response\" scheme requests that map to individual requests). | [optional] + + + diff --git a/docs/BulkResponseItem.md b/docs/BulkResponseItem.md new file mode 100644 index 0000000..ef076e8 --- /dev/null +++ b/docs/BulkResponseItem.md @@ -0,0 +1,11 @@ + +# BulkResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request** | [**ApiBulkRequestItem**](ApiBulkRequestItem.md) | | [optional] +**responses** | [**List<ApiBulkResponseItemResponse>**](ApiBulkResponseItemResponse.md) | | [optional] + + + diff --git a/docs/CloudJob.md b/docs/CloudJob.md new file mode 100644 index 0000000..7d880e8 --- /dev/null +++ b/docs/CloudJob.md @@ -0,0 +1,33 @@ + +# CloudJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloudPool** | [**CloudPool**](CloudPool.md) | | [optional] +**cloudWorker** | [**CloudWorker**](CloudWorker.md) | | [optional] +**jobCancellable** | **Boolean** | | [optional] +**jobDuration** | **Long** | | [optional] +**jobExpiryTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**jobFinishedTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**jobHasFpr** | **Boolean** | | [optional] +**jobHasLog** | **Boolean** | | [optional] +**jobQueuedTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**jobStartedTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**jobState** | **String** | | [optional] +**jobToken** | **String** | | [optional] +**projectId** | **Long** | | [optional] +**projectName** | **String** | | [optional] +**pvId** | **Long** | | [optional] +**pvName** | **String** | | [optional] +**queuedDuration** | **Long** | | [optional] +**scaArgs** | **String** | | [optional] +**scaBuildId** | **String** | | [optional] +**scaVersion** | **String** | | [optional] +**scanDuration** | **Long** | | [optional] +**submitterEmail** | **String** | | [optional] +**submitterIpAddress** | **String** | | [optional] +**submitterUserName** | **String** | | [optional] + + + diff --git a/docs/CloudJobCancelRequest.md b/docs/CloudJobCancelRequest.md new file mode 100644 index 0000000..e031560 --- /dev/null +++ b/docs/CloudJobCancelRequest.md @@ -0,0 +1,10 @@ + +# CloudJobCancelRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobTokens** | **List<String>** | List containing single cloud job token to cancel | + + + diff --git a/docs/CloudJobControllerApi.md b/docs/CloudJobControllerApi.md new file mode 100644 index 0000000..c82e10b --- /dev/null +++ b/docs/CloudJobControllerApi.md @@ -0,0 +1,236 @@ +# CloudJobControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancelCloudJob**](CloudJobControllerApi.md#cancelCloudJob) | **POST** /cloudjobs/action/cancel | cancel +[**doActionCloudJob**](CloudJobControllerApi.md#doActionCloudJob) | **POST** /cloudjobs/{jobToken}/action | doAction +[**listCloudJob**](CloudJobControllerApi.md#listCloudJob) | **GET** /cloudjobs | list +[**readCloudJob**](CloudJobControllerApi.md#readCloudJob) | **GET** /cloudjobs/{jobToken} | read + + + +# **cancelCloudJob** +> ApiResultVoid cancelCloudJob(resource) + +cancel + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobControllerApi apiInstance = new CloudJobControllerApi(); +CloudJobCancelRequest resource = new CloudJobCancelRequest(); // CloudJobCancelRequest | resource +try { + ApiResultVoid result = apiInstance.cancelCloudJob(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobControllerApi#cancelCloudJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**CloudJobCancelRequest**](CloudJobCancelRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionCloudJob** +> ApiResultApiActionResponse doActionCloudJob(jobToken, resourceAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobControllerApi apiInstance = new CloudJobControllerApi(); +String jobToken = "jobToken_example"; // String | jobToken +ApiResourceAction resourceAction = new ApiResourceAction(); // ApiResourceAction | resourceAction +try { + ApiResultApiActionResponse result = apiInstance.doActionCloudJob(jobToken, resourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobControllerApi#doActionCloudJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobToken** | **String**| jobToken | + **resourceAction** | [**ApiResourceAction**](ApiResourceAction.md)| resourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listCloudJob** +> ApiResultListCloudJob listCloudJob(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobControllerApi apiInstance = new CloudJobControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudJob result = apiInstance.listCloudJob(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobControllerApi#listCloudJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudJob**](ApiResultListCloudJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readCloudJob** +> ApiResultCloudJob readCloudJob(jobToken, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobControllerApi apiInstance = new CloudJobControllerApi(); +String jobToken = "jobToken_example"; // String | jobToken +String fields = "fields_example"; // String | Output fields +try { + ApiResultCloudJob result = apiInstance.readCloudJob(jobToken, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobControllerApi#readCloudJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobToken** | **String**| jobToken | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultCloudJob**](ApiResultCloudJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudJobOfCloudPoolControllerApi.md b/docs/CloudJobOfCloudPoolControllerApi.md new file mode 100644 index 0000000..79eed42 --- /dev/null +++ b/docs/CloudJobOfCloudPoolControllerApi.md @@ -0,0 +1,70 @@ +# CloudJobOfCloudPoolControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listCloudJobOfCloudPool**](CloudJobOfCloudPoolControllerApi.md#listCloudJobOfCloudPool) | **GET** /cloudpools/{parentId}/jobs | list + + + +# **listCloudJobOfCloudPool** +> ApiResultListCloudJob listCloudJobOfCloudPool(parentId, fields, start, limit, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobOfCloudPoolControllerApi apiInstance = new CloudJobOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudJob result = apiInstance.listCloudJobOfCloudPool(parentId, fields, start, limit, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobOfCloudPoolControllerApi#listCloudJobOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudJob**](ApiResultListCloudJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudJobOfCloudWorkerControllerApi.md b/docs/CloudJobOfCloudWorkerControllerApi.md new file mode 100644 index 0000000..2a96bf7 --- /dev/null +++ b/docs/CloudJobOfCloudWorkerControllerApi.md @@ -0,0 +1,68 @@ +# CloudJobOfCloudWorkerControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listCloudJobOfCloudWorker**](CloudJobOfCloudWorkerControllerApi.md#listCloudJobOfCloudWorker) | **GET** /cloudworkers/{parentId}/cloudjobs | list + + + +# **listCloudJobOfCloudWorker** +> ApiResultListCloudJob listCloudJobOfCloudWorker(parentId, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudJobOfCloudWorkerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudJobOfCloudWorkerControllerApi apiInstance = new CloudJobOfCloudWorkerControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListCloudJob result = apiInstance.listCloudJobOfCloudWorker(parentId, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudJobOfCloudWorkerControllerApi#listCloudJobOfCloudWorker"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListCloudJob**](ApiResultListCloudJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudPool.md b/docs/CloudPool.md new file mode 100644 index 0000000..3efeb0c --- /dev/null +++ b/docs/CloudPool.md @@ -0,0 +1,16 @@ + +# CloudPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**childOfGlobalPool** | **Boolean** | | [optional] +**description** | **String** | Cloudscan pool description | [optional] +**isDeletable** | **Boolean** | | [optional] +**name** | **String** | Cloudscan pool name | +**path** | **String** | Cloudscan pool path | [optional] +**stats** | [**CloudPoolStats**](CloudPoolStats.md) | | [optional] +**uuid** | **String** | Cloudscan pool UUID | [optional] + + + diff --git a/docs/CloudPoolControllerApi.md b/docs/CloudPoolControllerApi.md new file mode 100644 index 0000000..4705e85 --- /dev/null +++ b/docs/CloudPoolControllerApi.md @@ -0,0 +1,292 @@ +# CloudPoolControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createCloudPool**](CloudPoolControllerApi.md#createCloudPool) | **POST** /cloudpools | create +[**deleteCloudPool**](CloudPoolControllerApi.md#deleteCloudPool) | **DELETE** /cloudpools/{uuid} | delete +[**listCloudPool**](CloudPoolControllerApi.md#listCloudPool) | **GET** /cloudpools | list +[**readCloudPool**](CloudPoolControllerApi.md#readCloudPool) | **GET** /cloudpools/{uuid} | read +[**updateCloudPool**](CloudPoolControllerApi.md#updateCloudPool) | **PUT** /cloudpools/{uuid} | update + + + +# **createCloudPool** +> ApiResultCloudPool createCloudPool(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolControllerApi apiInstance = new CloudPoolControllerApi(); +CloudPool resource = new CloudPool(); // CloudPool | resource +try { + ApiResultCloudPool result = apiInstance.createCloudPool(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolControllerApi#createCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**CloudPool**](CloudPool.md)| resource | + +### Return type + +[**ApiResultCloudPool**](ApiResultCloudPool.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteCloudPool** +> ApiResultVoid deleteCloudPool(uuid) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolControllerApi apiInstance = new CloudPoolControllerApi(); +String uuid = "uuid_example"; // String | uuid +try { + ApiResultVoid result = apiInstance.deleteCloudPool(uuid); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolControllerApi#deleteCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **String**| uuid | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listCloudPool** +> ApiResultListCloudPool listCloudPool(fields, start, limit, q, fulltextsearch, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolControllerApi apiInstance = new CloudPoolControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudPool result = apiInstance.listCloudPool(fields, start, limit, q, fulltextsearch, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolControllerApi#listCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudPool**](ApiResultListCloudPool.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readCloudPool** +> ApiResultCloudPool readCloudPool(uuid, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolControllerApi apiInstance = new CloudPoolControllerApi(); +String uuid = "uuid_example"; // String | uuid +String fields = "fields_example"; // String | Output fields +try { + ApiResultCloudPool result = apiInstance.readCloudPool(uuid, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolControllerApi#readCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **String**| uuid | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultCloudPool**](ApiResultCloudPool.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCloudPool** +> ApiResultCloudPool updateCloudPool(uuid, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolControllerApi apiInstance = new CloudPoolControllerApi(); +String uuid = "uuid_example"; // String | uuid +CloudPool resource = new CloudPool(); // CloudPool | resource +try { + ApiResultCloudPool result = apiInstance.updateCloudPool(uuid, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolControllerApi#updateCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **String**| uuid | + **resource** | [**CloudPool**](CloudPool.md)| resource | + +### Return type + +[**ApiResultCloudPool**](ApiResultCloudPool.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudPoolMapping.md b/docs/CloudPoolMapping.md new file mode 100644 index 0000000..75e9bcf --- /dev/null +++ b/docs/CloudPoolMapping.md @@ -0,0 +1,11 @@ + +# CloudPoolMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloudPool** | [**CloudPool**](CloudPool.md) | | [optional] +**projectVersionId** | **Long** | | [optional] + + + diff --git a/docs/CloudPoolMappingControllerApi.md b/docs/CloudPoolMappingControllerApi.md new file mode 100644 index 0000000..d068658 --- /dev/null +++ b/docs/CloudPoolMappingControllerApi.md @@ -0,0 +1,172 @@ +# CloudPoolMappingControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**mapByVersionIdCloudPoolMapping**](CloudPoolMappingControllerApi.md#mapByVersionIdCloudPoolMapping) | **GET** /cloudmappings/mapByVersionId | mapByVersionId +[**mapByVersionIdsCloudPoolMapping**](CloudPoolMappingControllerApi.md#mapByVersionIdsCloudPoolMapping) | **POST** /cloudmappings/mapByVersionIds | mapByVersionIds +[**mapByVersionNameCloudPoolMapping**](CloudPoolMappingControllerApi.md#mapByVersionNameCloudPoolMapping) | **GET** /cloudmappings/mapByVersionName | mapByVersionName + + + +# **mapByVersionIdCloudPoolMapping** +> ApiResultCloudPoolMapping mapByVersionIdCloudPoolMapping(projectVersionId) + +mapByVersionId + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolMappingControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolMappingControllerApi apiInstance = new CloudPoolMappingControllerApi(); +Long projectVersionId = 789L; // Long | projectVersionId +try { + ApiResultCloudPoolMapping result = apiInstance.mapByVersionIdCloudPoolMapping(projectVersionId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolMappingControllerApi#mapByVersionIdCloudPoolMapping"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectVersionId** | **Long**| projectVersionId | + +### Return type + +[**ApiResultCloudPoolMapping**](ApiResultCloudPoolMapping.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **mapByVersionIdsCloudPoolMapping** +> ApiResultListCloudPoolMapping mapByVersionIdsCloudPoolMapping(projectVersionIds) + +mapByVersionIds + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolMappingControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolMappingControllerApi apiInstance = new CloudPoolMappingControllerApi(); +List projectVersionIds = Arrays.asList(new List()); // List | projectVersionIds +try { + ApiResultListCloudPoolMapping result = apiInstance.mapByVersionIdsCloudPoolMapping(projectVersionIds); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolMappingControllerApi#mapByVersionIdsCloudPoolMapping"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectVersionIds** | **List<Long>**| projectVersionIds | + +### Return type + +[**ApiResultListCloudPoolMapping**](ApiResultListCloudPoolMapping.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **mapByVersionNameCloudPoolMapping** +> ApiResultCloudPoolMapping mapByVersionNameCloudPoolMapping(projectName, projectVersionName) + +mapByVersionName + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudPoolMappingControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudPoolMappingControllerApi apiInstance = new CloudPoolMappingControllerApi(); +String projectName = "projectName_example"; // String | projectName +String projectVersionName = "projectVersionName_example"; // String | projectVersionName +try { + ApiResultCloudPoolMapping result = apiInstance.mapByVersionNameCloudPoolMapping(projectName, projectVersionName); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudPoolMappingControllerApi#mapByVersionNameCloudPoolMapping"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectName** | **String**| projectName | + **projectVersionName** | **String**| projectVersionName | + +### Return type + +[**ApiResultCloudPoolMapping**](ApiResultCloudPoolMapping.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudPoolProjectVersionActionResponse.md b/docs/CloudPoolProjectVersionActionResponse.md new file mode 100644 index 0000000..8b2f2ae --- /dev/null +++ b/docs/CloudPoolProjectVersionActionResponse.md @@ -0,0 +1,10 @@ + +# CloudPoolProjectVersionActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List of project version ids | [optional] + + + diff --git a/docs/CloudPoolProjectVersionAssignRequest.md b/docs/CloudPoolProjectVersionAssignRequest.md new file mode 100644 index 0000000..d5d8423 --- /dev/null +++ b/docs/CloudPoolProjectVersionAssignRequest.md @@ -0,0 +1,10 @@ + +# CloudPoolProjectVersionAssignRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List of project version ids to assign to cloud pool | + + + diff --git a/docs/CloudPoolProjectVersionReplaceRequest.md b/docs/CloudPoolProjectVersionReplaceRequest.md new file mode 100644 index 0000000..beb7312 --- /dev/null +++ b/docs/CloudPoolProjectVersionReplaceRequest.md @@ -0,0 +1,10 @@ + +# CloudPoolProjectVersionReplaceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List of project version ids to replace in cloud pool | + + + diff --git a/docs/CloudPoolStats.md b/docs/CloudPoolStats.md new file mode 100644 index 0000000..426bbb9 --- /dev/null +++ b/docs/CloudPoolStats.md @@ -0,0 +1,18 @@ + +# CloudPoolStats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activeWorkerCount** | **Long** | | [optional] +**idleWorkerCount** | **Long** | | [optional] +**inactiveWorkerCount** | **Long** | | [optional] +**pendingJobCount** | **Long** | | [optional] +**processingWorkerCount** | **Long** | | [optional] +**projectVersionCount** | **Long** | | [optional] +**runningJobCount** | **Long** | | [optional] +**staleWorkerCount** | **Long** | | [optional] +**totalWorkerCount** | **Long** | | [optional] + + + diff --git a/docs/CloudPoolWorkerActionResponse.md b/docs/CloudPoolWorkerActionResponse.md new file mode 100644 index 0000000..153c742 --- /dev/null +++ b/docs/CloudPoolWorkerActionResponse.md @@ -0,0 +1,10 @@ + +# CloudPoolWorkerActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**workerUuids** | **List<String>** | Cloud scan worker uuids | [optional] + + + diff --git a/docs/CloudPoolWorkerAssignRequest.md b/docs/CloudPoolWorkerAssignRequest.md new file mode 100644 index 0000000..2ba29ad --- /dev/null +++ b/docs/CloudPoolWorkerAssignRequest.md @@ -0,0 +1,10 @@ + +# CloudPoolWorkerAssignRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**workerUuids** | **List<String>** | List of worker UUIds to assign to the cloud pool | + + + diff --git a/docs/CloudPoolWorkerDisableRequest.md b/docs/CloudPoolWorkerDisableRequest.md new file mode 100644 index 0000000..1c4ed45 --- /dev/null +++ b/docs/CloudPoolWorkerDisableRequest.md @@ -0,0 +1,10 @@ + +# CloudPoolWorkerDisableRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**workerUuids** | **List<String>** | List of worker UUIds to disable from the cloud pool | + + + diff --git a/docs/CloudPoolWorkerReplaceRequest.md b/docs/CloudPoolWorkerReplaceRequest.md new file mode 100644 index 0000000..ab8537f --- /dev/null +++ b/docs/CloudPoolWorkerReplaceRequest.md @@ -0,0 +1,10 @@ + +# CloudPoolWorkerReplaceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**workerUuids** | **List<String>** | List of worker UUIds to replace in the cloud pool | + + + diff --git a/docs/CloudScanConfig.md b/docs/CloudScanConfig.md new file mode 100644 index 0000000..2c1e82e --- /dev/null +++ b/docs/CloudScanConfig.md @@ -0,0 +1,10 @@ + +# CloudScanConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloudScanEnabled** | **Boolean** | | [optional] + + + diff --git a/docs/CloudSystemMetrics.md b/docs/CloudSystemMetrics.md new file mode 100644 index 0000000..3cd4b25 --- /dev/null +++ b/docs/CloudSystemMetrics.md @@ -0,0 +1,12 @@ + +# CloudSystemMetrics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllerDiskFree** | **Long** | Free disk space in controller's job directory [bytes] | +**controllerDiskUsed** | **Long** | Disk space used by files in controller's job directory [bytes] | +**controllerStartTime** | [**OffsetDateTime**](OffsetDateTime.md) | | + + + diff --git a/docs/CloudSystemMetricsControllerApi.md b/docs/CloudSystemMetricsControllerApi.md new file mode 100644 index 0000000..cdd7488 --- /dev/null +++ b/docs/CloudSystemMetricsControllerApi.md @@ -0,0 +1,58 @@ +# CloudSystemMetricsControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCloudSystemMetrics**](CloudSystemMetricsControllerApi.md#getCloudSystemMetrics) | **GET** /cloudsystem/metrics | get + + + +# **getCloudSystemMetrics** +> ApiResultCloudSystemMetrics getCloudSystemMetrics() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudSystemMetricsControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudSystemMetricsControllerApi apiInstance = new CloudSystemMetricsControllerApi(); +try { + ApiResultCloudSystemMetrics result = apiInstance.getCloudSystemMetrics(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudSystemMetricsControllerApi#getCloudSystemMetrics"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultCloudSystemMetrics**](ApiResultCloudSystemMetrics.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudSystemPollStatus.md b/docs/CloudSystemPollStatus.md new file mode 100644 index 0000000..c4dcdd5 --- /dev/null +++ b/docs/CloudSystemPollStatus.md @@ -0,0 +1,12 @@ + +# CloudSystemPollStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastPollSuccessful** | **Boolean** | | +**lastPollTime** | [**OffsetDateTime**](OffsetDateTime.md) | | +**lastSuccessfulPollTime** | [**OffsetDateTime**](OffsetDateTime.md) | | + + + diff --git a/docs/CloudSystemPollStatusControllerApi.md b/docs/CloudSystemPollStatusControllerApi.md new file mode 100644 index 0000000..eaf5e07 --- /dev/null +++ b/docs/CloudSystemPollStatusControllerApi.md @@ -0,0 +1,58 @@ +# CloudSystemPollStatusControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCloudSystemPollStatus**](CloudSystemPollStatusControllerApi.md#getCloudSystemPollStatus) | **GET** /cloudsystem/pollstatus | get + + + +# **getCloudSystemPollStatus** +> ApiResultCloudSystemPollStatus getCloudSystemPollStatus() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudSystemPollStatusControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudSystemPollStatusControllerApi apiInstance = new CloudSystemPollStatusControllerApi(); +try { + ApiResultCloudSystemPollStatus result = apiInstance.getCloudSystemPollStatus(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudSystemPollStatusControllerApi#getCloudSystemPollStatus"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultCloudSystemPollStatus**](ApiResultCloudSystemPollStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudSystemSettings.md b/docs/CloudSystemSettings.md new file mode 100644 index 0000000..f851080 --- /dev/null +++ b/docs/CloudSystemSettings.md @@ -0,0 +1,22 @@ + +# CloudSystemSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cleanupPeriodSeconds** | **Long** | | +**controllerMaxUploadSize** | **Long** | | +**controllerSystemUrl** | **String** | | +**isSscLockdownMode** | **Boolean** | | +**jobExpiryDelaySeconds** | **Long** | | +**poolMappingMode** | **String** | | +**smtpFromAddress** | **String** | | +**smtpHost** | **String** | | +**smtpPort** | **Integer** | | +**sscUrl** | **String** | | +**workerExpiryDelaySeconds** | **Long** | | +**workerInactiveDelaySeconds** | **Long** | | +**workerStaleDelaySeconds** | **Long** | | + + + diff --git a/docs/CloudSystemSettingsControllerApi.md b/docs/CloudSystemSettingsControllerApi.md new file mode 100644 index 0000000..13b3a01 --- /dev/null +++ b/docs/CloudSystemSettingsControllerApi.md @@ -0,0 +1,58 @@ +# CloudSystemSettingsControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCloudSystemSettings**](CloudSystemSettingsControllerApi.md#getCloudSystemSettings) | **GET** /cloudsystem/settings | get + + + +# **getCloudSystemSettings** +> ApiResultCloudSystemSettings getCloudSystemSettings() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudSystemSettingsControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudSystemSettingsControllerApi apiInstance = new CloudSystemSettingsControllerApi(); +try { + ApiResultCloudSystemSettings result = apiInstance.getCloudSystemSettings(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudSystemSettingsControllerApi#getCloudSystemSettings"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultCloudSystemSettings**](ApiResultCloudSystemSettings.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudWorker.md b/docs/CloudWorker.md new file mode 100644 index 0000000..c768327 --- /dev/null +++ b/docs/CloudWorker.md @@ -0,0 +1,26 @@ + +# CloudWorker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**availableProcessors** | **Integer** | | +**cloudPool** | [**CloudPool**](CloudPool.md) | | +**hostName** | **String** | | +**ipAddress** | **String** | | +**lastActivity** | **String** | | +**lastSeen** | [**OffsetDateTime**](OffsetDateTime.md) | | +**osArchitecture** | **String** | | +**osName** | **String** | | +**osVersion** | **String** | | +**processUuid** | **String** | | +**scaVersion** | **String** | | +**state** | **String** | | +**totalPhysicalMemory** | **Long** | | +**uuid** | **String** | | +**vmName** | **String** | | +**workerExpiryTime** | [**OffsetDateTime**](OffsetDateTime.md) | | +**workerStartTime** | [**OffsetDateTime**](OffsetDateTime.md) | | + + + diff --git a/docs/CloudWorkerControllerApi.md b/docs/CloudWorkerControllerApi.md new file mode 100644 index 0000000..476a86c --- /dev/null +++ b/docs/CloudWorkerControllerApi.md @@ -0,0 +1,128 @@ +# CloudWorkerControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listCloudWorker**](CloudWorkerControllerApi.md#listCloudWorker) | **GET** /cloudworkers | list +[**readCloudWorker**](CloudWorkerControllerApi.md#readCloudWorker) | **GET** /cloudworkers/{uuid} | read + + + +# **listCloudWorker** +> ApiResultListCloudWorker listCloudWorker(fields, start, limit, q, fulltextsearch, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerControllerApi apiInstance = new CloudWorkerControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudWorker result = apiInstance.listCloudWorker(fields, start, limit, q, fulltextsearch, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerControllerApi#listCloudWorker"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudWorker**](ApiResultListCloudWorker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readCloudWorker** +> ApiResultCloudWorker readCloudWorker(uuid, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerControllerApi apiInstance = new CloudWorkerControllerApi(); +String uuid = "uuid_example"; // String | uuid +String fields = "fields_example"; // String | Output fields +try { + ApiResultCloudWorker result = apiInstance.readCloudWorker(uuid, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerControllerApi#readCloudWorker"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **String**| uuid | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultCloudWorker**](ApiResultCloudWorker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CloudWorkerOfCloudPoolControllerApi.md b/docs/CloudWorkerOfCloudPoolControllerApi.md new file mode 100644 index 0000000..a1d2d01 --- /dev/null +++ b/docs/CloudWorkerOfCloudPoolControllerApi.md @@ -0,0 +1,294 @@ +# CloudWorkerOfCloudPoolControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignCloudWorkerOfCloudPool**](CloudWorkerOfCloudPoolControllerApi.md#assignCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/assign | assign +[**disableCloudWorkerOfCloudPool**](CloudWorkerOfCloudPoolControllerApi.md#disableCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/disable | disable +[**doActionCloudWorkerOfCloudPool**](CloudWorkerOfCloudPoolControllerApi.md#doActionCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action | doAction +[**listCloudWorkerOfCloudPool**](CloudWorkerOfCloudPoolControllerApi.md#listCloudWorkerOfCloudPool) | **GET** /cloudpools/{parentId}/workers | list +[**replaceCloudWorkerOfCloudPool**](CloudWorkerOfCloudPoolControllerApi.md#replaceCloudWorkerOfCloudPool) | **POST** /cloudpools/{parentId}/workers/action/replace | replace + + + +# **assignCloudWorkerOfCloudPool** +> ApiResultCloudPoolWorkerActionResponse assignCloudWorkerOfCloudPool(parentId, resource) + +assign + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerOfCloudPoolControllerApi apiInstance = new CloudWorkerOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +CloudPoolWorkerAssignRequest resource = new CloudPoolWorkerAssignRequest(); // CloudPoolWorkerAssignRequest | resource +try { + ApiResultCloudPoolWorkerActionResponse result = apiInstance.assignCloudWorkerOfCloudPool(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerOfCloudPoolControllerApi#assignCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **resource** | [**CloudPoolWorkerAssignRequest**](CloudPoolWorkerAssignRequest.md)| resource | + +### Return type + +[**ApiResultCloudPoolWorkerActionResponse**](ApiResultCloudPoolWorkerActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **disableCloudWorkerOfCloudPool** +> ApiResultCloudPoolWorkerActionResponse disableCloudWorkerOfCloudPool(parentId, resource) + +disable + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerOfCloudPoolControllerApi apiInstance = new CloudWorkerOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +CloudPoolWorkerDisableRequest resource = new CloudPoolWorkerDisableRequest(); // CloudPoolWorkerDisableRequest | resource +try { + ApiResultCloudPoolWorkerActionResponse result = apiInstance.disableCloudWorkerOfCloudPool(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerOfCloudPoolControllerApi#disableCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **resource** | [**CloudPoolWorkerDisableRequest**](CloudPoolWorkerDisableRequest.md)| resource | + +### Return type + +[**ApiResultCloudPoolWorkerActionResponse**](ApiResultCloudPoolWorkerActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionCloudWorkerOfCloudPool** +> ApiResultApiActionResponse doActionCloudWorkerOfCloudPool(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerOfCloudPoolControllerApi apiInstance = new CloudWorkerOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +ApiCollectionActionstring collectionAction = new ApiCollectionActionstring(); // ApiCollectionActionstring | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionCloudWorkerOfCloudPool(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerOfCloudPoolControllerApi#doActionCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **collectionAction** | [**ApiCollectionActionstring**](ApiCollectionActionstring.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listCloudWorkerOfCloudPool** +> ApiResultListCloudWorker listCloudWorkerOfCloudPool(parentId, fields, start, limit, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerOfCloudPoolControllerApi apiInstance = new CloudWorkerOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudWorker result = apiInstance.listCloudWorkerOfCloudPool(parentId, fields, start, limit, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerOfCloudPoolControllerApi#listCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudWorker**](ApiResultListCloudWorker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **replaceCloudWorkerOfCloudPool** +> ApiResultCloudPoolWorkerActionResponse replaceCloudWorkerOfCloudPool(parentId, resource) + +replace + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CloudWorkerOfCloudPoolControllerApi apiInstance = new CloudWorkerOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +CloudPoolWorkerReplaceRequest resource = new CloudPoolWorkerReplaceRequest(); // CloudPoolWorkerReplaceRequest | resource +try { + ApiResultCloudPoolWorkerActionResponse result = apiInstance.replaceCloudWorkerOfCloudPool(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CloudWorkerOfCloudPoolControllerApi#replaceCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **resource** | [**CloudPoolWorkerReplaceRequest**](CloudPoolWorkerReplaceRequest.md)| resource | + +### Return type + +[**ApiResultCloudPoolWorkerActionResponse**](ApiResultCloudPoolWorkerActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ConfigProperties.md b/docs/ConfigProperties.md new file mode 100644 index 0000000..7f5178a --- /dev/null +++ b/docs/ConfigProperties.md @@ -0,0 +1,10 @@ + +# ConfigProperties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**properties** | [**List<ConfigProperty>**](ConfigProperty.md) | Collection of configuration properties defined in the system | [optional] + + + diff --git a/docs/ConfigProperty.md b/docs/ConfigProperty.md new file mode 100644 index 0000000..f6fde07 --- /dev/null +++ b/docs/ConfigProperty.md @@ -0,0 +1,53 @@ + +# ConfigProperty + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**appliedAfterRestarting** | **Boolean** | Should the SSC server be restarted after changing value of the property to apply the changes. | [optional] +**configPropertyValueValidation** | [**ConfigPropertyValueValidation**](ConfigPropertyValueValidation.md) | Meta information about how the property's value should be validated on the client side. | [optional] +**description** | **String** | Property description. | [optional] +**group** | **String** | Parent group name the property belongs to. | [optional] +**groupSwitchEnabled** | **Boolean** | Flag is set to TRUE if property is allowed to be edited on UI. | [optional] +**name** | **String** | Configuration property unique name. | +**propertyType** | [**PropertyTypeEnum**](#PropertyTypeEnum) | Property value type. | [optional] +**protectedOption** | **Boolean** | If special permission is required to get value of this property. | [optional] +**required** | **Boolean** | Flag is set to TRUE if this property is required and always must have non empty value. | [optional] +**subGroup** | **String** | Parent subgroup name the property belongs to. | [optional] +**value** | [**ValueEnum**](#ValueEnum) | Configuration property value. | +**valuesList** | [**List<ConfigPropertyValueItem>**](ConfigPropertyValueItem.md) | List of allowed property values if property type is OPTIONLIST or DYNAMIC_OPTIONLIST. | [optional] +**version** | **Integer** | Configuration property version stored on the server. This value is used for optimistic locking of the property object to prevent concurrent changes of the property value by different users at the same time. | + + + +## Enum: PropertyTypeEnum +Name | Value +---- | ----- +BOOLEAN | "BOOLEAN" +INTEGER | "INTEGER" +STRING | "STRING" +STRINGMULTILINE | "STRINGMULTILINE" +OPTIONLIST | "OPTIONLIST" +DYNAMIC_OPTIONLIST | "DYNAMIC_OPTIONLIST" +ENCODED | "ENCODED" +ENCODEDHIDDEN | "ENCODEDHIDDEN" +EMAIL | "EMAIL" +URL | "URL" +HOSTNAME | "HOSTNAME" +MULTI_EMAIL | "MULTI_EMAIL" +DISTINGUISHED_NAME | "DISTINGUISHED_NAME" +ENCODED_DISTINGUISHED_NAME | "ENCODED_DISTINGUISHED_NAME" +DISTINGUISHED_NAMES_ | "DISTINGUISHED_NAMES;" + + + +## Enum: ValueEnum +Name | Value +---- | ----- +DEPENDS_ON_PROPERTY_TYPE_IT_CAN_BE_NUMBER | "Depends on property type. It can be number" +STRING | "string" +URL | "URL" +EMAIL_OR_VALUE_FROM_VALUES_LIST_ | "email or value from values list." + + + diff --git a/docs/ConfigPropertyValueItem.md b/docs/ConfigPropertyValueItem.md new file mode 100644 index 0000000..9ce9adb --- /dev/null +++ b/docs/ConfigPropertyValueItem.md @@ -0,0 +1,11 @@ + +# ConfigPropertyValueItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | Value display name. This string is displayed on UI in the option values list. | [optional] +**value** | **String** | Value that is sent to server if this option is selected on UI. | [optional] + + + diff --git a/docs/ConfigPropertyValueValidation.md b/docs/ConfigPropertyValueValidation.md new file mode 100644 index 0000000..5199d6e --- /dev/null +++ b/docs/ConfigPropertyValueValidation.md @@ -0,0 +1,19 @@ + +# ConfigPropertyValueValidation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**validationType** | [**ValidationTypeEnum**](#ValidationTypeEnum) | | [optional] + + + +## Enum: ValidationTypeEnum +Name | Value +---- | ----- +NOT_SET | "NOT_SET" +POSITIVE_INTEGER | "POSITIVE_INTEGER" +MIXED_VALUES | "MIXED_VALUES" + + + diff --git a/docs/ConfigurationControllerApi.md b/docs/ConfigurationControllerApi.md new file mode 100644 index 0000000..fe13dae --- /dev/null +++ b/docs/ConfigurationControllerApi.md @@ -0,0 +1,328 @@ +# ConfigurationControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getConfiguration**](ConfigurationControllerApi.md#getConfiguration) | **GET** /configuration | get +[**getFullTextIndexStatusConfiguration**](ConfigurationControllerApi.md#getFullTextIndexStatusConfiguration) | **GET** /configuration/searchIndex | getFullTextIndexStatus +[**readConfiguration**](ConfigurationControllerApi.md#readConfiguration) | **GET** /configuration/{id} | read +[**updateConfiguration**](ConfigurationControllerApi.md#updateConfiguration) | **PUT** /configuration | update +[**validateAuditAssistantConnectionConfiguration**](ConfigurationControllerApi.md#validateAuditAssistantConnectionConfiguration) | **POST** /configuration/validateAuditAssistantConnection | validateAuditAssistantConnection +[**validateReportConnectionConfiguration**](ConfigurationControllerApi.md#validateReportConnectionConfiguration) | **POST** /configuration/validateReportConnection | validateReportConnection + + + +# **getConfiguration** +> ApiResultConfigProperties getConfiguration(group) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +String group = "group_example"; // String | group +try { + ApiResultConfigProperties result = apiInstance.getConfiguration(group); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#getConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group** | **String**| group | [optional] + +### Return type + +[**ApiResultConfigProperties**](ApiResultConfigProperties.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getFullTextIndexStatusConfiguration** +> ApiResultSearchIndexStatus getFullTextIndexStatusConfiguration() + +getFullTextIndexStatus + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +try { + ApiResultSearchIndexStatus result = apiInstance.getFullTextIndexStatusConfiguration(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#getFullTextIndexStatusConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultSearchIndexStatus**](ApiResultSearchIndexStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readConfiguration** +> ApiResultConfigProperty readConfiguration(id) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +String id = "id_example"; // String | id +try { + ApiResultConfigProperty result = apiInstance.readConfiguration(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#readConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + +### Return type + +[**ApiResultConfigProperty**](ApiResultConfigProperty.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateConfiguration** +> ApiResultConfigProperties updateConfiguration(resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +ConfigProperties resource = new ConfigProperties(); // ConfigProperties | resource +try { + ApiResultConfigProperties result = apiInstance.updateConfiguration(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#updateConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ConfigProperties**](ConfigProperties.md)| resource | + +### Return type + +[**ApiResultConfigProperties**](ApiResultConfigProperties.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **validateAuditAssistantConnectionConfiguration** +> ApiResultConfigProperties validateAuditAssistantConnectionConfiguration(resource) + +validateAuditAssistantConnection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +ConfigProperties resource = new ConfigProperties(); // ConfigProperties | resource +try { + ApiResultConfigProperties result = apiInstance.validateAuditAssistantConnectionConfiguration(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#validateAuditAssistantConnectionConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ConfigProperties**](ConfigProperties.md)| resource | + +### Return type + +[**ApiResultConfigProperties**](ApiResultConfigProperties.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **validateReportConnectionConfiguration** +> ApiResultConfigProperties validateReportConnectionConfiguration(resource) + +validateReportConnection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ConfigurationControllerApi apiInstance = new ConfigurationControllerApi(); +ConfigProperties resource = new ConfigProperties(); // ConfigProperties | resource +try { + ApiResultConfigProperties result = apiInstance.validateReportConnectionConfiguration(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ConfigurationControllerApi#validateReportConnectionConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ConfigProperties**](ConfigProperties.md)| resource | + +### Return type + +[**ApiResultConfigProperties**](ApiResultConfigProperties.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CustomTag.md b/docs/CustomTag.md new file mode 100644 index 0000000..bad1941 --- /dev/null +++ b/docs/CustomTag.md @@ -0,0 +1,57 @@ + +# CustomTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customTagType** | [**CustomTagTypeEnum**](#CustomTagTypeEnum) | Custom tag type. | +**defaultValue** | **String** | Default value of the custom tag. Actual string value is presented here. | [optional] +**defaultValueIndex** | **Integer** | Index of default value of the custom tag. This is ordinal number of the item in CustomTagLookup collection. | [optional] +**deletable** | **Boolean** | Flag that says if custom tag can be deleted. Custom tag which values are currently in use cannot be deleted. | [optional] +**description** | **String** | Custom tag description. | [optional] +**extensible** | **Boolean** | Flag that says if custom tag is extensible or not. | +**guid** | **String** | Custom tag GUID. | +**hidden** | **Boolean** | Is custom tag hidden or not. | +**id** | **Long** | Custom tag id | [optional] +**inUse** | **Boolean** | Is custom tag values are selected for any issues in the system. | [optional] +**name** | **String** | Custom tag unique name. | +**objectVersion** | **Integer** | Custom tag version stored on the server. This value is used for optimistic locking of the custom tag object to prevent concurrent modification of the custom tag by different users at the same time. | +**primaryTag** | **Boolean** | If this custom tag is set as primary tag for a specific project version. This value is initialized only if custom tags for specific project version are requested. | [optional] +**restriction** | **Boolean** | Flag is set to true if special permission is required to set values of this custom tag. | [optional] +**restrictionType** | [**RestrictionTypeEnum**](#RestrictionTypeEnum) | Special permission type if restriction is set to TRUE. | [optional] +**valueList** | [**List<CustomTagLookup>**](CustomTagLookup.md) | Collection of all possible custom tag values. | [optional] +**valueType** | [**ValueTypeEnum**](#ValueTypeEnum) | Custom tag value type. | + + + +## Enum: CustomTagTypeEnum +Name | Value +---- | ----- +UNKNOWN | "UNKNOWN" +CUSTOM | "CUSTOM" +HYBRID | "HYBRID" +METAGROUP | "METAGROUP" +SYSTEM | "SYSTEM" +AUDITASSISTANT | "AUDITASSISTANT" + + + +## Enum: RestrictionTypeEnum +Name | Value +---- | ----- +NONE | "NONE" +RESTRICTED | "RESTRICTED" +READONLY | "READONLY" + + + +## Enum: ValueTypeEnum +Name | Value +---- | ----- +LIST | "LIST" +DECIMAL | "DECIMAL" +DATE | "DATE" +TEXT | "TEXT" + + + diff --git a/docs/CustomTagControllerApi.md b/docs/CustomTagControllerApi.md new file mode 100644 index 0000000..a2b8ba5 --- /dev/null +++ b/docs/CustomTagControllerApi.md @@ -0,0 +1,344 @@ +# CustomTagControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createCustomTag**](CustomTagControllerApi.md#createCustomTag) | **POST** /customTags | create +[**deleteCustomTag**](CustomTagControllerApi.md#deleteCustomTag) | **DELETE** /customTags/{id} | delete +[**listCustomTag**](CustomTagControllerApi.md#listCustomTag) | **GET** /customTags | list +[**multiDeleteCustomTag**](CustomTagControllerApi.md#multiDeleteCustomTag) | **DELETE** /customTags | multiDelete +[**readCustomTag**](CustomTagControllerApi.md#readCustomTag) | **GET** /customTags/{id} | read +[**updateCustomTag**](CustomTagControllerApi.md#updateCustomTag) | **PUT** /customTags/{id} | update + + + +# **createCustomTag** +> ApiResultCustomTag createCustomTag(data) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +CustomTag data = new CustomTag(); // CustomTag | data +try { + ApiResultCustomTag result = apiInstance.createCustomTag(data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#createCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**CustomTag**](CustomTag.md)| data | + +### Return type + +[**ApiResultCustomTag**](ApiResultCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteCustomTag** +> ApiResultVoid deleteCustomTag(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteCustomTag(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#deleteCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listCustomTag** +> ApiResultListCustomTag listCustomTag(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCustomTag result = apiInstance.listCustomTag(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#listCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCustomTag**](ApiResultListCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteCustomTag** +> ApiResultVoid multiDeleteCustomTag(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteCustomTag(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#multiDeleteCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readCustomTag** +> ApiResultCustomTag readCustomTag(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultCustomTag result = apiInstance.readCustomTag(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#readCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultCustomTag**](ApiResultCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCustomTag** +> ApiResultCustomTag updateCustomTag(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagControllerApi apiInstance = new CustomTagControllerApi(); +Long id = 789L; // Long | id +CustomTag resource = new CustomTag(); // CustomTag | resource +try { + ApiResultCustomTag result = apiInstance.updateCustomTag(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagControllerApi#updateCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**CustomTag**](CustomTag.md)| resource | + +### Return type + +[**ApiResultCustomTag**](ApiResultCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CustomTagInfo.md b/docs/CustomTagInfo.md new file mode 100644 index 0000000..5a3c335 --- /dev/null +++ b/docs/CustomTagInfo.md @@ -0,0 +1,13 @@ + +# CustomTagInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guid** | **String** | Custom tag GUID | [optional] +**id** | **Long** | Custom tag id | +**name** | **String** | Custom tag unique name | [optional] +**valueList** | [**List<CustomTagLookupInfo>**](CustomTagLookupInfo.md) | Collection of custom tag values | [optional] + + + diff --git a/docs/CustomTagLookup.md b/docs/CustomTagLookup.md new file mode 100644 index 0000000..f844c21 --- /dev/null +++ b/docs/CustomTagLookup.md @@ -0,0 +1,19 @@ + +# CustomTagLookup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consideredIssue** | **Boolean** | Flag that should be used to mark values that mean \"not an issue\" or \"false positive\". | [optional] +**customTagGuid** | **String** | GUID of the parent custom tag this value belongs to. | [optional] +**defaultValue** | **Boolean** | Flag that says if this value is default custom tag value and should be selected automatically in the values list on issue audit screen. | [optional] +**deletable** | **Boolean** | Flag that says if this value can be removed from custom tag. Value cannot be removed if it is selected for some issue in the system. | [optional] +**description** | **String** | Custom tag value description. | [optional] +**hidden** | **Boolean** | Flag that says that this value is hidden and cannot be selected in issue audit mode. | [optional] +**lookupIndex** | **Integer** | Current value index in values list. | +**lookupValue** | **String** | Plain text custom tag value. | +**relyingCustomTags** | [**List<CustomTagInfo>**](CustomTagInfo.md) | List of relying custom tags and their values this value depends on. This list should be set to automatically reflect relying custom tags values changes to this custom tag value | [optional] +**seqNumber** | **Integer** | Custom tag value sequence number. | + + + diff --git a/docs/CustomTagLookupInfo.md b/docs/CustomTagLookupInfo.md new file mode 100644 index 0000000..e9455a0 --- /dev/null +++ b/docs/CustomTagLookupInfo.md @@ -0,0 +1,11 @@ + +# CustomTagLookupInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lookupIndex** | **Integer** | Current value index in values list | +**lookupValue** | **String** | Plain text custom tag value | [optional] + + + diff --git a/docs/CustomTagOfIssueTemplateControllerApi.md b/docs/CustomTagOfIssueTemplateControllerApi.md new file mode 100644 index 0000000..48139f2 --- /dev/null +++ b/docs/CustomTagOfIssueTemplateControllerApi.md @@ -0,0 +1,72 @@ +# CustomTagOfIssueTemplateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listCustomTagOfIssueTemplate**](CustomTagOfIssueTemplateControllerApi.md#listCustomTagOfIssueTemplate) | **GET** /issueTemplates/{parentId}/customTags | list + + + +# **listCustomTagOfIssueTemplate** +> ApiResultListCustomTag listCustomTagOfIssueTemplate(parentId, fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagOfIssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagOfIssueTemplateControllerApi apiInstance = new CustomTagOfIssueTemplateControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCustomTag result = apiInstance.listCustomTagOfIssueTemplate(parentId, fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagOfIssueTemplateControllerApi#listCustomTagOfIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCustomTag**](ApiResultListCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/CustomTagOfProjectVersionControllerApi.md b/docs/CustomTagOfProjectVersionControllerApi.md new file mode 100644 index 0000000..c5b10bc --- /dev/null +++ b/docs/CustomTagOfProjectVersionControllerApi.md @@ -0,0 +1,244 @@ +# CustomTagOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createCustomTagOfProjectVersion**](CustomTagOfProjectVersionControllerApi.md#createCustomTagOfProjectVersion) | **POST** /projectVersions/{parentId}/customTags | create +[**listCustomTagOfProjectVersion**](CustomTagOfProjectVersionControllerApi.md#listCustomTagOfProjectVersion) | **GET** /projectVersions/{parentId}/customTags | list +[**updateCollectionCustomTagOfProjectVersion**](CustomTagOfProjectVersionControllerApi.md#updateCollectionCustomTagOfProjectVersion) | **PUT** /projectVersions/{parentId}/customTags | updateCollection +[**updateCustomTagOfProjectVersion**](CustomTagOfProjectVersionControllerApi.md#updateCustomTagOfProjectVersion) | **PUT** /projectVersions/{parentId}/customTags/{id} | update + + + +# **createCustomTagOfProjectVersion** +> ApiResultCustomTag createCustomTagOfProjectVersion(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +CustomTag resource = new CustomTag(); // CustomTag | resource +try { + ApiResultCustomTag result = apiInstance.createCustomTagOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#createCustomTagOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**CustomTag**](CustomTag.md)| resource | + +### Return type + +[**ApiResultCustomTag**](ApiResultCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listCustomTagOfProjectVersion** +> ApiResultListCustomTag listCustomTagOfProjectVersion(parentId, fields, start, limit, q, orderby, includeall) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +Boolean includeall = false; // Boolean | includeall +try { + ApiResultListCustomTag result = apiInstance.listCustomTagOfProjectVersion(parentId, fields, start, limit, q, orderby, includeall); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#listCustomTagOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + **includeall** | **Boolean**| includeall | [optional] [default to false] + +### Return type + +[**ApiResultListCustomTag**](ApiResultListCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionCustomTagOfProjectVersion** +> ApiResultListCustomTag updateCollectionCustomTagOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new CustomTag()); // List | data +try { + ApiResultListCustomTag result = apiInstance.updateCollectionCustomTagOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#updateCollectionCustomTagOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<CustomTag>**](CustomTag.md)| data | + +### Return type + +[**ApiResultListCustomTag**](ApiResultListCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCustomTagOfProjectVersion** +> ApiResultCustomTag updateCustomTagOfProjectVersion(parentId, id, data) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +CustomTag data = new CustomTag(); // CustomTag | data +try { + ApiResultCustomTag result = apiInstance.updateCustomTagOfProjectVersion(parentId, id, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#updateCustomTagOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **data** | [**CustomTag**](CustomTag.md)| data | + +### Return type + +[**ApiResultCustomTag**](ApiResultCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/DashboardVersion.md b/docs/DashboardVersion.md new file mode 100644 index 0000000..065461c --- /dev/null +++ b/docs/DashboardVersion.md @@ -0,0 +1,9 @@ + +# DashboardVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/docs/DashboardVersionControllerApi.md b/docs/DashboardVersionControllerApi.md new file mode 100644 index 0000000..017c55a --- /dev/null +++ b/docs/DashboardVersionControllerApi.md @@ -0,0 +1,84 @@ +# DashboardVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listDashboardVersion**](DashboardVersionControllerApi.md#listDashboardVersion) | **GET** /dashboardVersions | list + + + +# **listDashboardVersion** +> ApiResultListDashboardVersion listDashboardVersion(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DashboardVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DashboardVersionControllerApi apiInstance = new DashboardVersionControllerApi(); +String fields = "fields_example"; // String | Output fields +String orderby = "orderby_example"; // String | Fields to order by +String groupby = "groupby_example"; // String | Fields to group by +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String aggregateby = "aggregateby_example"; // String | aggregateby +String startdate = "startdate_example"; // String | startdate +String enddate = "enddate_example"; // String | enddate +String attributes = "attributes_example"; // String | attributes +String variables = "variables_example"; // String | variables +String performanceindicators = "performanceindicators_example"; // String | performanceindicators +String attributefilter = "attributefilter_example"; // String | attributefilter +try { + ApiResultListDashboardVersion result = apiInstance.listDashboardVersion(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DashboardVersionControllerApi#listDashboardVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **orderby** | **String**| Fields to order by | [optional] + **groupby** | **String**| Fields to group by | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **aggregateby** | **String**| aggregateby | [optional] + **startdate** | **String**| startdate | [optional] + **enddate** | **String**| enddate | [optional] + **attributes** | **String**| attributes | [optional] + **variables** | **String**| variables | [optional] + **performanceindicators** | **String**| performanceindicators | [optional] + **attributefilter** | **String**| attributefilter | [optional] + +### Return type + +[**ApiResultListDashboardVersion**](ApiResultListDashboardVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/DataExport.md b/docs/DataExport.md new file mode 100644 index 0000000..c769bf0 --- /dev/null +++ b/docs/DataExport.md @@ -0,0 +1,30 @@ + +# DataExport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**appVersionId** | **Long** | Application version id - required if DatasetName = \"Audit\" | [optional] +**appVersionName** | **String** | Application version name | [optional] +**datasetName** | **String** | Dataset name - e.g. \"Audit\", \"Issue Stats\" - corresponds to page from which data is exported | +**documentInfoId** | **Long** | Document Info id for file blob | [optional] +**expiration** | **Integer** | Data export file expiration in days | [optional] +**exportDate** | [**OffsetDateTime**](OffsetDateTime.md) | Export date | [optional] +**fileName** | **String** | Name of data export file | +**fileType** | **String** | File type, e.g. CSV | [optional] +**id** | **Long** | | [optional] +**note** | **String** | Note, i.e. comments or info related to data being exported | [optional] +**status** | [**StatusEnum**](#StatusEnum) | Data export status | [optional] +**userName** | **String** | User name of user who initiated the data export | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +STARTED | "EXPORT_PROCESS_STARTED" +COMPLETED | "EXPORT_PROCESS_COMPLETED" +FAILED | "EXPORT_PROCESS_FAILED" + + + diff --git a/docs/DataExportControllerApi.md b/docs/DataExportControllerApi.md new file mode 100644 index 0000000..e856cc3 --- /dev/null +++ b/docs/DataExportControllerApi.md @@ -0,0 +1,290 @@ +# DataExportControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteDataExport**](DataExportControllerApi.md#deleteDataExport) | **DELETE** /dataExports/{id} | delete +[**doActionDataExport**](DataExportControllerApi.md#doActionDataExport) | **POST** /dataExports/action | doAction +[**exportAuditToCSVForDataExport**](DataExportControllerApi.md#exportAuditToCSVForDataExport) | **POST** /dataExports/action/exportAuditToCsv | exportAuditToCSVFor +[**exportIssuesStatsToCSVForDataExport**](DataExportControllerApi.md#exportIssuesStatsToCSVForDataExport) | **POST** /dataExports/action/exportIssueStatsToCsv | exportIssuesStatsToCSVFor +[**listDataExport**](DataExportControllerApi.md#listDataExport) | **GET** /dataExports | list + + + +# **deleteDataExport** +> ApiResultVoid deleteDataExport(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DataExportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DataExportControllerApi apiInstance = new DataExportControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteDataExport(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DataExportControllerApi#deleteDataExport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionDataExport** +> ApiResultApiActionResponse doActionDataExport(collectionAction, appversionid, datasetname) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DataExportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DataExportControllerApi apiInstance = new DataExportControllerApi(); +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +String appversionid = "appversionid_example"; // String | appversionid +String datasetname = "datasetname_example"; // String | datasetname +try { + ApiResultApiActionResponse result = apiInstance.doActionDataExport(collectionAction, appversionid, datasetname); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DataExportControllerApi#doActionDataExport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + **appversionid** | **String**| appversionid | [optional] + **datasetname** | **String**| datasetname | [optional] + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **exportAuditToCSVForDataExport** +> ApiResultVoid exportAuditToCSVForDataExport(resource) + +exportAuditToCSVFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DataExportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DataExportControllerApi apiInstance = new DataExportControllerApi(); +ExportAuditToCSVRequest resource = new ExportAuditToCSVRequest(); // ExportAuditToCSVRequest | resource +try { + ApiResultVoid result = apiInstance.exportAuditToCSVForDataExport(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DataExportControllerApi#exportAuditToCSVForDataExport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ExportAuditToCSVRequest**](ExportAuditToCSVRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **exportIssuesStatsToCSVForDataExport** +> ApiResultVoid exportIssuesStatsToCSVForDataExport(resource) + +exportIssuesStatsToCSVFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DataExportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DataExportControllerApi apiInstance = new DataExportControllerApi(); +ExportIssueStatsToCSVRequest resource = new ExportIssueStatsToCSVRequest(); // ExportIssueStatsToCSVRequest | resource +try { + ApiResultVoid result = apiInstance.exportIssuesStatsToCSVForDataExport(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DataExportControllerApi#exportIssuesStatsToCSVForDataExport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ExportIssueStatsToCSVRequest**](ExportIssueStatsToCSVRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listDataExport** +> ApiResultListDataExport listDataExport(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DataExportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DataExportControllerApi apiInstance = new DataExportControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListDataExport result = apiInstance.listDataExport(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DataExportControllerApi#listDataExport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListDataExport**](ApiResultListDataExport.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/DynamicScanRequest.md b/docs/DynamicScanRequest.md new file mode 100644 index 0000000..6b19eb7 --- /dev/null +++ b/docs/DynamicScanRequest.md @@ -0,0 +1,26 @@ + +# DynamicScanRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | Unique identifier of dynamic scan request | +**lastUpdateDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date that the dynamic scan request was updated | [optional] +**objectVersion** | **Integer** | The object version of the dynamic scan request | [optional] +**parameters** | [**List<DynamicScanRequestParameter>**](DynamicScanRequestParameter.md) | Parameters that are needed for dynamic scan request | +**requestedDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date that the dynamic scan request was submitted | [optional] +**status** | [**StatusEnum**](#StatusEnum) | The status of the dynamic scan request | [optional] +**submitter** | **String** | The id of the user who submitted the dynamic scan request | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +SUBMITTED | "SUBMITTED" +PICKED_UP | "PICKED_UP" +CANCELED | "CANCELED" +COMPLETED | "COMPLETED" + + + diff --git a/docs/DynamicScanRequestOfProjectVersionControllerApi.md b/docs/DynamicScanRequestOfProjectVersionControllerApi.md new file mode 100644 index 0000000..d7cd932 --- /dev/null +++ b/docs/DynamicScanRequestOfProjectVersionControllerApi.md @@ -0,0 +1,290 @@ +# DynamicScanRequestOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancelDynamicScanRequestOfProjectVersion**](DynamicScanRequestOfProjectVersionControllerApi.md#cancelDynamicScanRequestOfProjectVersion) | **POST** /projectVersions/{parentId}/dynamicScanRequests/{id}/action | Cancel a Dynamic Scan Request +[**createDynamicScanRequestOfProjectVersion**](DynamicScanRequestOfProjectVersionControllerApi.md#createDynamicScanRequestOfProjectVersion) | **POST** /projectVersions/{parentId}/dynamicScanRequests | create +[**listDynamicScanRequestOfProjectVersion**](DynamicScanRequestOfProjectVersionControllerApi.md#listDynamicScanRequestOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequests | list +[**readDynamicScanRequestOfProjectVersion**](DynamicScanRequestOfProjectVersionControllerApi.md#readDynamicScanRequestOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequests/{id} | read +[**updateDynamicScanRequestOfProjectVersion**](DynamicScanRequestOfProjectVersionControllerApi.md#updateDynamicScanRequestOfProjectVersion) | **PUT** /projectVersions/{parentId}/dynamicScanRequests/{id} | update + + + +# **cancelDynamicScanRequestOfProjectVersion** +> ApiResultVoid cancelDynamicScanRequestOfProjectVersion(id) + +Cancel a Dynamic Scan Request + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestOfProjectVersionControllerApi apiInstance = new DynamicScanRequestOfProjectVersionControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.cancelDynamicScanRequestOfProjectVersion(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestOfProjectVersionControllerApi#cancelDynamicScanRequestOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createDynamicScanRequestOfProjectVersion** +> ApiResultDynamicScanRequest createDynamicScanRequestOfProjectVersion(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestOfProjectVersionControllerApi apiInstance = new DynamicScanRequestOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +DynamicScanRequest resource = new DynamicScanRequest(); // DynamicScanRequest | resource +try { + ApiResultDynamicScanRequest result = apiInstance.createDynamicScanRequestOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestOfProjectVersionControllerApi#createDynamicScanRequestOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**DynamicScanRequest**](DynamicScanRequest.md)| resource | + +### Return type + +[**ApiResultDynamicScanRequest**](ApiResultDynamicScanRequest.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listDynamicScanRequestOfProjectVersion** +> ApiResultListDynamicScanRequest listDynamicScanRequestOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestOfProjectVersionControllerApi apiInstance = new DynamicScanRequestOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListDynamicScanRequest result = apiInstance.listDynamicScanRequestOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestOfProjectVersionControllerApi#listDynamicScanRequestOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListDynamicScanRequest**](ApiResultListDynamicScanRequest.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readDynamicScanRequestOfProjectVersion** +> ApiResultDynamicScanRequest readDynamicScanRequestOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestOfProjectVersionControllerApi apiInstance = new DynamicScanRequestOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultDynamicScanRequest result = apiInstance.readDynamicScanRequestOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestOfProjectVersionControllerApi#readDynamicScanRequestOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultDynamicScanRequest**](ApiResultDynamicScanRequest.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateDynamicScanRequestOfProjectVersion** +> ApiResultDynamicScanRequest updateDynamicScanRequestOfProjectVersion(parentId, id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestOfProjectVersionControllerApi apiInstance = new DynamicScanRequestOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +DynamicScanRequest resource = new DynamicScanRequest(); // DynamicScanRequest | resource +try { + ApiResultDynamicScanRequest result = apiInstance.updateDynamicScanRequestOfProjectVersion(parentId, id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestOfProjectVersionControllerApi#updateDynamicScanRequestOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **resource** | [**DynamicScanRequest**](DynamicScanRequest.md)| resource | + +### Return type + +[**ApiResultDynamicScanRequest**](ApiResultDynamicScanRequest.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/DynamicScanRequestParameter.md b/docs/DynamicScanRequestParameter.md new file mode 100644 index 0000000..eb0f47b --- /dev/null +++ b/docs/DynamicScanRequestParameter.md @@ -0,0 +1,17 @@ + +# DynamicScanRequestParameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileValueDocumentInfoId** | **Long** | The file value document info id for an upload file | [optional] +**fileValueName** | **String** | The name of an uploaded file | [optional] +**id** | **Long** | The id of the parameter | [optional] +**objectVersion** | **Integer** | The objecct version of this parameter | [optional] +**parameterDefinition** | [**DynamicScanRequestParameterDefinition**](DynamicScanRequestParameterDefinition.md) | The definition for this parameter | [optional] +**value** | **String** | The value of the parameter | [optional] +**valueOptions** | [**List<DynamicScanRequestParameterOption>**](DynamicScanRequestParameterOption.md) | The name of the uploaded file | [optional] +**values** | [**List<DynamicScanRequestParameterOption>**](DynamicScanRequestParameterOption.md) | A list of possible values for this parameter | [optional] + + + diff --git a/docs/DynamicScanRequestParameterDefinition.md b/docs/DynamicScanRequestParameterDefinition.md new file mode 100644 index 0000000..9a64227 --- /dev/null +++ b/docs/DynamicScanRequestParameterDefinition.md @@ -0,0 +1,31 @@ + +# DynamicScanRequestParameterDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**guid** | **String** | Unique string identifier for this parameter definition | +**id** | **Long** | Unique id for this parameter definition | [optional] +**name** | **String** | | +**required** | **Boolean** | Set to true if required | +**sequenceNumber** | **Long** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | Attribute Definition Type from which this parameter definition is based on | + + + +## Enum: TypeEnum +Name | Value +---- | ----- +TEXT | "TEXT" +SINGLE | "SINGLE" +MULTIPLE | "MULTIPLE" +LONG_TEXT | "LONG_TEXT" +SENSITIVE_TEXT | "SENSITIVE_TEXT" +BOOLEAN | "BOOLEAN" +INTEGER | "INTEGER" +DATE | "DATE" +FILE | "FILE" + + + diff --git a/docs/DynamicScanRequestParameterOption.md b/docs/DynamicScanRequestParameterOption.md new file mode 100644 index 0000000..6eba097 --- /dev/null +++ b/docs/DynamicScanRequestParameterOption.md @@ -0,0 +1,14 @@ + +# DynamicScanRequestParameterOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**guid** | **String** | Unique string identifier for a Dynamic Scan Request Parameter Option | [optional] +**id** | **Long** | Unique ID for this parameter option | +**index** | **Integer** | Index of this option in list of options | +**name** | **String** | Name | + + + diff --git a/docs/DynamicScanRequestTemplate.md b/docs/DynamicScanRequestTemplate.md new file mode 100644 index 0000000..0906e89 --- /dev/null +++ b/docs/DynamicScanRequestTemplate.md @@ -0,0 +1,10 @@ + +# DynamicScanRequestTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parameters** | [**List<DynamicScanRequestParameter>**](DynamicScanRequestParameter.md) | Parameters that are needed for dynamic scan request | + + + diff --git a/docs/DynamicScanRequestTemplateOfProjectVersionControllerApi.md b/docs/DynamicScanRequestTemplateOfProjectVersionControllerApi.md new file mode 100644 index 0000000..b7e451b --- /dev/null +++ b/docs/DynamicScanRequestTemplateOfProjectVersionControllerApi.md @@ -0,0 +1,62 @@ +# DynamicScanRequestTemplateOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getDynamicScanRequestTemplateOfProjectVersion**](DynamicScanRequestTemplateOfProjectVersionControllerApi.md#getDynamicScanRequestTemplateOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequestTemplate | get + + + +# **getDynamicScanRequestTemplateOfProjectVersion** +> ApiResultDynamicScanRequestTemplate getDynamicScanRequestTemplateOfProjectVersion(parentId) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestTemplateOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestTemplateOfProjectVersionControllerApi apiInstance = new DynamicScanRequestTemplateOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +try { + ApiResultDynamicScanRequestTemplate result = apiInstance.getDynamicScanRequestTemplateOfProjectVersion(parentId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestTemplateOfProjectVersionControllerApi#getDynamicScanRequestTemplateOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + +### Return type + +[**ApiResultDynamicScanRequestTemplate**](ApiResultDynamicScanRequestTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/DynamicScanRequestsSummary.md b/docs/DynamicScanRequestsSummary.md new file mode 100644 index 0000000..86baa65 --- /dev/null +++ b/docs/DynamicScanRequestsSummary.md @@ -0,0 +1,15 @@ + +# DynamicScanRequestsSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canEditOrCancel** | **Boolean** | Flag that indicates whether the user may edit or cancel the dynamic scan request | [optional] +**canSubmit** | **Boolean** | Flag that indicates whether the user can submit dynamic scan requests | [optional] +**dynamicScanDisabled** | **Boolean** | Flag that indicates whether dynamic scan request is disabled | [optional] +**dynamicScanDisabledMessage** | **String** | A message indicating the reason for why dynamic scan is disabled | [optional] +**lastScanId** | **Long** | The id of the last dynamic scan request | [optional] +**lastScanSummary** | **String** | Holds information about the last dynamic scan request | [optional] + + + diff --git a/docs/DynamicScanRequestsSummaryOfProjectVersionControllerApi.md b/docs/DynamicScanRequestsSummaryOfProjectVersionControllerApi.md new file mode 100644 index 0000000..b608d73 --- /dev/null +++ b/docs/DynamicScanRequestsSummaryOfProjectVersionControllerApi.md @@ -0,0 +1,62 @@ +# DynamicScanRequestsSummaryOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getDynamicScanRequestsSummaryOfProjectVersion**](DynamicScanRequestsSummaryOfProjectVersionControllerApi.md#getDynamicScanRequestsSummaryOfProjectVersion) | **GET** /projectVersions/{parentId}/dynamicScanRequestsSummary | get + + + +# **getDynamicScanRequestsSummaryOfProjectVersion** +> ApiResultDynamicScanRequestsSummary getDynamicScanRequestsSummaryOfProjectVersion(parentId) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.DynamicScanRequestsSummaryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +DynamicScanRequestsSummaryOfProjectVersionControllerApi apiInstance = new DynamicScanRequestsSummaryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +try { + ApiResultDynamicScanRequestsSummary result = apiInstance.getDynamicScanRequestsSummaryOfProjectVersion(parentId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling DynamicScanRequestsSummaryOfProjectVersionControllerApi#getDynamicScanRequestsSummaryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + +### Return type + +[**ApiResultDynamicScanRequestsSummary**](ApiResultDynamicScanRequestsSummary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/EmbeddedReportDefinition.md b/docs/EmbeddedReportDefinition.md new file mode 100644 index 0000000..0982182 --- /dev/null +++ b/docs/EmbeddedReportDefinition.md @@ -0,0 +1,11 @@ + +# EmbeddedReportDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fieldsToNullWithExclusions** | **List<String>** | | [optional] +**reportDefinition** | [**ReportDefinition**](ReportDefinition.md) | | [optional] + + + diff --git a/docs/EmbeddedRoles.md b/docs/EmbeddedRoles.md new file mode 100644 index 0000000..604e7f0 --- /dev/null +++ b/docs/EmbeddedRoles.md @@ -0,0 +1,10 @@ + +# EmbeddedRoles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | [**List<Role>**](Role.md) | | [optional] + + + diff --git a/docs/EmbeddedScans.md b/docs/EmbeddedScans.md new file mode 100644 index 0000000..31abcd9 --- /dev/null +++ b/docs/EmbeddedScans.md @@ -0,0 +1,10 @@ + +# EmbeddedScans + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scans** | [**List<Scan>**](Scan.md) | | [optional] + + + diff --git a/docs/EngineType.md b/docs/EngineType.md new file mode 100644 index 0000000..190697b --- /dev/null +++ b/docs/EngineType.md @@ -0,0 +1,11 @@ + +# EngineType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**servedByPlugin** | **Boolean** | | [optional] + + + diff --git a/docs/EngineTypeControllerApi.md b/docs/EngineTypeControllerApi.md new file mode 100644 index 0000000..85b9292 --- /dev/null +++ b/docs/EngineTypeControllerApi.md @@ -0,0 +1,62 @@ +# EngineTypeControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listEngineType**](EngineTypeControllerApi.md#listEngineType) | **GET** /engineTypes | list + + + +# **listEngineType** +> ApiResultListEngineType listEngineType(fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.EngineTypeControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +EngineTypeControllerApi apiInstance = new EngineTypeControllerApi(); +String fields = "fields_example"; // String | Output fields +try { + ApiResultListEngineType result = apiInstance.listEngineType(fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EngineTypeControllerApi#listEngineType"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListEngineType**](ApiResultListEngineType.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/EntityStateIdentifier.md b/docs/EntityStateIdentifier.md new file mode 100644 index 0000000..a7e5d88 --- /dev/null +++ b/docs/EntityStateIdentifier.md @@ -0,0 +1,11 @@ + +# EntityStateIdentifier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | API entity identifier. | +**revision** | **Integer** | API entity revision. | + + + diff --git a/docs/EventLog.md b/docs/EventLog.md new file mode 100644 index 0000000..6bc8770 --- /dev/null +++ b/docs/EventLog.md @@ -0,0 +1,227 @@ + +# EventLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detailedNote** | **String** | | [optional] +**entityId** | **Long** | | [optional] +**eventDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**eventType** | [**EventTypeEnum**](#EventTypeEnum) | | [optional] +**id** | **Long** | | [optional] +**projectVersionId** | **Long** | | [optional] +**userName** | **String** | | [optional] + + + +## Enum: EventTypeEnum +Name | Value +---- | ----- +WEBUI_LOGIN_SUCCESS | "WEBUI_LOGIN_SUCCESS" +WEBUI_LOGIN_FAILED | "WEBUI_LOGIN_FAILED" +WEBUI_LOGOUT | "WEBUI_LOGOUT" +WS_LOGIN_SUCCESS | "WS_LOGIN_SUCCESS" +WS_LOGIN_FAILED | "WS_LOGIN_FAILED" +LOCAL_USER_CREATED | "LOCAL_USER_CREATED" +LOCAL_USER_UPDATED | "LOCAL_USER_UPDATED" +LOCAL_USER_DELETED | "LOCAL_USER_DELETED" +AGENT_CREDENTIAL_CREATED | "AGENT_CREDENTIAL_CREATED" +AGENT_CREDENTIAL_UPDATED | "AGENT_CREDENTIAL_UPDATED" +AGENT_CREDENTIAL_DELETED | "AGENT_CREDENTIAL_DELETED" +LDAP_ENTITY_CREATED | "LDAP_ENTITY_CREATED" +LDAP_ENTITY_UPDATED | "LDAP_ENTITY_UPDATED" +LDAP_ENTITY_DELETED | "LDAP_ENTITY_DELETED" +LDAP_CACHE_REFRESH_REQUESTED | "LDAP_CACHE_REFRESH_REQUESTED" +LDAP_CACHE_REFRESH_STARTED | "LDAP_CACHE_REFRESH_STARTED" +LDAP_CACHE_REFRESH_COMPLETED | "LDAP_CACHE_REFRESH_COMPLETED" +PROJECT_VERSION_CREATED | "PROJECT_VERSION_CREATED" +PROJECT_VERSION_CREATED_FROM_PREVIOUS | "PROJECT_VERSION_CREATED_FROM_PREVIOUS" +PROJECT_VERSION_UPDATED | "PROJECT_VERSION_UPDATED" +PROJECT_VERSION_DELETED | "PROJECT_VERSION_DELETED" +PROJECT_VERSION_METADATA_UPDATED | "PROJECT_VERSION_METADATA_UPDATED" +PROJECT_VERSION_ACCESS_ADDED | "PROJECT_VERSION_ACCESS_ADDED" +PROJECT_VERSION_ACCESS_REMOVED | "PROJECT_VERSION_ACCESS_REMOVED" +PROJECT_VERSION_BUG_TRACKER_UPDATED | "PROJECT_VERSION_BUG_TRACKER_UPDATED" +SCA_RESULT_PROCESSED | "SCA_RESULT_PROCESSED" +RUNTIME_RESULT_PROCESSED | "RUNTIME_RESULT_PROCESSED" +EXTERNAL_RESULT_PROCESSED | "EXTERNAL_RESULT_PROCESSED" +PTA_RESULT_PROCESSED | "PTA_RESULT_PROCESSED" +RTA_RESULT_PROCESSED | "RTA_RESULT_PROCESSED" +ARTIFACT_UPLOAD_REQUESTED | "ARTIFACT_UPLOAD_REQUESTED" +ARTIFACT_UPLOAD_STARTED | "ARTIFACT_UPLOAD_STARTED" +ARTIFACT_UPLOAD_COMPLETED | "ARTIFACT_UPLOAD_COMPLETED" +ARTIFACT_UPLOAD_FAILED | "ARTIFACT_UPLOAD_FAILED" +ARTIFACT_UPLOAD_CANCELLED | "ARTIFACT_UPLOAD_CANCELLED" +ARTIFACT_DELETE_REQUESTED | "ARTIFACT_DELETE_REQUESTED" +ARTIFACT_DELETE_STARTED | "ARTIFACT_DELETE_STARTED" +ARTIFACT_DELETE_COMPLETED | "ARTIFACT_DELETE_COMPLETED" +ARTIFACT_DELETE_FAILED | "ARTIFACT_DELETE_FAILED" +ARTIFACT_DELETE_CANCELLED | "ARTIFACT_DELETE_CANCELLED" +JOB_CANCELLED | "JOB_CANCELLED" +ARTIFACT_PURGE_REQUESTED | "ARTIFACT_PURGE_REQUESTED" +ARTIFACT_PURGE_REQUEST_STARTED | "ARTIFACT_PURGE_REQUEST_STARTED" +ARTIFACT_PURGE_COMPLETED | "ARTIFACT_PURGE_COMPLETED" +ARTIFACT_PURGE_FAILED | "ARTIFACT_PURGE_FAILED" +ARTIFACT_PURGE_REQUEST_FINISHED | "ARTIFACT_PURGE_REQUEST_FINISHED" +ARTIFACT_PURGE_CANCELLED | "ARTIFACT_PURGE_CANCELLED" +HISTORICAL_SNAPSHOT_COLLECTION_STARTED | "HISTORICAL_SNAPSHOT_COLLECTION_STARTED" +HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED | "HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED" +HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED | "HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED" +HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES | "HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES" +AUDIT_PERFORMED | "AUDIT_PERFORMED" +ARTIFACT_UPLOAD_REQUIRES_AUTH | "ARTIFACT_UPLOAD_REQUIRES_AUTH" +SOURCE_CODE_UPLOADED | "SOURCE_CODE_UPLOADED" +FILTERSET_FOLDER_REFRESH_REQUESTED | "FILTERSET_FOLDER_REFRESH_REQUESTED" +FILTERSET_FOLDER_REFRESH_COMPLETED | "FILTERSET_FOLDER_REFRESH_COMPLETED" +FILTERSET_FOLDER_REFRESH_FAILED | "FILTERSET_FOLDER_REFRESH_FAILED" +DYNAMIC_SCAN_CREATED | "DYNAMIC_SCAN_CREATED" +DYNAMIC_SCAN_EDITED | "DYNAMIC_SCAN_EDITED" +DYNAMIC_SCAN_CANCELED | "DYNAMIC_SCAN_CANCELED" +DYNAMIC_SCAN_COMPLETED | "DYNAMIC_SCAN_COMPLETED" +DYNAMIC_SCAN_PICKED_UP | "DYNAMIC_SCAN_PICKED_UP" +BATCH_BUG_FILING_REQUESTED | "BATCH_BUG_FILING_REQUESTED" +BATCH_BUG_FILING_REQUEST_FAILED | "BATCH_BUG_FILING_REQUEST_FAILED" +BATCH_BUG_FILING_STARTED | "BATCH_BUG_FILING_STARTED" +BATCH_BUG_FILING_ENDED | "BATCH_BUG_FILING_ENDED" +BATCH_BUG_FILING_FAILED | "BATCH_BUG_FILING_FAILED" +BUG_FILED | "BUG_FILED" +BUG_FAILED_TO_FILE | "BUG_FAILED_TO_FILE" +BUG_STATE_MANAGEMENT_STARTED | "BUG_STATE_MANAGEMENT_STARTED" +BUG_STATE_MANAGEMENT_ENDED | "BUG_STATE_MANAGEMENT_ENDED" +BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS | "BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS" +BUG_UPDATED | "BUG_UPDATED" +BUG_FAILED_TO_UPDATE | "BUG_FAILED_TO_UPDATE" +COMMENT_ADDED_TO_ISSUE | "COMMENT_ADDED_TO_ISSUE" +AUDIT_ASSISTANT_ISSUES_SUBMITTED | "AUDIT_ASSISTANT_ISSUES_SUBMITTED" +AUDIT_ASSISTANT_ISSUES_RETRIEVED | "AUDIT_ASSISTANT_ISSUES_RETRIEVED" +AUDIT_ASSISTANT_FPR_UPLOAD_STARTED | "AUDIT_ASSISTANT_FPR_UPLOAD_STARTED" +AUDIT_ASSISTANT_TRAINING_SENT | "AUDIT_ASSISTANT_TRAINING_SENT" +AUDIT_ASSISTANT_TEST_CONNECTION_FAILED | "AUDIT_ASSISTANT_TEST_CONNECTION_FAILED" +AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED | "AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED" +AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED | "AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED" +AUDIT_ASSISTANT_FPR_UPLOAD_FAILED | "AUDIT_ASSISTANT_FPR_UPLOAD_FAILED" +AUDIT_ASSISTANT_TRAINING_SENT_FAILED | "AUDIT_ASSISTANT_TRAINING_SENT_FAILED" +REPORT_GENERATION_REQUESTED | "REPORT_GENERATION_REQUESTED" +REPORT_GENERATION_COMPLETED | "REPORT_GENERATION_COMPLETED" +REPORT_GENERATION_FAILED | "REPORT_GENERATION_FAILED" +REPORT_GENERATION_CANCELLED | "REPORT_GENERATION_CANCELLED" +REPORT_DELETED | "REPORT_DELETED" +RULEPACK_SERVER_UPDATE | "RULEPACK_SERVER_UPDATE" +RULEPACK_USER_UPLOAD | "RULEPACK_USER_UPLOAD" +RULEPACK_DELETED | "RULEPACK_DELETED" +RULEPACK_DOWNLOAD | "RULEPACK_DOWNLOAD" +RULEPACK_CLIENT_UPDATE | "RULEPACK_CLIENT_UPDATE" +DOCUMENT_ARTIFACT_CREATED | "DOCUMENT_ARTIFACT_CREATED" +DOCUMENT_ARTIFACT_UPDATED | "DOCUMENT_ARTIFACT_UPDATED" +DOCUMENT_ARTIFACT_DELETED | "DOCUMENT_ARTIFACT_DELETED" +TASK_INSTANCE_CREATED | "TASK_INSTANCE_CREATED" +TASK_INSTANCE_UPDATED | "TASK_INSTANCE_UPDATED" +TASK_INSTANCE_DELETED | "TASK_INSTANCE_DELETED" +TASK_INSTANCE_SIGNOFF_UPDATED | "TASK_INSTANCE_SIGNOFF_UPDATED" +ACTIVITY_INSTANCE_SIGNOFF_UPDATED | "ACTIVITY_INSTANCE_SIGNOFF_UPDATED" +REQUIREMENT_INSTANCE_SIGNOFF_UPDATED | "REQUIREMENT_INSTANCE_SIGNOFF_UPDATED" +REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED | "REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED" +TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF | "REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF" +REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF | "REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF" +SDL_COMMENT_CREATED | "SDL_COMMENT_CREATED" +PROJECT_PERSONA_ASSIGNMENT_UPDATED | "PROJECT_PERSONA_ASSIGNMENT_UPDATED" +PERSONA_ASSIGNMENT_UPDATED | "PERSONA_ASSIGNMENT_UPDATED" +WORK_OWNER_UPDATED | "WORK_OWNER_UPDATED" +DUE_DATE_UPDATED | "DUE_DATE_UPDATED" +SESSION_TIMEOUT | "SESSION_TIMEOUT" +REQ_TEMPLATE_CREATED | "REQ_TEMPLATE_CREATED" +REQ_TEMPLATE_UPDATED | "REQ_TEMPLATE_UPDATED" +ACTIVITY_CREATED | "ACTIVITY_CREATED" +ACTIVITY_UPDATED | "ACTIVITY_UPDATED" +VARIABLE_CREATED | "VARIABLE_CREATED" +VARIABLE_UPDATED | "VARIABLE_UPDATED" +VARIABLE_DELETED | "VARIABLE_DELETED" +MEASUREMENT_AGENT_CREATED | "MEASUREMENT_AGENT_CREATED" +MEASUREMENT_AGENT_UPDATED | "MEASUREMENT_AGENT_UPDATED" +MEASUREMENT_AGENT_DELETED | "MEASUREMENT_AGENT_DELETED" +DOCUMENT_DEF_CREATED | "DOCUMENT_DEF_CREATED" +DOCUMENT_DEF_UPDATED | "DOCUMENT_DEF_UPDATED" +PROJECT_TEMPLATE_CREATED | "PROJECT_TEMPLATE_CREATED" +PROJECT_TEMPLATE_UPDATED | "PROJECT_TEMPLATE_UPDATED" +PROJECT_TEMPLATE_DELETED | "PROJECT_TEMPLATE_DELETED" +ASSIGNMENT_RULES_UPDATED | "ASSIGNMENT_RULES_UPDATED" +PERSONA_CREATED | "PERSONA_CREATED" +PERSONA_UPDATED | "PERSONA_UPDATED" +PERSONA_DELETED | "PERSONA_DELETED" +ATTR_CREATED | "ATTR_CREATED" +ATTR_UPDATED | "ATTR_UPDATED" +ATTR_DELETED | "ATTR_DELETED" +PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT | "PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT" +PROJECT_VERSION_PRIMARY_TAG_UPDATE | "PROJECT_VERSION_PRIMARY_TAG_UPDATE" +REPORT_DEFINITION_CREATED | "REPORT_DEFINITION_CREATED" +REPORT_DEFINITION_UPDATED | "REPORT_DEFINITION_UPDATED" +REPORT_DEFINITION_DELETED | "REPORT_DEFINITION_DELETED" +REPORT_LIBRARY_CREATED | "REPORT_LIBRARY_CREATED" +REPORT_LIBRARY_UPDATED | "REPORT_LIBRARY_UPDATED" +REPORT_LIBRARY_DELETED | "REPORT_LIBRARY_DELETED" +RUNTIME_HOST_CONNECTED | "RUNTIME_HOST_CONNECTED" +RUNTIME_HOST_DISCONNECTED | "RUNTIME_HOST_DISCONNECTED" +RUNTIME_HOST_CREATED | "RUNTIME_HOST_CREATED" +RUNTIME_HOST_DELETED | "RUNTIME_HOST_DELETED" +RUNTIME_HOST_DISCOVERED | "RUNTIME_HOST_DISCOVERED" +RUNTIME_HOST_ENABLED | "RUNTIME_HOST_ENABLED" +RUNTIME_HOST_DISABLED | "RUNTIME_HOST_DISABLED" +RUNTIME_HOST_AUTH_RESET | "RUNTIME_HOST_AUTH_RESET" +ACCEPT_NEW_HOSTS_ENABLED | "ACCEPT_NEW_HOSTS_ENABLED" +ACCEPT_NEW_HOSTS_DISABLED | "ACCEPT_NEW_HOSTS_DISABLED" +DISABLED_HOST_CONNECTION | "DISABLED_HOST_CONNECTION" +RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED | "RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED" +REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED | "REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED" +RUNTIME_CONFIGURATION_CREATED | "RUNTIME_CONFIGURATION_CREATED" +RUNTIME_CONFIGURATION_UPDATED | "RUNTIME_CONFIGURATION_UPDATED" +RUNTIME_CONFIGURATION_DELETED | "RUNTIME_CONFIGURATION_DELETED" +RUNTIME_CONFIGURATION_TEMPLATE_UPDATED | "RUNTIME_CONFIGURATION_TEMPLATE_UPDATED" +RUNTIME_EH_CREATED | "RUNTIME_EH_CREATED" +RUNTIME_EH_UPDATED | "RUNTIME_EH_UPDATED" +RUNTIME_EH_DELETED | "RUNTIME_EH_DELETED" +RUNTIME_SETTINGS_UPDATED | "RUNTIME_SETTINGS_UPDATED" +RUNTIME_RULEPACK_CONFIG_UPDATED | "RUNTIME_RULEPACK_CONFIG_UPDATED" +RUNTIME_EVENT_RECEIVED | "RUNTIME_EVENT_RECEIVED" +RUNTIME_ALERT_RECEIVED | "RUNTIME_ALERT_RECEIVED" +FEDERATION_CREATED | "FEDERATION_CREATED" +FEDERATION_UPDATED | "FEDERATION_UPDATED" +FEDERATION_DELETED | "FEDERATION_DELETED" +RTAPP_CREATED | "RTAPP_CREATED" +RTAPP_UPDATED | "RTAPP_UPDATED" +RTAPP_DELETED | "RTAPP_DELETED" +RTAPP_ACCESS_ADDED | "RTAPP_ACCESS_ADDED" +RTAPP_ACCESS_REMOVED | "RTAPP_ACCESS_REMOVED" +USERROLE_CREATED | "USERROLE_CREATED" +USERROLE_UPDATED | "USERROLE_UPDATED" +USERROLE_DELETED | "USERROLE_DELETED" +CLOUD_SCAN_POLLED | "CLOUD_SCAN_POLLED" +CLOUD_POOL_CREATED | "CLOUD_POOL_CREATED" +CLOUD_POOL_UPDATED | "CLOUD_POOL_UPDATED" +CLOUD_POOL_DELETED | "CLOUD_POOL_DELETED" +CLOUD_POOL_AVS_UPDATED | "CLOUD_POOL_AVS_UPDATED" +CLOUD_POOL_SENSORS_UPDATED | "CLOUD_POOL_SENSORS_UPDATED" +CLOUD_JOB_CANCELED | "CLOUD_JOB_CANCELED" +CLOUD_JOB_FPR_DOWNLOADED | "CLOUD_JOB_FPR_DOWNLOADED" +CLOUD_JOB_LOG_DOWNLOADED | "CLOUD_JOB_LOG_DOWNLOADED" +INDEX_MAINTENANCE_STARTED | "INDEX_MAINTENANCE_STARTED" +INDEX_MAINTENANCE_COMPLETED | "INDEX_MAINTENANCE_COMPLETED" +FULL_REINDEX_STARTED | "FULL_REINDEX_STARTED" +FULL_REINDEX_COMPLETED | "FULL_REINDEX_COMPLETED" +INDEX_NEW_ISSUES_STARTED | "INDEX_NEW_ISSUES_STARTED" +INDEX_NEW_ISSUES_COMPLETED | "INDEX_NEW_ISSUES_COMPLETED" +SSC_CONFIGURATION_UPDATED | "SSC_CONFIGURATION_UPDATED" +LDAP_CONFIG_CREATED | "LDAP_CONFIG_CREATED" +LDAP_CONFIG_UPDATED | "LDAP_CONFIG_UPDATED" +LDAP_CONFIG_DELETED | "LDAP_CONFIG_DELETED" +LDAP_CONFIG_DEFAULT_CHANGED | "LDAP_CONFIG_DEFAULT_CHANGED" +SEED_BUNDLE_UPLOAD_COMPLETED | "SEED_BUNDLE_UPLOAD_COMPLETED" +SEED_BUNDLE_UPLOAD_FAILED | "SEED_BUNDLE_UPLOAD_FAILED" +SEED_BUNDLE_COMPLETED | "SEED_BUNDLE_COMPLETED" +SEED_BUNDLE_FAILED | "SEED_BUNDLE_FAILED" + + + diff --git a/docs/EventLogControllerApi.md b/docs/EventLogControllerApi.md new file mode 100644 index 0000000..b2f47c1 --- /dev/null +++ b/docs/EventLogControllerApi.md @@ -0,0 +1,70 @@ +# EventLogControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listEventLog**](EventLogControllerApi.md#listEventLog) | **GET** /events | list + + + +# **listEventLog** +> ApiResultListEventLog listEventLog(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.EventLogControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +EventLogControllerApi apiInstance = new EventLogControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListEventLog result = apiInstance.listEventLog(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EventLogControllerApi#listEventLog"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListEventLog**](ApiResultListEventLog.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ExportAuditToCSVRequest.md b/docs/ExportAuditToCSVRequest.md new file mode 100644 index 0000000..cd218d2 --- /dev/null +++ b/docs/ExportAuditToCSVRequest.md @@ -0,0 +1,28 @@ + +# ExportAuditToCSVRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregateBy** | **String** | Aggregateby | [optional] +**collapseIssues** | **Boolean** | Will collapse issues in exported files | [optional] +**datasetName** | **String** | Dataset name (Audit) | +**fileName** | **String** | File name to save | +**filter** | **String** | Filter | [optional] +**filterBy** | **String** | Filterby | [optional] +**filterSet** | **String** | Filterset | +**includeCommentsInHistory** | **Boolean** | Will include comments in history | [optional] +**includeHidden** | **Boolean** | Will include hidden issues | [optional] +**includeRemoved** | **Boolean** | Will include removed issues | [optional] +**includeSuppressed** | **Boolean** | Will include suppressed issues | [optional] +**issueSearch** | **String** | Search issue query | [optional] +**limit** | **Integer** | Limit | [optional] +**note** | **String** | Note | [optional] +**orderBy** | **String** | Orderby | +**projectVersionId** | **Long** | ProjectVersion id to export audit data | +**restrictToUsersIssues** | **Boolean** | will restrict to user issues | [optional] +**start** | **Integer** | Start | [optional] +**useShortFileNames** | **Boolean** | Will use short file names | [optional] + + + diff --git a/docs/ExportIssueStatsToCSVRequest.md b/docs/ExportIssueStatsToCSVRequest.md new file mode 100644 index 0000000..24f8712 --- /dev/null +++ b/docs/ExportIssueStatsToCSVRequest.md @@ -0,0 +1,14 @@ + +# ExportIssueStatsToCSVRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**datasetName** | **String** | Dataset name (Issue Stat) | +**fileName** | **String** | Csv file name | +**limit** | **Integer** | Limit | [optional] +**note** | **String** | Note for csv export | [optional] +**start** | **Integer** | Start | [optional] + + + diff --git a/docs/ExternalBugInfo.md b/docs/ExternalBugInfo.md new file mode 100644 index 0000000..8dad9ea --- /dev/null +++ b/docs/ExternalBugInfo.md @@ -0,0 +1,14 @@ + +# ExternalBugInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**externalBugDeepLink** | **String** | Link to a bug the user can navigate to by clicking the link | +**externalBugId** | **String** | ID of the bug | +**fileBugForSelectAll** | **Boolean** | True if user wants to file a bug for all selected issues in UI | +**issueCount** | **Long** | Count of issues for which a bug is filed | +**issueInstanceIds** | **List<String>** | List of Issue Instance IDs | + + + diff --git a/docs/Feature.md b/docs/Feature.md new file mode 100644 index 0000000..d25c1b5 --- /dev/null +++ b/docs/Feature.md @@ -0,0 +1,12 @@ + +# Feature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | Feature description | +**id** | **String** | Feature id | +**name** | **String** | Feature name | + + + diff --git a/docs/FeatureControllerApi.md b/docs/FeatureControllerApi.md new file mode 100644 index 0000000..3d6aec1 --- /dev/null +++ b/docs/FeatureControllerApi.md @@ -0,0 +1,128 @@ +# FeatureControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listFeature**](FeatureControllerApi.md#listFeature) | **GET** /features | list +[**readFeature**](FeatureControllerApi.md#readFeature) | **GET** /features/{id} | read + + + +# **listFeature** +> ApiResultListFeature listFeature(fields, start, limit, q, orderby, useStableApi) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FeatureControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FeatureControllerApi apiInstance = new FeatureControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +Boolean useStableApi = true; // Boolean | use_stable_api +try { + ApiResultListFeature result = apiInstance.listFeature(fields, start, limit, q, orderby, useStableApi); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FeatureControllerApi#listFeature"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + **useStableApi** | **Boolean**| use_stable_api | [optional] [default to true] + +### Return type + +[**ApiResultListFeature**](ApiResultListFeature.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readFeature** +> ApiResultFeature readFeature(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FeatureControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FeatureControllerApi apiInstance = new FeatureControllerApi(); +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultFeature result = apiInstance.readFeature(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FeatureControllerApi#readFeature"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultFeature**](ApiResultFeature.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/FileToken.md b/docs/FileToken.md new file mode 100644 index 0000000..13213cf --- /dev/null +++ b/docs/FileToken.md @@ -0,0 +1,21 @@ + +# FileToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileTokenType** | [**FileTokenTypeEnum**](#FileTokenTypeEnum) | Type of single-use file token | +**token** | **String** | Value of single-use token to be used as the 'mat' URL parameter during a file operation | [optional] + + + +## Enum: FileTokenTypeEnum +Name | Value +---- | ----- +UPLOAD | "UPLOAD" +DOWNLOAD | "DOWNLOAD" +PREVIEW_FILE | "PREVIEW_FILE" +REPORT_FILE | "REPORT_FILE" + + + diff --git a/docs/FileTokenControllerApi.md b/docs/FileTokenControllerApi.md new file mode 100644 index 0000000..9d3b237 --- /dev/null +++ b/docs/FileTokenControllerApi.md @@ -0,0 +1,112 @@ +# FileTokenControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFileToken**](FileTokenControllerApi.md#createFileToken) | **POST** /fileTokens | Create single-use file transfer token +[**multiDeleteFileToken**](FileTokenControllerApi.md#multiDeleteFileToken) | **DELETE** /fileTokens | Call this operation after every file upload activity + + + +# **createFileToken** +> ApiResultFileToken createFileToken(resource) + +Create single-use file transfer token + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FileTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FileTokenControllerApi apiInstance = new FileTokenControllerApi(); +FileToken resource = new FileToken(); // FileToken | resource +try { + ApiResultFileToken result = apiInstance.createFileToken(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FileTokenControllerApi#createFileToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**FileToken**](FileToken.md)| resource | + +### Return type + +[**ApiResultFileToken**](ApiResultFileToken.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteFileToken** +> ApiResultVoid multiDeleteFileToken() + +Call this operation after every file upload activity + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FileTokenControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FileTokenControllerApi apiInstance = new FileTokenControllerApi(); +try { + ApiResultVoid result = apiInstance.multiDeleteFileToken(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FileTokenControllerApi#multiDeleteFileToken"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/FilterSet.md b/docs/FilterSet.md new file mode 100644 index 0000000..1c0787b --- /dev/null +++ b/docs/FilterSet.md @@ -0,0 +1,14 @@ + +# FilterSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**defaultFilterSet** | **Boolean** | whether this filter set is the default within its issue template | +**description** | **String** | | +**folders** | [**List<FolderDto>**](FolderDto.md) | List of folders defined in filter set | +**guid** | **String** | GUID of filter set | +**title** | **String** | name of filter set | + + + diff --git a/docs/FilterSetOfProjectVersionControllerApi.md b/docs/FilterSetOfProjectVersionControllerApi.md new file mode 100644 index 0000000..e53f4a0 --- /dev/null +++ b/docs/FilterSetOfProjectVersionControllerApi.md @@ -0,0 +1,68 @@ +# FilterSetOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listFilterSetOfProjectVersion**](FilterSetOfProjectVersionControllerApi.md#listFilterSetOfProjectVersion) | **GET** /projectVersions/{parentId}/filterSets | list + + + +# **listFilterSetOfProjectVersion** +> ApiResultListFilterSet listFilterSetOfProjectVersion(parentId, start, limit, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FilterSetOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FilterSetOfProjectVersionControllerApi apiInstance = new FilterSetOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String fields = "fields_example"; // String | Output fields +try { + ApiResultListFilterSet result = apiInstance.listFilterSetOfProjectVersion(parentId, start, limit, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FilterSetOfProjectVersionControllerApi#listFilterSetOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListFilterSet**](ApiResultListFilterSet.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Folder.md b/docs/Folder.md new file mode 100644 index 0000000..84f6d85 --- /dev/null +++ b/docs/Folder.md @@ -0,0 +1,17 @@ + +# Folder + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **String** | Color that should be used to represent folder on UI | [optional] +**description** | **String** | Folder description | [optional] +**editable** | **Boolean** | Is folder editable | [optional] +**guid** | **String** | Folder GUID. Guid is unique across all the folders defined for a project version | [optional] +**id** | **Long** | Folder id | [optional] +**name** | **String** | Folder name | [optional] +**orderIndex** | **Integer** | Numeric value used for ordering folder from the most important to the least important | [optional] +**projectVersionId** | **Long** | ID of the project version for which folder is defined | [optional] + + + diff --git a/docs/FolderControllerApi.md b/docs/FolderControllerApi.md new file mode 100644 index 0000000..a75c117 --- /dev/null +++ b/docs/FolderControllerApi.md @@ -0,0 +1,58 @@ +# FolderControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getFolder**](FolderControllerApi.md#getFolder) | **GET** /folders | get + + + +# **getFolder** +> ApiResultArraystring getFolder() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FolderControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FolderControllerApi apiInstance = new FolderControllerApi(); +try { + ApiResultArraystring result = apiInstance.getFolder(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FolderControllerApi#getFolder"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultArraystring**](ApiResultArraystring.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/FolderDto.md b/docs/FolderDto.md new file mode 100644 index 0000000..699ea96 --- /dev/null +++ b/docs/FolderDto.md @@ -0,0 +1,13 @@ + +# FolderDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **String** | Folder color. Folder will be marked by this color on UI | [optional] +**guid** | **String** | Folder GUID. | [optional] +**id** | **Long** | Unique identifier of the folder. | [optional] +**name** | **String** | Folder unique name. | [optional] + + + diff --git a/docs/FolderOfProjectVersionControllerApi.md b/docs/FolderOfProjectVersionControllerApi.md new file mode 100644 index 0000000..cd292d5 --- /dev/null +++ b/docs/FolderOfProjectVersionControllerApi.md @@ -0,0 +1,118 @@ +# FolderOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listFolderOfProjectVersion**](FolderOfProjectVersionControllerApi.md#listFolderOfProjectVersion) | **GET** /projectVersions/{parentId}/folders | list +[**readFolderOfProjectVersion**](FolderOfProjectVersionControllerApi.md#readFolderOfProjectVersion) | **GET** /projectVersions/{parentId}/folders/{id} | read + + + +# **listFolderOfProjectVersion** +> ApiResultListFolder listFolderOfProjectVersion(parentId) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FolderOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FolderOfProjectVersionControllerApi apiInstance = new FolderOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +try { + ApiResultListFolder result = apiInstance.listFolderOfProjectVersion(parentId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FolderOfProjectVersionControllerApi#listFolderOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + +### Return type + +[**ApiResultListFolder**](ApiResultListFolder.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readFolderOfProjectVersion** +> ApiResultFolder readFolderOfProjectVersion(parentId, id) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.FolderOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +FolderOfProjectVersionControllerApi apiInstance = new FolderOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +try { + ApiResultFolder result = apiInstance.readFolderOfProjectVersion(parentId, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling FolderOfProjectVersionControllerApi#readFolderOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + +### Return type + +[**ApiResultFolder**](ApiResultFolder.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/FortifyJob.md b/docs/FortifyJob.md new file mode 100644 index 0000000..f718dca --- /dev/null +++ b/docs/FortifyJob.md @@ -0,0 +1,13 @@ + +# FortifyJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**invokingUserName** | **String** | SSC username which initiated the job | +**jobState** | **Integer** | | +**jobType** | **Integer** | | + + + diff --git a/docs/GroupOfAuthEntityControllerApi.md b/docs/GroupOfAuthEntityControllerApi.md new file mode 100644 index 0000000..53fe9f7 --- /dev/null +++ b/docs/GroupOfAuthEntityControllerApi.md @@ -0,0 +1,72 @@ +# GroupOfAuthEntityControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listGroupOfAuthEntity**](GroupOfAuthEntityControllerApi.md#listGroupOfAuthEntity) | **GET** /authEntities/{parentId}/groups | list + + + +# **listGroupOfAuthEntity** +> ApiResultListAuthenticationEntity listGroupOfAuthEntity(parentId, fields, start, limit, q, embed) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.GroupOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +GroupOfAuthEntityControllerApi apiInstance = new GroupOfAuthEntityControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultListAuthenticationEntity result = apiInstance.listGroupOfAuthEntity(parentId, fields, start, limit, q, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GroupOfAuthEntityControllerApi#listGroupOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultListAuthenticationEntity**](ApiResultListAuthenticationEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IIDMigration.md b/docs/IIDMigration.md new file mode 100644 index 0000000..d1b2203 --- /dev/null +++ b/docs/IIDMigration.md @@ -0,0 +1,43 @@ + +# IIDMigration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifactId** | **Long** | | [optional] +**id** | **Long** | IID migration id | [optional] +**mappings** | [**List<IidMapping>**](IidMapping.md) | | [optional] +**processingDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**projectVersionId** | **Long** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] + + + +## Enum: StatusEnum +Name | Value +---- | ----- +NONE | "NONE" +SCHED_PROCESSING | "SCHED_PROCESSING" +PROCESSING | "PROCESSING" +PROCESS_COMPLETE | "PROCESS_COMPLETE" +ERROR_PROCESSING | "ERROR_PROCESSING" +REQUIRE_AUTH | "REQUIRE_AUTH" +DELETING | "DELETING" +ERROR_DELETING | "ERROR_DELETING" +DELETED | "DELETED" +PURGING | "PURGING" +PURGED | "PURGED" +ERROR_PURGING | "ERROR_PURGING" +DISPATCH_ANALYSIS | "DISPATCH_ANALYSIS" +DISPATCH_REAUDIT | "DISPATCH_REAUDIT" +ERROR_DISPATCH | "ERROR_DISPATCH" +QUEUED_ANALYSIS | "QUEUED_ANALYSIS" +REQUEUED_ANALYSIS | "REQUEUED_ANALYSIS" +ANALYZING | "ANALYZING" +ANALYSIS_COMPLETE | "ANALYSIS_COMPLETE" +ERROR_ANALYZING | "ERROR_ANALYZING" +UNKNOWN | "UNKNOWN" +AUDIT_FAILED | "AUDIT_FAILED" + + + diff --git a/docs/IidMapping.md b/docs/IidMapping.md new file mode 100644 index 0000000..cdd8f58 --- /dev/null +++ b/docs/IidMapping.md @@ -0,0 +1,11 @@ + +# IidMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fromIid** | **String** | | [optional] +**toIid** | **String** | | [optional] + + + diff --git a/docs/IidMigrationControllerApi.md b/docs/IidMigrationControllerApi.md new file mode 100644 index 0000000..6017b8c --- /dev/null +++ b/docs/IidMigrationControllerApi.md @@ -0,0 +1,64 @@ +# IidMigrationControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**readIidMigration**](IidMigrationControllerApi.md#readIidMigration) | **GET** /iidMigrations/{id} | read + + + +# **readIidMigration** +> ApiResultIIDMigration readIidMigration(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IidMigrationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IidMigrationControllerApi apiInstance = new IidMigrationControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultIIDMigration result = apiInstance.readIidMigration(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IidMigrationControllerApi#readIidMigration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIIDMigration**](ApiResultIIDMigration.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IidMigrationOfProjectVersionControllerApi.md b/docs/IidMigrationOfProjectVersionControllerApi.md new file mode 100644 index 0000000..435edb0 --- /dev/null +++ b/docs/IidMigrationOfProjectVersionControllerApi.md @@ -0,0 +1,120 @@ +# IidMigrationOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createIidMigrationOfProjectVersion**](IidMigrationOfProjectVersionControllerApi.md#createIidMigrationOfProjectVersion) | **POST** /projectVersions/{parentId}/iidMigrations | create +[**listIidMigrationOfProjectVersion**](IidMigrationOfProjectVersionControllerApi.md#listIidMigrationOfProjectVersion) | **GET** /projectVersions/{parentId}/iidMigrations | list + + + +# **createIidMigrationOfProjectVersion** +> ApiResultIIDMigration createIidMigrationOfProjectVersion(parentId, data) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IidMigrationOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IidMigrationOfProjectVersionControllerApi apiInstance = new IidMigrationOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IIDMigration data = new IIDMigration(); // IIDMigration | data +try { + ApiResultIIDMigration result = apiInstance.createIidMigrationOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IidMigrationOfProjectVersionControllerApi#createIidMigrationOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**IIDMigration**](IIDMigration.md)| data | + +### Return type + +[**ApiResultIIDMigration**](ApiResultIIDMigration.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listIidMigrationOfProjectVersion** +> ApiResultListIIDMigration listIidMigrationOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IidMigrationOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IidMigrationOfProjectVersionControllerApi apiInstance = new IidMigrationOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListIIDMigration result = apiInstance.listIidMigrationOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IidMigrationOfProjectVersionControllerApi#listIidMigrationOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListIIDMigration**](ApiResultListIIDMigration.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/InputReportParameter.md b/docs/InputReportParameter.md new file mode 100644 index 0000000..296ec71 --- /dev/null +++ b/docs/InputReportParameter.md @@ -0,0 +1,31 @@ + +# InputReportParameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identifier** | **String** | | +**name** | **String** | | +**paramValue** | **Object** | Value of this parameter | +**type** | [**TypeEnum**](#TypeEnum) | | + + + +## Enum: TypeEnum +Name | Value +---- | ----- +SINGLE_PROJECT | "SINGLE_PROJECT" +SINGLE_RUNTIME_APP | "SINGLE_RUNTIME_APP" +SINGLE_SSA_PROJECT | "SINGLE_SSA_PROJECT" +MULTI_PROJECT | "MULTI_PROJECT" +MULTI_RUNTIME_APP | "MULTI_RUNTIME_APP" +MULTI_SSA_PROJECT | "MULTI_SSA_PROJECT" +PROJECT_ATTRIBUTE | "PROJECT_ATTRIBUTE" +STRING | "STRING" +BOOLEAN | "BOOLEAN" +DATE | "DATE" +SINGLE_SELECT_DEFAULT | "SINGLE_SELECT_DEFAULT" +METADEF_GUID | "METADEF_GUID" + + + diff --git a/docs/InputStream.md b/docs/InputStream.md new file mode 100644 index 0000000..1281c8f --- /dev/null +++ b/docs/InputStream.md @@ -0,0 +1,9 @@ + +# InputStream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/docs/InternalCustomTagControllerApi.md b/docs/InternalCustomTagControllerApi.md new file mode 100644 index 0000000..e99cd74 --- /dev/null +++ b/docs/InternalCustomTagControllerApi.md @@ -0,0 +1,70 @@ +# InternalCustomTagControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listInternalCustomTag**](InternalCustomTagControllerApi.md#listInternalCustomTag) | **GET** /internalCustomTags | list + + + +# **listInternalCustomTag** +> ApiResultListCustomTag listInternalCustomTag(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.InternalCustomTagControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +InternalCustomTagControllerApi apiInstance = new InternalCustomTagControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCustomTag result = apiInstance.listInternalCustomTag(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InternalCustomTagControllerApi#listInternalCustomTag"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCustomTag**](ApiResultListCustomTag.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueActionResponse.md b/docs/IssueActionResponse.md new file mode 100644 index 0000000..b236baf --- /dev/null +++ b/docs/IssueActionResponse.md @@ -0,0 +1,10 @@ + +# IssueActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List<IssueAuditResult>**](IssueAuditResult.md) | Result of issue audit | [optional] + + + diff --git a/docs/IssueAgingControllerApi.md b/docs/IssueAgingControllerApi.md new file mode 100644 index 0000000..7201e1c --- /dev/null +++ b/docs/IssueAgingControllerApi.md @@ -0,0 +1,94 @@ +# IssueAgingControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueAging**](IssueAgingControllerApi.md#listIssueAging) | **GET** /issueaging | list + + + +# **listIssueAging** +> ApiResultListIssueAgingDto listIssueAging(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAgingControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAgingControllerApi apiInstance = new IssueAgingControllerApi(); +String orderby = "orderby_example"; // String | Fields to order by +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String filterby = "filterby_example"; // String | filterby +String aggregateby = "aggregateby_example"; // String | aggregateby +String groupguid = "groupguid_example"; // String | groupguid +String groupvalue = "groupvalue_example"; // String | groupvalue +String name = "name_example"; // String | name +String numberOfApplicationVersions = "numberOfApplicationVersions_example"; // String | numberOfApplicationVersions +String linesOfCode = "linesOfCode_example"; // String | linesOfCode +String issuesPendingReview = "issuesPendingReview_example"; // String | issuesPendingReview +String openIssues = "openIssues_example"; // String | openIssues +String filesScanned = "filesScanned_example"; // String | filesScanned +String bugDensity = "bugDensity_example"; // String | bugDensity +String averageDaysToReview = "averageDaysToReview_example"; // String | averageDaysToReview +String averageDaysToRemediate = "averageDaysToRemediate_example"; // String | averageDaysToRemediate +try { + ApiResultListIssueAgingDto result = apiInstance.listIssueAging(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAgingControllerApi#listIssueAging"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderby** | **String**| Fields to order by | [optional] + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **filterby** | **String**| filterby | [optional] + **aggregateby** | **String**| aggregateby | [optional] + **groupguid** | **String**| groupguid | [optional] + **groupvalue** | **String**| groupvalue | [optional] + **name** | **String**| name | [optional] + **numberOfApplicationVersions** | **String**| numberOfApplicationVersions | [optional] + **linesOfCode** | **String**| linesOfCode | [optional] + **issuesPendingReview** | **String**| issuesPendingReview | [optional] + **openIssues** | **String**| openIssues | [optional] + **filesScanned** | **String**| filesScanned | [optional] + **bugDensity** | **String**| bugDensity | [optional] + **averageDaysToReview** | **String**| averageDaysToReview | [optional] + **averageDaysToRemediate** | **String**| averageDaysToRemediate | [optional] + +### Return type + +[**ApiResultListIssueAgingDto**](ApiResultListIssueAgingDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAgingDto.md b/docs/IssueAgingDto.md new file mode 100644 index 0000000..5e777ac --- /dev/null +++ b/docs/IssueAgingDto.md @@ -0,0 +1,21 @@ + +# IssueAgingDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**averageDaysToRemediate** | **Integer** | Average number of days to fix issues in application versions. | [optional] +**averageDaysToReview** | **Integer** | Average number of days to review issues in application versions. | [optional] +**bugDensity** | **Double** | Bug density per 10 000 of scanned lines of code. | [optional] +**filesScanned** | **Long** | Number of files that were scanned in all application versions. | [optional] +**id** | **String** | This is dynamic attribute which value depend of the aggregation attribute. It can be application ID, application version ID or application version attribute GUID. | [optional] +**issuesPendingReview** | **Long** | Number of issues that are pending review in all application versions. | [optional] +**linesOfCode** | **Long** | Number of lines of code that were scanned by scans which results are stored in the application versions. | [optional] +**name** | **String** | This is dynamic attribute which value depend of the aggregation attribute. It can be application name, application version name or application version attribute name. | [optional] +**numberOfApplicationVersions** | **Integer** | Number of application versions in the application. | [optional] +**oldestScanDate** | [**OffsetDateTime**](OffsetDateTime.md) | Issue audites that have been done after this date have been taken into account for average days to review calculation. | [optional] +**openIssues** | **Long** | Number of not remediated issues in all application versions. | [optional] +**snapshotOutOfDate** | **Boolean** | Flag that indicates that application metrics state was changed and it metrics are going to be recalculated. | [optional] + + + diff --git a/docs/IssueAgingGroupControllerApi.md b/docs/IssueAgingGroupControllerApi.md new file mode 100644 index 0000000..3b0da1d --- /dev/null +++ b/docs/IssueAgingGroupControllerApi.md @@ -0,0 +1,70 @@ +# IssueAgingGroupControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueAgingGroup**](IssueAgingGroupControllerApi.md#listIssueAgingGroup) | **GET** /issueaginggroup | list + + + +# **listIssueAgingGroup** +> ApiResultListIssueAgingGroupDto listIssueAgingGroup(groupby, fields, start, limit, filterby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAgingGroupControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAgingGroupControllerApi apiInstance = new IssueAgingGroupControllerApi(); +String groupby = "groupby_example"; // String | Fields to group by +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String filterby = "filterby_example"; // String | filterby +try { + ApiResultListIssueAgingGroupDto result = apiInstance.listIssueAgingGroup(groupby, fields, start, limit, filterby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAgingGroupControllerApi#listIssueAgingGroup"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupby** | **String**| Fields to group by | [optional] + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **filterby** | **String**| filterby | [optional] + +### Return type + +[**ApiResultListIssueAgingGroupDto**](ApiResultListIssueAgingGroupDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAgingGroupDto.md b/docs/IssueAgingGroupDto.md new file mode 100644 index 0000000..b7bd537 --- /dev/null +++ b/docs/IssueAgingGroupDto.md @@ -0,0 +1,11 @@ + +# IssueAgingGroupDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | ID of issue aging table grouping attribute. This ID should be passed to issue aging endpoint to return issue aging items that belongs only to this group | +**name** | **String** | Name of the group to display it on UI. | + + + diff --git a/docs/IssueAgingPortlet.md b/docs/IssueAgingPortlet.md new file mode 100644 index 0000000..53d336e --- /dev/null +++ b/docs/IssueAgingPortlet.md @@ -0,0 +1,18 @@ + +# IssueAgingPortlet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applicationVersions** | **Integer** | | [optional] +**averageDaysToRemediate** | **Integer** | | [optional] +**averageDaysToReview** | **Integer** | | [optional] +**filesScanned** | **Long** | | [optional] +**issuesPendingReview** | **Long** | | [optional] +**issuesRemediated** | **Long** | | [optional] +**linesOfCode** | **Long** | | [optional] +**openIssues** | **Long** | | [optional] +**openIssuesReviewed** | **Long** | | [optional] + + + diff --git a/docs/IssueAgingPortletControllerApi.md b/docs/IssueAgingPortletControllerApi.md new file mode 100644 index 0000000..8cd08f9 --- /dev/null +++ b/docs/IssueAgingPortletControllerApi.md @@ -0,0 +1,58 @@ +# IssueAgingPortletControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getIssueAgingPortlet**](IssueAgingPortletControllerApi.md#getIssueAgingPortlet) | **GET** /portlets/issueaging | get + + + +# **getIssueAgingPortlet** +> ApiResultIssueAgingPortlet getIssueAgingPortlet() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAgingPortletControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAgingPortletControllerApi apiInstance = new IssueAgingPortletControllerApi(); +try { + ApiResultIssueAgingPortlet result = apiInstance.getIssueAgingPortlet(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAgingPortletControllerApi#getIssueAgingPortlet"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultIssueAgingPortlet**](ApiResultIssueAgingPortlet.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAssignUserRequest.md b/docs/IssueAssignUserRequest.md new file mode 100644 index 0000000..a934e54 --- /dev/null +++ b/docs/IssueAssignUserRequest.md @@ -0,0 +1,11 @@ + +# IssueAssignUserRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issues** | [**List<EntityStateIdentifier>**](EntityStateIdentifier.md) | Issues to audit | +**user** | **String** | Username to assign | + + + diff --git a/docs/IssueAssignment.md b/docs/IssueAssignment.md new file mode 100644 index 0000000..92ee4c1 --- /dev/null +++ b/docs/IssueAssignment.md @@ -0,0 +1,13 @@ + +# IssueAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issueCountAllProjectVer** | **Integer** | total number of issues assigned to user across all project versions | +**issueCountCertainProjectVer** | **Integer** | number of issues assigned to user in current project version | +**projectVersionId** | **Long** | | +**userName** | **String** | | + + + diff --git a/docs/IssueAssignmentOfProjectVersionControllerApi.md b/docs/IssueAssignmentOfProjectVersionControllerApi.md new file mode 100644 index 0000000..4e68539 --- /dev/null +++ b/docs/IssueAssignmentOfProjectVersionControllerApi.md @@ -0,0 +1,128 @@ +# IssueAssignmentOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueAssignmentOfProjectVersion**](IssueAssignmentOfProjectVersionControllerApi.md#listIssueAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/issueAssignment | list +[**readIssueAssignmentOfProjectVersion**](IssueAssignmentOfProjectVersionControllerApi.md#readIssueAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/issueAssignment/{id} | read + + + +# **listIssueAssignmentOfProjectVersion** +> ApiResultListIssueAssignment listIssueAssignmentOfProjectVersion(parentId, fields, start, limit, entityname) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAssignmentOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAssignmentOfProjectVersionControllerApi apiInstance = new IssueAssignmentOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String entityname = "entityname_example"; // String | entityname +try { + ApiResultListIssueAssignment result = apiInstance.listIssueAssignmentOfProjectVersion(parentId, fields, start, limit, entityname); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAssignmentOfProjectVersionControllerApi#listIssueAssignmentOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **entityname** | **String**| entityname | [optional] + +### Return type + +[**ApiResultListIssueAssignment**](ApiResultListIssueAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueAssignmentOfProjectVersion** +> ApiResultIssueAssignment readIssueAssignmentOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAssignmentOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAssignmentOfProjectVersionControllerApi apiInstance = new IssueAssignmentOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueAssignment result = apiInstance.readIssueAssignmentOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAssignmentOfProjectVersionControllerApi#readIssueAssignmentOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueAssignment**](ApiResultIssueAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAttachment.md b/docs/IssueAttachment.md new file mode 100644 index 0000000..2725749 --- /dev/null +++ b/docs/IssueAttachment.md @@ -0,0 +1,15 @@ + +# IssueAttachment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**fileDocId** | **Long** | document ID referencing the attachment | +**id** | **Long** | | +**image** | **byte[]** | | [optional] +**originalFileName** | **String** | | [optional] +**updateTime** | [**OffsetDateTime**](OffsetDateTime.md) | | + + + diff --git a/docs/IssueAttachmentOfIssueControllerApi.md b/docs/IssueAttachmentOfIssueControllerApi.md new file mode 100644 index 0000000..247a7db --- /dev/null +++ b/docs/IssueAttachmentOfIssueControllerApi.md @@ -0,0 +1,350 @@ +# IssueAttachmentOfIssueControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#createIssueAttachmentOfIssue) | **POST** /issues/{parentId}/attachments | create +[**deleteIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#deleteIssueAttachmentOfIssue) | **DELETE** /issues/{parentId}/attachments/{id} | delete +[**listIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#listIssueAttachmentOfIssue) | **GET** /issues/{parentId}/attachments | list +[**multiDeleteIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#multiDeleteIssueAttachmentOfIssue) | **DELETE** /issues/{parentId}/attachments | multiDelete +[**readIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#readIssueAttachmentOfIssue) | **GET** /issues/{parentId}/attachments/{id} | read +[**updateIssueAttachmentOfIssue**](IssueAttachmentOfIssueControllerApi.md#updateIssueAttachmentOfIssue) | **PUT** /issues/{parentId}/attachments/{id} | update + + + +# **createIssueAttachmentOfIssue** +> ApiResultIssueAttachment createIssueAttachmentOfIssue(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +IssueAttachment resource = new IssueAttachment(); // IssueAttachment | resource +try { + ApiResultIssueAttachment result = apiInstance.createIssueAttachmentOfIssue(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#createIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueAttachment**](IssueAttachment.md)| resource | + +### Return type + +[**ApiResultIssueAttachment**](ApiResultIssueAttachment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteIssueAttachmentOfIssue** +> ApiResultVoid deleteIssueAttachmentOfIssue(parentId, id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteIssueAttachmentOfIssue(parentId, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#deleteIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listIssueAttachmentOfIssue** +> ApiResultListIssueAttachment listIssueAttachmentOfIssue(parentId, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListIssueAttachment result = apiInstance.listIssueAttachmentOfIssue(parentId, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#listIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListIssueAttachment**](ApiResultListIssueAttachment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteIssueAttachmentOfIssue** +> ApiResultVoid multiDeleteIssueAttachmentOfIssue(parentId, ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteIssueAttachmentOfIssue(parentId, ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#multiDeleteIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueAttachmentOfIssue** +> ApiResultIssueAttachment readIssueAttachmentOfIssue(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueAttachment result = apiInstance.readIssueAttachmentOfIssue(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#readIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueAttachment**](ApiResultIssueAttachment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateIssueAttachmentOfIssue** +> ApiResultIssueAttachment updateIssueAttachmentOfIssue(parentId, id, data) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAttachmentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAttachmentOfIssueControllerApi apiInstance = new IssueAttachmentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +IssueAttachment data = new IssueAttachment(); // IssueAttachment | data +try { + ApiResultIssueAttachment result = apiInstance.updateIssueAttachmentOfIssue(parentId, id, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAttachmentOfIssueControllerApi#updateIssueAttachmentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **data** | [**IssueAttachment**](IssueAttachment.md)| data | + +### Return type + +[**ApiResultIssueAttachment**](ApiResultIssueAttachment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAuditComment.md b/docs/IssueAuditComment.md new file mode 100644 index 0000000..d42a031 --- /dev/null +++ b/docs/IssueAuditComment.md @@ -0,0 +1,19 @@ + +# IssueAuditComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auditTime** | [**OffsetDateTime**](OffsetDateTime.md) | | +**comment** | **String** | | +**issueId** | **Long** | | +**issueInstanceId** | **String** | | [optional] +**issueName** | **String** | | [optional] +**projectName** | **String** | | [optional] +**projectVersionId** | **Long** | | [optional] +**projectVersionName** | **String** | | [optional] +**seqNumber** | **Integer** | | +**userName** | **String** | | + + + diff --git a/docs/IssueAuditCommentControllerApi.md b/docs/IssueAuditCommentControllerApi.md new file mode 100644 index 0000000..244b174 --- /dev/null +++ b/docs/IssueAuditCommentControllerApi.md @@ -0,0 +1,70 @@ +# IssueAuditCommentControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueAuditComment**](IssueAuditCommentControllerApi.md#listIssueAuditComment) | **GET** /comments | list + + + +# **listIssueAuditComment** +> ApiResultListIssueAuditComment listIssueAuditComment(q, fulltextsearch, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAuditCommentControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAuditCommentControllerApi apiInstance = new IssueAuditCommentControllerApi(); +String q = "q_example"; // String | A full text search query +String fulltextsearch = "true"; // String | Only 'true' is supported +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListIssueAuditComment result = apiInstance.listIssueAuditComment(q, fulltextsearch, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAuditCommentControllerApi#listIssueAuditComment"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **String**| A full text search query | + **fulltextsearch** | **String**| Only 'true' is supported | [default to true] [enum: true] + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListIssueAuditComment**](ApiResultListIssueAuditComment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAuditCommentOfIssueControllerApi.md b/docs/IssueAuditCommentOfIssueControllerApi.md new file mode 100644 index 0000000..218a958 --- /dev/null +++ b/docs/IssueAuditCommentOfIssueControllerApi.md @@ -0,0 +1,122 @@ +# IssueAuditCommentOfIssueControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createIssueAuditCommentOfIssue**](IssueAuditCommentOfIssueControllerApi.md#createIssueAuditCommentOfIssue) | **POST** /issues/{parentId}/comments | create +[**listIssueAuditCommentOfIssue**](IssueAuditCommentOfIssueControllerApi.md#listIssueAuditCommentOfIssue) | **GET** /issues/{parentId}/comments | list + + + +# **createIssueAuditCommentOfIssue** +> ApiResultIssueAuditComment createIssueAuditCommentOfIssue(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAuditCommentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAuditCommentOfIssueControllerApi apiInstance = new IssueAuditCommentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +IssueAuditComment resource = new IssueAuditComment(); // IssueAuditComment | resource +try { + ApiResultIssueAuditComment result = apiInstance.createIssueAuditCommentOfIssue(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAuditCommentOfIssueControllerApi#createIssueAuditCommentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueAuditComment**](IssueAuditComment.md)| resource | + +### Return type + +[**ApiResultIssueAuditComment**](ApiResultIssueAuditComment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listIssueAuditCommentOfIssue** +> ApiResultListIssueAuditComment listIssueAuditCommentOfIssue(parentId, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueAuditCommentOfIssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueAuditCommentOfIssueControllerApi apiInstance = new IssueAuditCommentOfIssueControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListIssueAuditComment result = apiInstance.listIssueAuditCommentOfIssue(parentId, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueAuditCommentOfIssueControllerApi#listIssueAuditCommentOfIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListIssueAuditComment**](ApiResultListIssueAuditComment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueAuditHistoryDto.md b/docs/IssueAuditHistoryDto.md new file mode 100644 index 0000000..dccf618 --- /dev/null +++ b/docs/IssueAuditHistoryDto.md @@ -0,0 +1,17 @@ + +# IssueAuditHistoryDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributeName** | **String** | Changed attribute name. | +**auditDateTime** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when audit was performed. | +**conflict** | **Boolean** | Flag that indicates if there were any conflicts when audit information was merged. | +**issueId** | **Long** | ID of the issue the history record belongs to | +**newValue** | **String** | Attribute value after audit. | +**oldValue** | **String** | Attribute value before audit. | +**sequenceNumber** | **Integer** | Sequence number of the history record in the list of all audit history records for the issue. | +**userName** | **String** | Name of the user who performed the audit. | + + + diff --git a/docs/IssueAuditRequest.md b/docs/IssueAuditRequest.md new file mode 100644 index 0000000..6f249c9 --- /dev/null +++ b/docs/IssueAuditRequest.md @@ -0,0 +1,14 @@ + +# IssueAuditRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | Comment | [optional] +**customTagAudit** | [**List<CustomTag>**](CustomTag.md) | Custom tag values that are set for the issue. | [optional] +**issues** | [**List<EntityStateIdentifier>**](EntityStateIdentifier.md) | Issues to audit | +**suppressed** | **Boolean** | Will suppress the issue | [optional] +**user** | **String** | Username to assign | [optional] + + + diff --git a/docs/IssueAuditResult.md b/docs/IssueAuditResult.md new file mode 100644 index 0000000..309e612 --- /dev/null +++ b/docs/IssueAuditResult.md @@ -0,0 +1,16 @@ + +# IssueAuditResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customTagValues** | [**List<CustomTag>**](CustomTag.md) | Custom tag values that are set for the issue. | +**id** | **Long** | Audited issue ID. | +**issueInstanceId** | **String** | Issue instance ID. | +**projectVersionId** | **Long** | ID of the project version the audited issue belongs to. | +**revision** | **Integer** | Audited issue revision. | +**suppressed** | **Boolean** | Is issue suppressed. | +**userName** | **String** | User assigned to the audited issue. | + + + diff --git a/docs/IssueControllerApi.md b/docs/IssueControllerApi.md new file mode 100644 index 0000000..f5d57a4 --- /dev/null +++ b/docs/IssueControllerApi.md @@ -0,0 +1,126 @@ +# IssueControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssue**](IssueControllerApi.md#listIssue) | **GET** /issues | list +[**readIssue**](IssueControllerApi.md#readIssue) | **GET** /issues/{id} | read + + + +# **listIssue** +> ApiResultListProjectVersionIssue listIssue(q, fulltextsearch, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueControllerApi apiInstance = new IssueControllerApi(); +String q = "q_example"; // String | A full text search query +String fulltextsearch = "true"; // String | Only 'true' is supported +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListProjectVersionIssue result = apiInstance.listIssue(q, fulltextsearch, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueControllerApi#listIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **String**| A full text search query | + **fulltextsearch** | **String**| Only 'true' is supported | [default to true] [enum: true] + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListProjectVersionIssue**](ApiResultListProjectVersionIssue.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssue** +> ApiResultProjectVersionIssue readIssue(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueControllerApi apiInstance = new IssueControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultProjectVersionIssue result = apiInstance.readIssue(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueControllerApi#readIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultProjectVersionIssue**](ApiResultProjectVersionIssue.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueDetailControllerApi.md b/docs/IssueDetailControllerApi.md new file mode 100644 index 0000000..fd3ae93 --- /dev/null +++ b/docs/IssueDetailControllerApi.md @@ -0,0 +1,122 @@ +# IssueDetailControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueDetail**](IssueDetailControllerApi.md#listIssueDetail) | **GET** /issueDetails | list +[**readIssueDetail**](IssueDetailControllerApi.md#readIssueDetail) | **GET** /issueDetails/{id} | read + + + +# **listIssueDetail** +> ApiResultListProjectVersionIssueDetails listIssueDetail(projectName, projectVersionName, instanceId) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueDetailControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueDetailControllerApi apiInstance = new IssueDetailControllerApi(); +String projectName = "projectName_example"; // String | projectName +String projectVersionName = "projectVersionName_example"; // String | projectVersionName +String instanceId = "instanceId_example"; // String | instanceId +try { + ApiResultListProjectVersionIssueDetails result = apiInstance.listIssueDetail(projectName, projectVersionName, instanceId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueDetailControllerApi#listIssueDetail"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectName** | **String**| projectName | + **projectVersionName** | **String**| projectVersionName | + **instanceId** | **String**| instanceId | + +### Return type + +[**ApiResultListProjectVersionIssueDetails**](ApiResultListProjectVersionIssueDetails.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueDetail** +> ApiResultProjectVersionIssueDetails readIssueDetail(id, filterset) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueDetailControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueDetailControllerApi apiInstance = new IssueDetailControllerApi(); +Long id = 789L; // Long | id +String filterset = "filterset_example"; // String | Filter set to use +try { + ApiResultProjectVersionIssueDetails result = apiInstance.readIssueDetail(id, filterset); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueDetailControllerApi#readIssueDetail"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **filterset** | **String**| Filter set to use | [optional] + +### Return type + +[**ApiResultProjectVersionIssueDetails**](ApiResultProjectVersionIssueDetails.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueFileBugRequest.md b/docs/IssueFileBugRequest.md new file mode 100644 index 0000000..01910bf --- /dev/null +++ b/docs/IssueFileBugRequest.md @@ -0,0 +1,13 @@ + +# IssueFileBugRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugParams** | [**List<BugParam>**](BugParam.md) | Bug param to file the bug | +**filterBy** | **List<String>** | Filter by property | +**filterSet** | **String** | Filterset | +**issueInstanceIds** | **List<String>** | Instance id of issues that need to be filed as bugs | + + + diff --git a/docs/IssueFileBugResponse.md b/docs/IssueFileBugResponse.md new file mode 100644 index 0000000..3c14ee7 --- /dev/null +++ b/docs/IssueFileBugResponse.md @@ -0,0 +1,10 @@ + +# IssueFileBugResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ExternalBugInfo**](ExternalBugInfo.md) | Filed bugs | [optional] + + + diff --git a/docs/IssueFilterSelector.md b/docs/IssueFilterSelector.md new file mode 100644 index 0000000..0d544e7 --- /dev/null +++ b/docs/IssueFilterSelector.md @@ -0,0 +1,38 @@ + +# IssueFilterSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | Selector set's description. | +**displayName** | **String** | Selector set's display name. | +**entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | Type of the issue attriute that can be used for ordering or filtering. | +**filterSelectorType** | [**FilterSelectorTypeEnum**](#FilterSelectorTypeEnum) | If value of the selector can be chose from the list of predefined values, or if it can contain any value defined by user. | +**guid** | **String** | Selector set's GUID. | +**selectorOptions** | [**List<SelectorOption>**](SelectorOption.md) | Selector set's options. | +**value** | **String** | Selector set's value that must be sent to backend when this option is selected. | + + + +## Enum: EntityTypeEnum +Name | Value +---- | ----- +UNDEFINED | "UNDEFINED" +ISSUE | "ISSUE" +EXTERNALLIST | "EXTERNALLIST" +CUSTOMTAG | "CUSTOMTAG" +HYBRIDTAG | "HYBRIDTAG" +FOLDER | "FOLDER" + + + +## Enum: FilterSelectorTypeEnum +Name | Value +---- | ----- +LIST | "LIST" +DECIMAL | "DECIMAL" +DATE | "DATE" +TEXT | "TEXT" + + + diff --git a/docs/IssueFilterSelectorSet.md b/docs/IssueFilterSelectorSet.md new file mode 100644 index 0000000..aeaa735 --- /dev/null +++ b/docs/IssueFilterSelectorSet.md @@ -0,0 +1,11 @@ + +# IssueFilterSelectorSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filterBySet** | [**List<IssueFilterSelector>**](IssueFilterSelector.md) | List of all possible issues filterring attributes. | +**groupBySet** | [**List<IssueSelector>**](IssueSelector.md) | List of all possible issues grouping attributes. | + + + diff --git a/docs/IssueGroupOfProjectVersionControllerApi.md b/docs/IssueGroupOfProjectVersionControllerApi.md new file mode 100644 index 0000000..bafd61c --- /dev/null +++ b/docs/IssueGroupOfProjectVersionControllerApi.md @@ -0,0 +1,86 @@ +# IssueGroupOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueGroupOfProjectVersion**](IssueGroupOfProjectVersionControllerApi.md#listIssueGroupOfProjectVersion) | **GET** /projectVersions/{parentId}/issueGroups | list + + + +# **listIssueGroupOfProjectVersion** +> ApiResultListProjectVersionIssueGroup listIssueGroupOfProjectVersion(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueGroupOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueGroupOfProjectVersionControllerApi apiInstance = new IssueGroupOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | An issue query expression, must be used together with the 'qm' parameter +String qm = "qm_example"; // String | Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used +String filterset = "filterset_example"; // String | Filter set to use +String fields = "fields_example"; // String | Output fields +Boolean showhidden = false; // Boolean | If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showremoved = false; // Boolean | If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showsuppressed = false; // Boolean | If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showshortfilenames = false; // Boolean | If 'true', only short file names will be displayed in issues list. +String filter = "filter_example"; // String | filter +String groupingtype = "groupingtype_example"; // String | groupingtype +try { + ApiResultListProjectVersionIssueGroup result = apiInstance.listIssueGroupOfProjectVersion(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueGroupOfProjectVersionControllerApi#listIssueGroupOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| An issue query expression, must be used together with the 'qm' parameter | [optional] + **qm** | **String**| Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used | [optional] [enum: issues] + **filterset** | **String**| Filter set to use | [optional] + **fields** | **String**| Output fields | [optional] + **showhidden** | **Boolean**| If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showremoved** | **Boolean**| If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showsuppressed** | **Boolean**| If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showshortfilenames** | **Boolean**| If 'true', only short file names will be displayed in issues list. | [optional] [default to false] + **filter** | **String**| filter | [optional] + **groupingtype** | **String**| groupingtype | [optional] + +### Return type + +[**ApiResultListProjectVersionIssueGroup**](ApiResultListProjectVersionIssueGroup.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueOfProjectVersionControllerApi.md b/docs/IssueOfProjectVersionControllerApi.md new file mode 100644 index 0000000..fbcf70b --- /dev/null +++ b/docs/IssueOfProjectVersionControllerApi.md @@ -0,0 +1,484 @@ +# IssueOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignUserForIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#assignUserForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/assignUser | assignUserFor +[**auditIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#auditIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/audit | audit +[**doActionIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#doActionIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action | doAction +[**fileBugForIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#fileBugForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/fileBug | fileBugFor +[**listIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#listIssueOfProjectVersion) | **GET** /projectVersions/{parentId}/issues | list +[**readIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#readIssueOfProjectVersion) | **GET** /projectVersions/{parentId}/issues/{id} | read +[**suppressIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#suppressIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/suppress | suppress +[**updateTagForIssueOfProjectVersion**](IssueOfProjectVersionControllerApi.md#updateTagForIssueOfProjectVersion) | **POST** /projectVersions/{parentId}/issues/action/updateTag | updateTagFor + + + +# **assignUserForIssueOfProjectVersion** +> ApiResultIssueActionResponse assignUserForIssueOfProjectVersion(parentId, resource) + +assignUserFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IssueAssignUserRequest resource = new IssueAssignUserRequest(); // IssueAssignUserRequest | resource +try { + ApiResultIssueActionResponse result = apiInstance.assignUserForIssueOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#assignUserForIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueAssignUserRequest**](IssueAssignUserRequest.md)| resource | + +### Return type + +[**ApiResultIssueActionResponse**](ApiResultIssueActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **auditIssueOfProjectVersion** +> ApiResultIssueActionResponse auditIssueOfProjectVersion(parentId, resource) + +audit + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IssueAuditRequest resource = new IssueAuditRequest(); // IssueAuditRequest | resource +try { + ApiResultIssueActionResponse result = apiInstance.auditIssueOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#auditIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueAuditRequest**](IssueAuditRequest.md)| resource | + +### Return type + +[**ApiResultIssueActionResponse**](ApiResultIssueActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionIssueOfProjectVersion** +> ApiResultApiActionResponse doActionIssueOfProjectVersion(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionIssueOfProjectVersion(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#doActionIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **fileBugForIssueOfProjectVersion** +> ApiResultIssueFileBugResponse fileBugForIssueOfProjectVersion(parentId, resource) + +fileBugFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IssueFileBugRequest resource = new IssueFileBugRequest(); // IssueFileBugRequest | resource +try { + ApiResultIssueFileBugResponse result = apiInstance.fileBugForIssueOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#fileBugForIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueFileBugRequest**](IssueFileBugRequest.md)| resource | + +### Return type + +[**ApiResultIssueFileBugResponse**](ApiResultIssueFileBugResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listIssueOfProjectVersion** +> ApiResultListProjectVersionIssue listIssueOfProjectVersion(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | An issue query expression, must be used together with the 'qm' parameter +String qm = "qm_example"; // String | Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used +String orderby = "orderby_example"; // String | Fields to order by +String filterset = "filterset_example"; // String | Filter set to use +String fields = "fields_example"; // String | Output fields +Boolean showhidden = false; // Boolean | If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showremoved = false; // Boolean | If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showsuppressed = false; // Boolean | If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. +Boolean showshortfilenames = false; // Boolean | If 'true', only short file names will be displayed in issues list. +String filter = "filter_example"; // String | filter +String groupid = "groupid_example"; // String | groupid +String groupingtype = "groupingtype_example"; // String | groupingtype +try { + ApiResultListProjectVersionIssue result = apiInstance.listIssueOfProjectVersion(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#listIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| An issue query expression, must be used together with the 'qm' parameter | [optional] + **qm** | **String**| Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used | [optional] [enum: issues] + **orderby** | **String**| Fields to order by | [optional] + **filterset** | **String**| Filter set to use | [optional] + **fields** | **String**| Output fields | [optional] + **showhidden** | **Boolean**| If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showremoved** | **Boolean**| If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showsuppressed** | **Boolean**| If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] [default to false] + **showshortfilenames** | **Boolean**| If 'true', only short file names will be displayed in issues list. | [optional] [default to false] + **filter** | **String**| filter | [optional] + **groupid** | **String**| groupid | [optional] + **groupingtype** | **String**| groupingtype | [optional] + +### Return type + +[**ApiResultListProjectVersionIssue**](ApiResultListProjectVersionIssue.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueOfProjectVersion** +> ApiResultProjectVersionIssue readIssueOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultProjectVersionIssue result = apiInstance.readIssueOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#readIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultProjectVersionIssue**](ApiResultProjectVersionIssue.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **suppressIssueOfProjectVersion** +> ApiResultIssueActionResponse suppressIssueOfProjectVersion(parentId, resource) + +suppress + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IssueSuppressRequest resource = new IssueSuppressRequest(); // IssueSuppressRequest | resource +try { + ApiResultIssueActionResponse result = apiInstance.suppressIssueOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#suppressIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueSuppressRequest**](IssueSuppressRequest.md)| resource | + +### Return type + +[**ApiResultIssueActionResponse**](ApiResultIssueActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateTagForIssueOfProjectVersion** +> ApiResultIssueActionResponse updateTagForIssueOfProjectVersion(parentId, resource) + +updateTagFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueOfProjectVersionControllerApi apiInstance = new IssueOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +IssueUpdateTagRequest resource = new IssueUpdateTagRequest(); // IssueUpdateTagRequest | resource +try { + ApiResultIssueActionResponse result = apiInstance.updateTagForIssueOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueOfProjectVersionControllerApi#updateTagForIssueOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**IssueUpdateTagRequest**](IssueUpdateTagRequest.md)| resource | + +### Return type + +[**ApiResultIssueActionResponse**](ApiResultIssueActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssuePrimaryTag.md b/docs/IssuePrimaryTag.md new file mode 100644 index 0000000..9e00602 --- /dev/null +++ b/docs/IssuePrimaryTag.md @@ -0,0 +1,13 @@ + +# IssuePrimaryTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tagGuid** | **String** | | [optional] +**tagId** | **Long** | | [optional] +**tagName** | **String** | | [optional] +**tagValue** | **String** | | [optional] + + + diff --git a/docs/IssueSearchOption.md b/docs/IssueSearchOption.md new file mode 100644 index 0000000..27a6d58 --- /dev/null +++ b/docs/IssueSearchOption.md @@ -0,0 +1,22 @@ + +# IssueSearchOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**optionType** | [**OptionTypeEnum**](#OptionTypeEnum) | Option type. | [optional] +**optionValue** | **Boolean** | If this option is enabled. | + + + +## Enum: OptionTypeEnum +Name | Value +---- | ----- +INCLUDE_COMMENTS_IN_HISTORY | "INCLUDE_COMMENTS_IN_HISTORY" +HIDDEN | "HIDDEN" +REMOVED | "REMOVED" +SUPPRESSED | "SUPPRESSED" +SHORT_FILE_NAMES | "SHORT_FILE_NAMES" + + + diff --git a/docs/IssueSelector.md b/docs/IssueSelector.md new file mode 100644 index 0000000..85633da --- /dev/null +++ b/docs/IssueSelector.md @@ -0,0 +1,26 @@ + +# IssueSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | Description | +**displayName** | **String** | Display name for issue selector | +**entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | Issue selector entity type | +**guid** | **String** | Issue selector global unique identifier | +**value** | **String** | Issue selector value | + + + +## Enum: EntityTypeEnum +Name | Value +---- | ----- +UNDEFINED | "UNDEFINED" +ISSUE | "ISSUE" +EXTERNALLIST | "EXTERNALLIST" +CUSTOMTAG | "CUSTOMTAG" +HYBRIDTAG | "HYBRIDTAG" +FOLDER | "FOLDER" + + + diff --git a/docs/IssueSelectorSetOfProjectVersionControllerApi.md b/docs/IssueSelectorSetOfProjectVersionControllerApi.md new file mode 100644 index 0000000..cc17817 --- /dev/null +++ b/docs/IssueSelectorSetOfProjectVersionControllerApi.md @@ -0,0 +1,64 @@ +# IssueSelectorSetOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getIssueSelectorSetOfProjectVersion**](IssueSelectorSetOfProjectVersionControllerApi.md#getIssueSelectorSetOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSelectorSet | get + + + +# **getIssueSelectorSetOfProjectVersion** +> ApiResultIssueFilterSelectorSet getIssueSelectorSetOfProjectVersion(parentId, fields) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueSelectorSetOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueSelectorSetOfProjectVersionControllerApi apiInstance = new IssueSelectorSetOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueFilterSelectorSet result = apiInstance.getIssueSelectorSetOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueSelectorSetOfProjectVersionControllerApi#getIssueSelectorSetOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueFilterSelectorSet**](ApiResultIssueFilterSelectorSet.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueStatistics.md b/docs/IssueStatistics.md new file mode 100644 index 0000000..b1780ce --- /dev/null +++ b/docs/IssueStatistics.md @@ -0,0 +1,17 @@ + +# IssueStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filterSetId** | **Long** | Filter set identifier | +**hiddenCount** | **Integer** | Total number of hidden issues in the project version | +**hiddenDisplayableCount** | **Integer** | Number of displayable hidden issues in the project version | +**projectVersionId** | **Long** | Project version identifier | +**removedCount** | **Integer** | Total number of removed issues | +**removedDisplayableCount** | **Integer** | Number of displayable removed issues in the project version | [optional] +**suppressedCount** | **Integer** | Total number of suppressed issues in the project version | +**suppressedDisplayableCount** | **Integer** | Number of displayable suppressed issues in the project version | [optional] + + + diff --git a/docs/IssueStatisticsOfProjectVersionControllerApi.md b/docs/IssueStatisticsOfProjectVersionControllerApi.md new file mode 100644 index 0000000..aa55f82 --- /dev/null +++ b/docs/IssueStatisticsOfProjectVersionControllerApi.md @@ -0,0 +1,64 @@ +# IssueStatisticsOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueStatisticsOfProjectVersion**](IssueStatisticsOfProjectVersionControllerApi.md#listIssueStatisticsOfProjectVersion) | **GET** /projectVersions/{parentId}/issueStatistics | list + + + +# **listIssueStatisticsOfProjectVersion** +> ApiResultListIssueStatistics listIssueStatisticsOfProjectVersion(parentId, filterset) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueStatisticsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueStatisticsOfProjectVersionControllerApi apiInstance = new IssueStatisticsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String filterset = "filterset_example"; // String | Filter set to use +try { + ApiResultListIssueStatistics result = apiInstance.listIssueStatisticsOfProjectVersion(parentId, filterset); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueStatisticsOfProjectVersionControllerApi#listIssueStatisticsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **filterset** | **String**| Filter set to use | [optional] + +### Return type + +[**ApiResultListIssueStatistics**](ApiResultListIssueStatistics.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueSummary.md b/docs/IssueSummary.md new file mode 100644 index 0000000..543e5c9 --- /dev/null +++ b/docs/IssueSummary.md @@ -0,0 +1,12 @@ + +# IssueSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Name | [optional] +**series** | **List<Object>** | | [optional] +**totalIssueCount** | **Long** | | [optional] + + + diff --git a/docs/IssueSummaryOfProjectVersionControllerApi.md b/docs/IssueSummaryOfProjectVersionControllerApi.md new file mode 100644 index 0000000..5a15070 --- /dev/null +++ b/docs/IssueSummaryOfProjectVersionControllerApi.md @@ -0,0 +1,76 @@ +# IssueSummaryOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueSummaryOfProjectVersion**](IssueSummaryOfProjectVersionControllerApi.md#listIssueSummaryOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSummaries | list + + + +# **listIssueSummaryOfProjectVersion** +> ApiResultListIssueSummary listIssueSummaryOfProjectVersion(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueSummaryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueSummaryOfProjectVersionControllerApi apiInstance = new IssueSummaryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String seriestype = "seriestype_example"; // String | seriestype +String groupaxistype = "groupaxistype_example"; // String | groupaxistype +String audited = "audited_example"; // String | audited +String filter = "filter_example"; // String | filter +Boolean showhidden = true; // Boolean | showhidden +Boolean showremoved = true; // Boolean | showremoved +Boolean showsuppressed = true; // Boolean | showsuppressed +try { + ApiResultListIssueSummary result = apiInstance.listIssueSummaryOfProjectVersion(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueSummaryOfProjectVersionControllerApi#listIssueSummaryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **seriestype** | **String**| seriestype | + **groupaxistype** | **String**| groupaxistype | + **audited** | **String**| audited | [optional] + **filter** | **String**| filter | [optional] + **showhidden** | **Boolean**| showhidden | [optional] + **showremoved** | **Boolean**| showremoved | [optional] + **showsuppressed** | **Boolean**| showsuppressed | [optional] + +### Return type + +[**ApiResultListIssueSummary**](ApiResultListIssueSummary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueSuppressRequest.md b/docs/IssueSuppressRequest.md new file mode 100644 index 0000000..fcf1ece --- /dev/null +++ b/docs/IssueSuppressRequest.md @@ -0,0 +1,11 @@ + +# IssueSuppressRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issues** | [**List<EntityStateIdentifier>**](EntityStateIdentifier.md) | Issues to suppress | +**suppressed** | **Boolean** | Will suppress the issue | + + + diff --git a/docs/IssueTemplate.md b/docs/IssueTemplate.md new file mode 100644 index 0000000..0f8b660 --- /dev/null +++ b/docs/IssueTemplate.md @@ -0,0 +1,20 @@ + +# IssueTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customTagIds** | **List<Long>** | | [optional] +**defaultTemplate** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**id** | **String** | Issue template id | [optional] +**inUse** | **Boolean** | Is the template in use | [optional] +**masterAttrGuid** | **String** | | [optional] +**name** | **String** | | +**objectVersion** | **Integer** | | [optional] +**obsolete** | **Boolean** | | [optional] +**originalFileName** | **String** | | +**publishVersion** | **Integer** | | [optional] + + + diff --git a/docs/IssueTemplateControllerApi.md b/docs/IssueTemplateControllerApi.md new file mode 100644 index 0000000..8fededa --- /dev/null +++ b/docs/IssueTemplateControllerApi.md @@ -0,0 +1,290 @@ +# IssueTemplateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteIssueTemplate**](IssueTemplateControllerApi.md#deleteIssueTemplate) | **DELETE** /issueTemplates/{id} | delete +[**listIssueTemplate**](IssueTemplateControllerApi.md#listIssueTemplate) | **GET** /issueTemplates | list +[**multiDeleteIssueTemplate**](IssueTemplateControllerApi.md#multiDeleteIssueTemplate) | **DELETE** /issueTemplates | multiDelete +[**readIssueTemplate**](IssueTemplateControllerApi.md#readIssueTemplate) | **GET** /issueTemplates/{id} | read +[**updateIssueTemplate**](IssueTemplateControllerApi.md#updateIssueTemplate) | **PUT** /issueTemplates/{id} | update + + + +# **deleteIssueTemplate** +> ApiResultVoid deleteIssueTemplate(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueTemplateControllerApi apiInstance = new IssueTemplateControllerApi(); +String id = "id_example"; // String | id +try { + ApiResultVoid result = apiInstance.deleteIssueTemplate(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueTemplateControllerApi#deleteIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listIssueTemplate** +> ApiResultListIssueTemplate listIssueTemplate(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueTemplateControllerApi apiInstance = new IssueTemplateControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListIssueTemplate result = apiInstance.listIssueTemplate(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueTemplateControllerApi#listIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListIssueTemplate**](ApiResultListIssueTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteIssueTemplate** +> ApiResultVoid multiDeleteIssueTemplate(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueTemplateControllerApi apiInstance = new IssueTemplateControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteIssueTemplate(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueTemplateControllerApi#multiDeleteIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueTemplate** +> ApiResultIssueTemplate readIssueTemplate(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueTemplateControllerApi apiInstance = new IssueTemplateControllerApi(); +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueTemplate result = apiInstance.readIssueTemplate(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueTemplateControllerApi#readIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueTemplate**](ApiResultIssueTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateIssueTemplate** +> ApiResultIssueTemplate updateIssueTemplate(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueTemplateControllerApi apiInstance = new IssueTemplateControllerApi(); +String id = "id_example"; // String | id +IssueTemplate resource = new IssueTemplate(); // IssueTemplate | resource +try { + ApiResultIssueTemplate result = apiInstance.updateIssueTemplate(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueTemplateControllerApi#updateIssueTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **resource** | [**IssueTemplate**](IssueTemplate.md)| resource | + +### Return type + +[**ApiResultIssueTemplate**](ApiResultIssueTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/IssueUpdateTagRequest.md b/docs/IssueUpdateTagRequest.md new file mode 100644 index 0000000..ae23915 --- /dev/null +++ b/docs/IssueUpdateTagRequest.md @@ -0,0 +1,11 @@ + +# IssueUpdateTagRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customTagAudit** | [**CustomTag**](CustomTag.md) | Custom tag values that are set for the issue. | +**issues** | [**List<EntityStateIdentifier>**](EntityStateIdentifier.md) | Issues to audit | + + + diff --git a/docs/IssueViewTemplate.md b/docs/IssueViewTemplate.md new file mode 100644 index 0000000..81a7842 --- /dev/null +++ b/docs/IssueViewTemplate.md @@ -0,0 +1,16 @@ + +# IssueViewTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataVersion** | **Long** | Issue data version for which template is created. | [optional] +**description** | **String** | Template description. | [optional] +**engineType** | **String** | Engine type for which template is created. | [optional] +**id** | **Long** | Unique identifier of the issue view template. | [optional] +**metadataId** | **Long** | Id of the plugin meta data for which template is created. | [optional] +**objectVersion** | **Integer** | Object version. | +**templateData** | [**List<List<TemplateItem>>**](List.md) | Actual template JSON data. | [optional] + + + diff --git a/docs/IssueViewTemplateControllerApi.md b/docs/IssueViewTemplateControllerApi.md new file mode 100644 index 0000000..033d0c8 --- /dev/null +++ b/docs/IssueViewTemplateControllerApi.md @@ -0,0 +1,126 @@ +# IssueViewTemplateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listIssueViewTemplate**](IssueViewTemplateControllerApi.md#listIssueViewTemplate) | **GET** /issueViewTemplates | list +[**readIssueViewTemplate**](IssueViewTemplateControllerApi.md#readIssueViewTemplate) | **GET** /issueViewTemplates/{id} | read + + + +# **listIssueViewTemplate** +> ApiResultListIssueViewTemplate listIssueViewTemplate(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueViewTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueViewTemplateControllerApi apiInstance = new IssueViewTemplateControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListIssueViewTemplate result = apiInstance.listIssueViewTemplate(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueViewTemplateControllerApi#listIssueViewTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListIssueViewTemplate**](ApiResultListIssueViewTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readIssueViewTemplate** +> ApiResultIssueViewTemplate readIssueViewTemplate(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.IssueViewTemplateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +IssueViewTemplateControllerApi apiInstance = new IssueViewTemplateControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueViewTemplate result = apiInstance.readIssueViewTemplate(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueViewTemplateControllerApi#readIssueViewTemplate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueViewTemplate**](ApiResultIssueViewTemplate.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Job.md b/docs/Job.md new file mode 100644 index 0000000..f29574e --- /dev/null +++ b/docs/Job.md @@ -0,0 +1,36 @@ + +# Job + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifactName** | **String** | Artifact name related to this job | +**cancellable** | **Boolean** | Set to true if job is cancelable | +**executionOrder** | **Double** | Job execution order | +**finishTime** | [**OffsetDateTime**](OffsetDateTime.md) | End time of job | +**jobClass** | **String** | Job class | +**jobData** | **Object** | Job data | +**jobGroup** | **String** | Job group | +**jobName** | **String** | identifier of job | [optional] +**priority** | **Integer** | Job priority | +**projectName** | **String** | Project name related to this job | +**projectVersionId** | **Long** | Project version identifier related to this job | +**projectVersionName** | **String** | Project version name related to this job | +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Start time of job | +**state** | [**StateEnum**](#StateEnum) | Job State | +**userName** | **String** | Name of user this job was created by | + + + +## Enum: StateEnum +Name | Value +---- | ----- +PREPARED | "PREPARED" +FINISHED | "FINISHED" +RUNNING | "RUNNING" +WAITING_FOR_WORKER | "WAITING_FOR_WORKER" +FAILED | "FAILED" +CANCELLED | "CANCELLED" + + + diff --git a/docs/JobCancelRequest.md b/docs/JobCancelRequest.md new file mode 100644 index 0000000..d35aff8 --- /dev/null +++ b/docs/JobCancelRequest.md @@ -0,0 +1,10 @@ + +# JobCancelRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobIds** | **List<String>** | List containing single job ID to cancel | + + + diff --git a/docs/JobControllerApi.md b/docs/JobControllerApi.md new file mode 100644 index 0000000..e02c45f --- /dev/null +++ b/docs/JobControllerApi.md @@ -0,0 +1,292 @@ +# JobControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancelJob**](JobControllerApi.md#cancelJob) | **POST** /jobs/action/cancel | cancel +[**doActionJob**](JobControllerApi.md#doActionJob) | **POST** /jobs/{jobName}/action | doAction +[**listJob**](JobControllerApi.md#listJob) | **GET** /jobs | list +[**readJob**](JobControllerApi.md#readJob) | **GET** /jobs/{jobName} | read +[**updateJob**](JobControllerApi.md#updateJob) | **PUT** /jobs/{jobName} | update + + + +# **cancelJob** +> ApiResultVoid cancelJob(resource) + +cancel + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobControllerApi apiInstance = new JobControllerApi(); +JobCancelRequest resource = new JobCancelRequest(); // JobCancelRequest | resource +try { + ApiResultVoid result = apiInstance.cancelJob(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobControllerApi#cancelJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**JobCancelRequest**](JobCancelRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionJob** +> ApiResultApiActionResponse doActionJob(jobName, resourceAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobControllerApi apiInstance = new JobControllerApi(); +String jobName = "jobName_example"; // String | jobName +ApiResourceAction resourceAction = new ApiResourceAction(); // ApiResourceAction | resourceAction +try { + ApiResultApiActionResponse result = apiInstance.doActionJob(jobName, resourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobControllerApi#doActionJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobName** | **String**| jobName | + **resourceAction** | [**ApiResourceAction**](ApiResourceAction.md)| resourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listJob** +> ApiResultListJob listJob(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobControllerApi apiInstance = new JobControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListJob result = apiInstance.listJob(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobControllerApi#listJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListJob**](ApiResultListJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readJob** +> ApiResultJob readJob(jobName, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobControllerApi apiInstance = new JobControllerApi(); +String jobName = "jobName_example"; // String | jobName +String fields = "fields_example"; // String | Output fields +try { + ApiResultJob result = apiInstance.readJob(jobName, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobControllerApi#readJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobName** | **String**| jobName | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultJob**](ApiResultJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateJob** +> ApiResultJob updateJob(jobName, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobControllerApi apiInstance = new JobControllerApi(); +String jobName = "jobName_example"; // String | jobName +Job resource = new Job(); // Job | resource +try { + ApiResultJob result = apiInstance.updateJob(jobName, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobControllerApi#updateJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobName** | **String**| jobName | + **resource** | [**Job**](Job.md)| resource | + +### Return type + +[**ApiResultJob**](ApiResultJob.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/JobPriorityChangeCategoryWarning.md b/docs/JobPriorityChangeCategoryWarning.md new file mode 100644 index 0000000..bc5a48e --- /dev/null +++ b/docs/JobPriorityChangeCategoryWarning.md @@ -0,0 +1,11 @@ + +# JobPriorityChangeCategoryWarning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warningCategory** | **String** | Job priority change warning category. | +**warningList** | [**List<JobPriorityChangeInfo>**](JobPriorityChangeInfo.md) | Detailed information about job priority change. | + + + diff --git a/docs/JobPriorityChangeCategoryWarningOfJobControllerApi.md b/docs/JobPriorityChangeCategoryWarningOfJobControllerApi.md new file mode 100644 index 0000000..fb580eb --- /dev/null +++ b/docs/JobPriorityChangeCategoryWarningOfJobControllerApi.md @@ -0,0 +1,66 @@ +# JobPriorityChangeCategoryWarningOfJobControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listJobPriorityChangeCategoryWarningOfJob**](JobPriorityChangeCategoryWarningOfJobControllerApi.md#listJobPriorityChangeCategoryWarningOfJob) | **GET** /jobs/{parentId}/warnings | list + + + +# **listJobPriorityChangeCategoryWarningOfJob** +> ApiResultListJobPriorityChangeCategoryWarning listJobPriorityChangeCategoryWarningOfJob(parentId, priority, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.JobPriorityChangeCategoryWarningOfJobControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +JobPriorityChangeCategoryWarningOfJobControllerApi apiInstance = new JobPriorityChangeCategoryWarningOfJobControllerApi(); +String parentId = "parentId_example"; // String | parentId +String priority = "priority_example"; // String | priority +String fields = "fields_example"; // String | Output fields +try { + ApiResultListJobPriorityChangeCategoryWarning result = apiInstance.listJobPriorityChangeCategoryWarningOfJob(parentId, priority, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling JobPriorityChangeCategoryWarningOfJobControllerApi#listJobPriorityChangeCategoryWarningOfJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **priority** | **String**| priority | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListJobPriorityChangeCategoryWarning**](ApiResultListJobPriorityChangeCategoryWarning.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/JobPriorityChangeInfo.md b/docs/JobPriorityChangeInfo.md new file mode 100644 index 0000000..bc5d874 --- /dev/null +++ b/docs/JobPriorityChangeInfo.md @@ -0,0 +1,11 @@ + +# JobPriorityChangeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Integer** | Number of the warnings of for the specific job class. | +**jobClassName** | **String** | Job class name. | + + + diff --git a/docs/LDAPEntity.md b/docs/LDAPEntity.md new file mode 100644 index 0000000..b97021c --- /dev/null +++ b/docs/LDAPEntity.md @@ -0,0 +1,28 @@ + +# LDAPEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**distinguishedName** | **String** | Distinguished name of LDAP entity | +**email** | **String** | Email of LDAP entity | +**firstName** | **String** | First name of LDAP entity | +**id** | **Long** | LDAP entity identifier | [optional] +**lastName** | **String** | Last name of LDAP entity | +**ldapType** | [**LdapTypeEnum**](#LdapTypeEnum) | Type of LDAP entity. | +**name** | **String** | LDAP entity name | +**roles** | [**List<Role>**](Role.md) | List of roles pertaining to this LDAP entity | +**userPhoto** | [**UserPhoto**](UserPhoto.md) | Photo object if LDAP entity is user | [optional] + + + +## Enum: LdapTypeEnum +Name | Value +---- | ----- +NONE | "NONE" +GROUP | "GROUP" +USER | "USER" +ORG_UNIT | "ORG_UNIT" + + + diff --git a/docs/LdapObjectControllerApi.md b/docs/LdapObjectControllerApi.md new file mode 100644 index 0000000..44c27ad --- /dev/null +++ b/docs/LdapObjectControllerApi.md @@ -0,0 +1,452 @@ +# LdapObjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createLdapObject**](LdapObjectControllerApi.md#createLdapObject) | **POST** /ldapObjects | create +[**deleteLdapObject**](LdapObjectControllerApi.md#deleteLdapObject) | **DELETE** /ldapObjects/{id} | delete +[**doCollectionActionLdapObject**](LdapObjectControllerApi.md#doCollectionActionLdapObject) | **POST** /ldapObjects/action | doCollectionAction +[**listLdapObject**](LdapObjectControllerApi.md#listLdapObject) | **GET** /ldapObjects | list +[**multiDeleteLdapObject**](LdapObjectControllerApi.md#multiDeleteLdapObject) | **DELETE** /ldapObjects | multiDelete +[**readLdapObject**](LdapObjectControllerApi.md#readLdapObject) | **GET** /ldapObjects/{id} | read +[**refreshLdapObject**](LdapObjectControllerApi.md#refreshLdapObject) | **POST** /ldapObjects/action/refresh | refresh +[**updateLdapObject**](LdapObjectControllerApi.md#updateLdapObject) | **PUT** /ldapObjects/{id} | update + + + +# **createLdapObject** +> ApiResultLDAPEntity createLdapObject(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +LDAPEntity resource = new LDAPEntity(); // LDAPEntity | resource +try { + ApiResultLDAPEntity result = apiInstance.createLdapObject(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#createLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**LDAPEntity**](LDAPEntity.md)| resource | + +### Return type + +[**ApiResultLDAPEntity**](ApiResultLDAPEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteLdapObject** +> ApiResultVoid deleteLdapObject(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteLdapObject(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#deleteLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doCollectionActionLdapObject** +> ApiResultApiActionResponse doCollectionActionLdapObject(collectionAction) + +doCollectionAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doCollectionActionLdapObject(collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#doCollectionActionLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listLdapObject** +> ApiResultListLDAPEntity listLdapObject(fields, start, limit, q, orderby, ldaptype, viewby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +String ldaptype = "ldaptype_example"; // String | ldaptype +String viewby = "viewby_example"; // String | viewby +try { + ApiResultListLDAPEntity result = apiInstance.listLdapObject(fields, start, limit, q, orderby, ldaptype, viewby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#listLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + **ldaptype** | **String**| ldaptype | [optional] + **viewby** | **String**| viewby | [optional] + +### Return type + +[**ApiResultListLDAPEntity**](ApiResultListLDAPEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteLdapObject** +> ApiResultVoid multiDeleteLdapObject(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteLdapObject(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#multiDeleteLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readLdapObject** +> ApiResultLDAPEntity readLdapObject(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultLDAPEntity result = apiInstance.readLdapObject(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#readLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultLDAPEntity**](ApiResultLDAPEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **refreshLdapObject** +> ApiResultLdapRefreshResponse refreshLdapObject() + +refresh + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +try { + ApiResultLdapRefreshResponse result = apiInstance.refreshLdapObject(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#refreshLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultLdapRefreshResponse**](ApiResultLdapRefreshResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateLdapObject** +> ApiResultLDAPEntity updateLdapObject(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapObjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapObjectControllerApi apiInstance = new LdapObjectControllerApi(); +Long id = 789L; // Long | id +LDAPEntity resource = new LDAPEntity(); // LDAPEntity | resource +try { + ApiResultLDAPEntity result = apiInstance.updateLdapObject(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapObjectControllerApi#updateLdapObject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**LDAPEntity**](LDAPEntity.md)| resource | + +### Return type + +[**ApiResultLDAPEntity**](ApiResultLDAPEntity.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/LdapRefreshResponse.md b/docs/LdapRefreshResponse.md new file mode 100644 index 0000000..65cd08f --- /dev/null +++ b/docs/LdapRefreshResponse.md @@ -0,0 +1,10 @@ + +# LdapRefreshResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Job**](Job.md) | LDAP refresh job information | [optional] + + + diff --git a/docs/LdapServerControllerApi.md b/docs/LdapServerControllerApi.md new file mode 100644 index 0000000..578f153 --- /dev/null +++ b/docs/LdapServerControllerApi.md @@ -0,0 +1,448 @@ +# LdapServerControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createLdapServer**](LdapServerControllerApi.md#createLdapServer) | **POST** /ldapServers | create +[**deleteLdapServer**](LdapServerControllerApi.md#deleteLdapServer) | **DELETE** /ldapServers/{id} | delete +[**doCollectionActionLdapServer**](LdapServerControllerApi.md#doCollectionActionLdapServer) | **POST** /ldapServers/action | doCollectionAction +[**listLdapServer**](LdapServerControllerApi.md#listLdapServer) | **GET** /ldapServers | list +[**multiDeleteLdapServer**](LdapServerControllerApi.md#multiDeleteLdapServer) | **DELETE** /ldapServers | multiDelete +[**readLdapServer**](LdapServerControllerApi.md#readLdapServer) | **GET** /ldapServers/{id} | read +[**testLdapServer**](LdapServerControllerApi.md#testLdapServer) | **POST** /ldapServers/action/test | test +[**updateLdapServer**](LdapServerControllerApi.md#updateLdapServer) | **PUT** /ldapServers/{id} | update + + + +# **createLdapServer** +> ApiResultLdapServerDto createLdapServer(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +LdapServerDto resource = new LdapServerDto(); // LdapServerDto | resource +try { + ApiResultLdapServerDto result = apiInstance.createLdapServer(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#createLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**LdapServerDto**](LdapServerDto.md)| resource | + +### Return type + +[**ApiResultLdapServerDto**](ApiResultLdapServerDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteLdapServer** +> ApiResultVoid deleteLdapServer(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteLdapServer(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#deleteLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doCollectionActionLdapServer** +> ApiResultApiActionResponse doCollectionActionLdapServer(collectionAction) + +doCollectionAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doCollectionActionLdapServer(collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#doCollectionActionLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listLdapServer** +> ApiResultListLdapServerDto listLdapServer(fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListLdapServerDto result = apiInstance.listLdapServer(fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#listLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListLdapServerDto**](ApiResultListLdapServerDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteLdapServer** +> ApiResultVoid multiDeleteLdapServer(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteLdapServer(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#multiDeleteLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readLdapServer** +> ApiResultLdapServerDto readLdapServer(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultLdapServerDto result = apiInstance.readLdapServer(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#readLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultLdapServerDto**](ApiResultLdapServerDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **testLdapServer** +> ApiResultVoid testLdapServer(resource) + +test + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +LdapServerTestRequest resource = new LdapServerTestRequest(); // LdapServerTestRequest | resource +try { + ApiResultVoid result = apiInstance.testLdapServer(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#testLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**LdapServerTestRequest**](LdapServerTestRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateLdapServer** +> ApiResultLdapServerDto updateLdapServer(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LdapServerControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LdapServerControllerApi apiInstance = new LdapServerControllerApi(); +Long id = 789L; // Long | id +LdapServerDto resource = new LdapServerDto(); // LdapServerDto | resource +try { + ApiResultLdapServerDto result = apiInstance.updateLdapServer(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LdapServerControllerApi#updateLdapServer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**LdapServerDto**](LdapServerDto.md)| resource | + +### Return type + +[**ApiResultLdapServerDto**](ApiResultLdapServerDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/LdapServerDto.md b/docs/LdapServerDto.md new file mode 100644 index 0000000..2fa38cb --- /dev/null +++ b/docs/LdapServerDto.md @@ -0,0 +1,82 @@ + +# LdapServerDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributeDistinguishedName** | **String** | | +**attributeEmail** | **String** | | +**attributeFirstName** | **String** | | +**attributeGroupname** | **String** | | +**attributeLastName** | **String** | | +**attributeMember** | **String** | | +**attributeMemberOf** | **String** | | +**attributeObjectClass** | **String** | | +**attributeObjectSid** | **String** | | [optional] +**attributeOrgunitName** | **String** | | +**attributePassword** | **String** | | +**attributeThumbnailMimeDefault** | **String** | | [optional] +**attributeThumbnailPhoto** | **String** | | [optional] +**attributeUserName** | **String** | | +**authenticatorType** | [**AuthenticatorTypeEnum**](#AuthenticatorTypeEnum) | | +**baseDn** | **String** | Distinguished name (DN) of root (base) LDAP entity SSC has access to. If value is set to not empty entity's DN, SSC has access only to this entity and all its children. If value of this attribute is an empty string, SSC has access to whole LDAP entities tree | +**baseObjectSid** | **String** | | [optional] +**cacheEnabled** | **Boolean** | | +**cacheEvictionTime** | **Integer** | | +**cacheExecutorPoolSize** | **Integer** | | +**cacheExecutorPoolSizeMax** | **Integer** | | +**cacheMaxThreadsPerCache** | **Integer** | | +**checkSslHostname** | **Boolean** | | +**checkSslTrust** | **Boolean** | | +**classGroup** | **String** | | +**classOrgunit** | **String** | | +**classUser** | **String** | | +**defaultServer** | **Boolean** | Boolean flag that marks LDAP server as default. Default means the server which configuration was imported from ldap.properties legacy configuration file | +**enabled** | **Boolean** | Flag that marks server as enabled. All enabled servers are used by SSC. Server can be temporary disabled if it is temporary down. | +**id** | **Long** | LDAP Server id | +**ignorePartialResultException** | **Boolean** | | +**nestedGroupsEnabled** | **Boolean** | | +**objectVersion** | **Integer** | Version of the LDAP server entity to support editing LDAP server entity by multiply administrators | +**pageSize** | **Integer** | | +**pagingEnabled** | **Boolean** | | +**passwordEncoderType** | [**PasswordEncoderTypeEnum**](#PasswordEncoderTypeEnum) | | +**referralsProcessingStrategy** | [**ReferralsProcessingStrategyEnum**](#ReferralsProcessingStrategyEnum) | | +**saveWithoutValidation** | **Boolean** | | [optional] +**searchDns** | **String** | | [optional] +**serverName** | **String** | Name of the LDAP server to distinguish it from other servers | +**url** | **String** | | +**userDn** | **String** | | +**userPassword** | **String** | | +**userPhotoEnabled** | **Boolean** | | +**validationIdleTime** | **Integer** | | +**validationTimeLimit** | **Integer** | | + + + +## Enum: AuthenticatorTypeEnum +Name | Value +---- | ----- +BIND_AUTHENTICATOR | "BIND_AUTHENTICATOR" +PASSWORD_COMPARISON_AUTHENTICATOR | "PASSWORD_COMPARISON_AUTHENTICATOR" + + + +## Enum: PasswordEncoderTypeEnum +Name | Value +---- | ----- +NOT_SET | "NOT_SET" +LDAP_SHA_PASSWORD_ENCODER | "LDAP_SHA_PASSWORD_ENCODER" +MD4_PASSWORD_ENCODER | "MD4_PASSWORD_ENCODER" +MD5_PASSWORD_ENCODER | "MD5_PASSWORD_ENCODER" +SHA_PASSWORD_ENCODER | "SHA_PASSWORD_ENCODER" + + + +## Enum: ReferralsProcessingStrategyEnum +Name | Value +---- | ----- +IGNORE | "ignore" +FOLLOW | "follow" + + + diff --git a/docs/LdapServerTestRequest.md b/docs/LdapServerTestRequest.md new file mode 100644 index 0000000..b4ea207 --- /dev/null +++ b/docs/LdapServerTestRequest.md @@ -0,0 +1,10 @@ + +# LdapServerTestRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ldapConfig** | [**LdapServerDto**](LdapServerDto.md) | LDAP server information | + + + diff --git a/docs/License.md b/docs/License.md new file mode 100644 index 0000000..cf6132d --- /dev/null +++ b/docs/License.md @@ -0,0 +1,14 @@ + +# License + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capabilities** | [**List<LicenseCapability>**](LicenseCapability.md) | List of all license capabilities | [optional] +**creationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when license was created | [optional] +**description** | **String** | License description | [optional] +**expirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when license is going to be expired | [optional] +**ownerName** | **String** | Name of the license owner | [optional] + + + diff --git a/docs/LicenseCapability.md b/docs/LicenseCapability.md new file mode 100644 index 0000000..0415f9a --- /dev/null +++ b/docs/LicenseCapability.md @@ -0,0 +1,12 @@ + +# LicenseCapability + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | License capability expiration date | +**key** | **String** | License capability identifier | +**value** | **String** | License capability value | + + + diff --git a/docs/LicenseControllerApi.md b/docs/LicenseControllerApi.md new file mode 100644 index 0000000..605a496 --- /dev/null +++ b/docs/LicenseControllerApi.md @@ -0,0 +1,57 @@ +# LicenseControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getLicense**](LicenseControllerApi.md#getLicense) | **GET** /license | get + + + +# **getLicense** +> ApiResultLicense getLicense() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LicenseControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure HTTP basic authorization: Basic +HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); +Basic.setUsername("YOUR USERNAME"); +Basic.setPassword("YOUR PASSWORD"); + +LicenseControllerApi apiInstance = new LicenseControllerApi(); +try { + ApiResultLicense result = apiInstance.getLicense(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LicenseControllerApi#getLicense"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultLicense**](ApiResultLicense.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/LocalUser.md b/docs/LocalUser.md new file mode 100644 index 0000000..76e02d2 --- /dev/null +++ b/docs/LocalUser.md @@ -0,0 +1,22 @@ + +# LocalUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminPassword** | **String** | | [optional] +**clearPassword** | **String** | | [optional] +**dateFrozen** | [**OffsetDateTime**](OffsetDateTime.md) | Date user's account was frozen | +**email** | **String** | | +**failedLoginAttempts** | **Integer** | Number of failed login attempts | +**firstName** | **String** | | +**id** | **Long** | ID required when referencing an existing Local User | [optional] +**lastName** | **String** | | +**passwordNeverExpire** | **Boolean** | True if user's password never expires | +**requirePasswordChange** | **Boolean** | Is user required to change password on first login? | +**roles** | [**List<Role>**](Role.md) | List of Roles assigned to user | +**suspended** | **Boolean** | True if user's account is locked | +**userName** | **String** | | + + + diff --git a/docs/LocalUserControllerApi.md b/docs/LocalUserControllerApi.md new file mode 100644 index 0000000..e99c0df --- /dev/null +++ b/docs/LocalUserControllerApi.md @@ -0,0 +1,398 @@ +# LocalUserControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**checkLocalUser**](LocalUserControllerApi.md#checkLocalUser) | **POST** /localUsers/action/checkPasswordStrength | check +[**createLocalUser**](LocalUserControllerApi.md#createLocalUser) | **POST** /localUsers | create +[**deleteLocalUser**](LocalUserControllerApi.md#deleteLocalUser) | **DELETE** /localUsers/{id} | delete +[**listLocalUser**](LocalUserControllerApi.md#listLocalUser) | **GET** /localUsers | list +[**multiDeleteLocalUser**](LocalUserControllerApi.md#multiDeleteLocalUser) | **DELETE** /localUsers | multiDelete +[**readLocalUser**](LocalUserControllerApi.md#readLocalUser) | **GET** /localUsers/{id} | read +[**updateLocalUser**](LocalUserControllerApi.md#updateLocalUser) | **PUT** /localUsers/{id} | update + + + +# **checkLocalUser** +> ApiResultPasswordStrengthCheckResponse checkLocalUser(passwordStrengthCheckRequest) + +check + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +PasswordStrengthCheckRequest passwordStrengthCheckRequest = new PasswordStrengthCheckRequest(); // PasswordStrengthCheckRequest | passwordStrengthCheckRequest +try { + ApiResultPasswordStrengthCheckResponse result = apiInstance.checkLocalUser(passwordStrengthCheckRequest); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#checkLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **passwordStrengthCheckRequest** | [**PasswordStrengthCheckRequest**](PasswordStrengthCheckRequest.md)| passwordStrengthCheckRequest | + +### Return type + +[**ApiResultPasswordStrengthCheckResponse**](ApiResultPasswordStrengthCheckResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createLocalUser** +> ApiResultLocalUser createLocalUser(user) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +LocalUser user = new LocalUser(); // LocalUser | user +try { + ApiResultLocalUser result = apiInstance.createLocalUser(user); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#createLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | [**LocalUser**](LocalUser.md)| user | + +### Return type + +[**ApiResultLocalUser**](ApiResultLocalUser.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteLocalUser** +> ApiResultVoid deleteLocalUser(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteLocalUser(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#deleteLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listLocalUser** +> ApiResultListLocalUser listLocalUser(start, limit, q, orderby, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +String fields = "fields_example"; // String | Output fields +try { + ApiResultListLocalUser result = apiInstance.listLocalUser(start, limit, q, orderby, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#listLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListLocalUser**](ApiResultListLocalUser.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteLocalUser** +> ApiResultVoid multiDeleteLocalUser(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteLocalUser(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#multiDeleteLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readLocalUser** +> ApiResultLocalUser readLocalUser(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultLocalUser result = apiInstance.readLocalUser(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#readLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultLocalUser**](ApiResultLocalUser.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateLocalUser** +> ApiResultLocalUser updateLocalUser(id, user) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.LocalUserControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +LocalUserControllerApi apiInstance = new LocalUserControllerApi(); +Long id = 789L; // Long | id +LocalUser user = new LocalUser(); // LocalUser | user +try { + ApiResultLocalUser result = apiInstance.updateLocalUser(id, user); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling LocalUserControllerApi#updateLocalUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **user** | [**LocalUser**](LocalUser.md)| user | + +### Return type + +[**ApiResultLocalUser**](ApiResultLocalUser.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ParserPluginImageControllerApi.md b/docs/ParserPluginImageControllerApi.md new file mode 100644 index 0000000..cc1528d --- /dev/null +++ b/docs/ParserPluginImageControllerApi.md @@ -0,0 +1,66 @@ +# ParserPluginImageControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getParserPluginImage**](ParserPluginImageControllerApi.md#getParserPluginImage) | **GET** /pluginimage/parser | get + + + +# **getParserPluginImage** +> byte[] getParserPluginImage(imageType, engineType, dataVersion) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ParserPluginImageControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ParserPluginImageControllerApi apiInstance = new ParserPluginImageControllerApi(); +String imageType = "imageType_example"; // String | imageType +String engineType = "engineType_example"; // String | engineType +Long dataVersion = 789L; // Long | dataVersion +try { + byte[] result = apiInstance.getParserPluginImage(imageType, engineType, dataVersion); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ParserPluginImageControllerApi#getParserPluginImage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **imageType** | **String**| imageType | + **engineType** | **String**| engineType | + **dataVersion** | **Long**| dataVersion | + +### Return type + +**byte[]** + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: image/png + diff --git a/docs/PasswordStrengthCheckRequest.md b/docs/PasswordStrengthCheckRequest.md new file mode 100644 index 0000000..d4b41f1 --- /dev/null +++ b/docs/PasswordStrengthCheckRequest.md @@ -0,0 +1,11 @@ + +# PasswordStrengthCheckRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extraDictionary** | **List<String>** | Get additional words to add to dictionary. If null, current user data will be added (for example: username, first name, last name, email). | [optional] +**password** | **String** | Get password or it's part from input | + + + diff --git a/docs/PasswordStrengthCheckResponse.md b/docs/PasswordStrengthCheckResponse.md new file mode 100644 index 0000000..890b379 --- /dev/null +++ b/docs/PasswordStrengthCheckResponse.md @@ -0,0 +1,10 @@ + +# PasswordStrengthCheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **Integer** | Password strength score | [optional] + + + diff --git a/docs/PerformanceIndicator.md b/docs/PerformanceIndicator.md new file mode 100644 index 0000000..461dd32 --- /dev/null +++ b/docs/PerformanceIndicator.md @@ -0,0 +1,36 @@ + +# PerformanceIndicator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**equation** | **String** | | +**guid** | **String** | | [optional] +**id** | **Long** | | [optional] +**inUse** | **Boolean** | | [optional] +**name** | **String** | | +**objectVersion** | **Integer** | | [optional] +**publishVersion** | **Integer** | | [optional] +**range** | [**RangeEnum**](#RangeEnum) | | +**type** | [**TypeEnum**](#TypeEnum) | | [optional] +**variables** | [**List<Variable>**](Variable.md) | | [optional] + + + +## Enum: RangeEnum +Name | Value +---- | ----- +INTEGER | "Integer" +PERCENT | "Percent" + + + +## Enum: TypeEnum +Name | Value +---- | ----- +SYSTEM_DEFINED | "SYSTEM_DEFINED" +USER_DEFINED | "USER_DEFINED" + + + diff --git a/docs/PerformanceIndicatorControllerApi.md b/docs/PerformanceIndicatorControllerApi.md new file mode 100644 index 0000000..5380ebe --- /dev/null +++ b/docs/PerformanceIndicatorControllerApi.md @@ -0,0 +1,288 @@ +# PerformanceIndicatorControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createPerformanceIndicator**](PerformanceIndicatorControllerApi.md#createPerformanceIndicator) | **POST** /performanceIndicators | create +[**deletePerformanceIndicator**](PerformanceIndicatorControllerApi.md#deletePerformanceIndicator) | **DELETE** /performanceIndicators/{id} | delete +[**listPerformanceIndicator**](PerformanceIndicatorControllerApi.md#listPerformanceIndicator) | **GET** /performanceIndicators | list +[**multiDeletePerformanceIndicator**](PerformanceIndicatorControllerApi.md#multiDeletePerformanceIndicator) | **DELETE** /performanceIndicators | multiDelete +[**updatePerformanceIndicator**](PerformanceIndicatorControllerApi.md#updatePerformanceIndicator) | **PUT** /performanceIndicators/{id} | update + + + +# **createPerformanceIndicator** +> ApiResultPerformanceIndicator createPerformanceIndicator(data) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorControllerApi apiInstance = new PerformanceIndicatorControllerApi(); +PerformanceIndicator data = new PerformanceIndicator(); // PerformanceIndicator | data +try { + ApiResultPerformanceIndicator result = apiInstance.createPerformanceIndicator(data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorControllerApi#createPerformanceIndicator"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**PerformanceIndicator**](PerformanceIndicator.md)| data | + +### Return type + +[**ApiResultPerformanceIndicator**](ApiResultPerformanceIndicator.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deletePerformanceIndicator** +> ApiResultVoid deletePerformanceIndicator(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorControllerApi apiInstance = new PerformanceIndicatorControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deletePerformanceIndicator(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorControllerApi#deletePerformanceIndicator"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listPerformanceIndicator** +> ApiResultListPerformanceIndicator listPerformanceIndicator(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorControllerApi apiInstance = new PerformanceIndicatorControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListPerformanceIndicator result = apiInstance.listPerformanceIndicator(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorControllerApi#listPerformanceIndicator"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListPerformanceIndicator**](ApiResultListPerformanceIndicator.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeletePerformanceIndicator** +> ApiResultVoid multiDeletePerformanceIndicator(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorControllerApi apiInstance = new PerformanceIndicatorControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeletePerformanceIndicator(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorControllerApi#multiDeletePerformanceIndicator"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updatePerformanceIndicator** +> ApiResultPerformanceIndicator updatePerformanceIndicator(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorControllerApi apiInstance = new PerformanceIndicatorControllerApi(); +Long id = 789L; // Long | id +PerformanceIndicator resource = new PerformanceIndicator(); // PerformanceIndicator | resource +try { + ApiResultPerformanceIndicator result = apiInstance.updatePerformanceIndicator(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorControllerApi#updatePerformanceIndicator"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**PerformanceIndicator**](PerformanceIndicator.md)| resource | + +### Return type + +[**ApiResultPerformanceIndicator**](ApiResultPerformanceIndicator.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PerformanceIndicatorHistory.md b/docs/PerformanceIndicatorHistory.md new file mode 100644 index 0000000..1ca5ca8 --- /dev/null +++ b/docs/PerformanceIndicatorHistory.md @@ -0,0 +1,15 @@ + +# PerformanceIndicatorHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**id** | **String** | ID required when referencing an existing Performance Indicator History object | [optional] +**name** | **String** | | [optional] +**range** | **String** | Range of values | [optional] +**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**value** | **Float** | Required if referencing an existing Performance Indicator History object | + + + diff --git a/docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md b/docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md new file mode 100644 index 0000000..fc67657 --- /dev/null +++ b/docs/PerformanceIndicatorHistoryOfProjectVersionControllerApi.md @@ -0,0 +1,128 @@ +# PerformanceIndicatorHistoryOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listPerformanceIndicatorHistoryOfProjectVersion**](PerformanceIndicatorHistoryOfProjectVersionControllerApi.md#listPerformanceIndicatorHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/performanceIndicatorHistories | list +[**readPerformanceIndicatorHistoryOfProjectVersion**](PerformanceIndicatorHistoryOfProjectVersionControllerApi.md#readPerformanceIndicatorHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/performanceIndicatorHistories/{id} | read + + + +# **listPerformanceIndicatorHistoryOfProjectVersion** +> ApiResultListPerformanceIndicatorHistory listPerformanceIndicatorHistoryOfProjectVersion(parentId, fields, start, limit, q) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorHistoryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorHistoryOfProjectVersionControllerApi apiInstance = new PerformanceIndicatorHistoryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +try { + ApiResultListPerformanceIndicatorHistory result = apiInstance.listPerformanceIndicatorHistoryOfProjectVersion(parentId, fields, start, limit, q); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorHistoryOfProjectVersionControllerApi#listPerformanceIndicatorHistoryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + +### Return type + +[**ApiResultListPerformanceIndicatorHistory**](ApiResultListPerformanceIndicatorHistory.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readPerformanceIndicatorHistoryOfProjectVersion** +> ApiResultPerformanceIndicatorHistory readPerformanceIndicatorHistoryOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PerformanceIndicatorHistoryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PerformanceIndicatorHistoryOfProjectVersionControllerApi apiInstance = new PerformanceIndicatorHistoryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultPerformanceIndicatorHistory result = apiInstance.readPerformanceIndicatorHistoryOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PerformanceIndicatorHistoryOfProjectVersionControllerApi#readPerformanceIndicatorHistoryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultPerformanceIndicatorHistory**](ApiResultPerformanceIndicatorHistory.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Permission.md b/docs/Permission.md new file mode 100644 index 0000000..18e1951 --- /dev/null +++ b/docs/Permission.md @@ -0,0 +1,16 @@ + +# Permission + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignByDefault** | **Boolean** | | [optional] +**dependsOnPermission** | [**List<Permission>**](Permission.md) | Set of permissions this permission requires | +**description** | **String** | Permission description | +**id** | **String** | Permission id | [optional] +**name** | **String** | Permission name | +**permittedActions** | **List<String>** | Actions this permission is allowed to perform | +**userOnly** | **Boolean** | Flag is true if this permission can only be assigned to users, and not groups or organizations | + + + diff --git a/docs/PermissionControllerApi.md b/docs/PermissionControllerApi.md new file mode 100644 index 0000000..ee6a5a2 --- /dev/null +++ b/docs/PermissionControllerApi.md @@ -0,0 +1,126 @@ +# PermissionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listPermission**](PermissionControllerApi.md#listPermission) | **GET** /permissions | list +[**readPermission**](PermissionControllerApi.md#readPermission) | **GET** /permissions/{id} | read + + + +# **listPermission** +> ApiResultListPermission listPermission(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PermissionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PermissionControllerApi apiInstance = new PermissionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListPermission result = apiInstance.listPermission(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PermissionControllerApi#listPermission"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListPermission**](ApiResultListPermission.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readPermission** +> ApiResultPermission readPermission(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PermissionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PermissionControllerApi apiInstance = new PermissionControllerApi(); +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultPermission result = apiInstance.readPermission(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PermissionControllerApi#readPermission"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultPermission**](ApiResultPermission.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PermissionOfRoleControllerApi.md b/docs/PermissionOfRoleControllerApi.md new file mode 100644 index 0000000..d186f44 --- /dev/null +++ b/docs/PermissionOfRoleControllerApi.md @@ -0,0 +1,64 @@ +# PermissionOfRoleControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listPermissionOfRole**](PermissionOfRoleControllerApi.md#listPermissionOfRole) | **GET** /roles/{parentId}/permissions | list + + + +# **listPermissionOfRole** +> ApiResultListPermission listPermissionOfRole(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PermissionOfRoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PermissionOfRoleControllerApi apiInstance = new PermissionOfRoleControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListPermission result = apiInstance.listPermissionOfRole(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PermissionOfRoleControllerApi#listPermissionOfRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListPermission**](ApiResultListPermission.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PermissionRequiredByPermissionControllerApi.md b/docs/PermissionRequiredByPermissionControllerApi.md new file mode 100644 index 0000000..3048d17 --- /dev/null +++ b/docs/PermissionRequiredByPermissionControllerApi.md @@ -0,0 +1,68 @@ +# PermissionRequiredByPermissionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listPermissionRequiredByPermission**](PermissionRequiredByPermissionControllerApi.md#listPermissionRequiredByPermission) | **GET** /permissions/{parentId}/dependsOn | list + + + +# **listPermissionRequiredByPermission** +> ApiResultListPermission listPermissionRequiredByPermission(parentId, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PermissionRequiredByPermissionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PermissionRequiredByPermissionControllerApi apiInstance = new PermissionRequiredByPermissionControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListPermission result = apiInstance.listPermissionRequiredByPermission(parentId, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PermissionRequiredByPermissionControllerApi#listPermissionRequiredByPermission"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListPermission**](ApiResultListPermission.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Persona.md b/docs/Persona.md new file mode 100644 index 0000000..603391d --- /dev/null +++ b/docs/Persona.md @@ -0,0 +1,16 @@ + +# Persona + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | Persona description | +**guid** | **String** | Persona global unique identifier | +**id** | **Long** | Identifier | [optional] +**name** | **String** | Persona name | +**objectVersion** | **Integer** | Object version | +**publishVersion** | **Integer** | Publish version | +**superuser** | **Boolean** | Set to true if persona is super user | + + + diff --git a/docs/PersonaControllerApi.md b/docs/PersonaControllerApi.md new file mode 100644 index 0000000..b329bca --- /dev/null +++ b/docs/PersonaControllerApi.md @@ -0,0 +1,288 @@ +# PersonaControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createPersona**](PersonaControllerApi.md#createPersona) | **POST** /personas | create +[**deletePersona**](PersonaControllerApi.md#deletePersona) | **DELETE** /personas/{id} | delete +[**listPersona**](PersonaControllerApi.md#listPersona) | **GET** /personas | list +[**readPersona**](PersonaControllerApi.md#readPersona) | **GET** /personas/{id} | read +[**updatePersona**](PersonaControllerApi.md#updatePersona) | **PUT** /personas/{id} | update + + + +# **createPersona** +> ApiResultPersona createPersona(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PersonaControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PersonaControllerApi apiInstance = new PersonaControllerApi(); +Persona resource = new Persona(); // Persona | resource +try { + ApiResultPersona result = apiInstance.createPersona(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonaControllerApi#createPersona"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**Persona**](Persona.md)| resource | + +### Return type + +[**ApiResultPersona**](ApiResultPersona.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deletePersona** +> ApiResultVoid deletePersona(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PersonaControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PersonaControllerApi apiInstance = new PersonaControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deletePersona(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonaControllerApi#deletePersona"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listPersona** +> ApiResultListPersona listPersona(start, limit, q, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PersonaControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PersonaControllerApi apiInstance = new PersonaControllerApi(); +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String fields = "fields_example"; // String | Output fields +try { + ApiResultListPersona result = apiInstance.listPersona(start, limit, q, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonaControllerApi#listPersona"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListPersona**](ApiResultListPersona.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readPersona** +> ApiResultPersona readPersona(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PersonaControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PersonaControllerApi apiInstance = new PersonaControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultPersona result = apiInstance.readPersona(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonaControllerApi#readPersona"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultPersona**](ApiResultPersona.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updatePersona** +> ApiResultPersona updatePersona(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PersonaControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PersonaControllerApi apiInstance = new PersonaControllerApi(); +Long id = 789L; // Long | id +Persona resource = new Persona(); // Persona | resource +try { + ApiResultPersona result = apiInstance.updatePersona(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonaControllerApi#updatePersona"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**Persona**](Persona.md)| resource | + +### Return type + +[**ApiResultPersona**](ApiResultPersona.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PluginConfiguration.md b/docs/PluginConfiguration.md new file mode 100644 index 0000000..154b591 --- /dev/null +++ b/docs/PluginConfiguration.md @@ -0,0 +1,11 @@ + +# PluginConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parameterName** | **String** | | [optional] +**parameterType** | **String** | | [optional] + + + diff --git a/docs/PluginControllerApi.md b/docs/PluginControllerApi.md new file mode 100644 index 0000000..3a5a5e6 --- /dev/null +++ b/docs/PluginControllerApi.md @@ -0,0 +1,344 @@ +# PluginControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deletePlugin**](PluginControllerApi.md#deletePlugin) | **DELETE** /plugins/{id} | delete +[**disablePlugin**](PluginControllerApi.md#disablePlugin) | **POST** /plugins/action/disable | disable +[**doActionPlugin**](PluginControllerApi.md#doActionPlugin) | **POST** /plugins/{id}/action | doAction +[**enablePlugin**](PluginControllerApi.md#enablePlugin) | **POST** /plugins/action/enable | enable +[**listPlugin**](PluginControllerApi.md#listPlugin) | **GET** /plugins | list +[**readPlugin**](PluginControllerApi.md#readPlugin) | **GET** /plugins/{id} | read + + + +# **deletePlugin** +> ApiResultVoid deletePlugin(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deletePlugin(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#deletePlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **disablePlugin** +> ApiResultVoid disablePlugin(resource) + +disable + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +PluginDisableRequest resource = new PluginDisableRequest(); // PluginDisableRequest | resource +try { + ApiResultVoid result = apiInstance.disablePlugin(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#disablePlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**PluginDisableRequest**](PluginDisableRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionPlugin** +> ApiResultApiActionResponse doActionPlugin(id, apiResourceAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +Long id = 789L; // Long | id +ApiResourceAction apiResourceAction = new ApiResourceAction(); // ApiResourceAction | apiResourceAction +try { + ApiResultApiActionResponse result = apiInstance.doActionPlugin(id, apiResourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#doActionPlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **apiResourceAction** | [**ApiResourceAction**](ApiResourceAction.md)| apiResourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **enablePlugin** +> ApiResultVoid enablePlugin(resource) + +enable + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +PluginEnableRequest resource = new PluginEnableRequest(); // PluginEnableRequest | resource +try { + ApiResultVoid result = apiInstance.enablePlugin(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#enablePlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**PluginEnableRequest**](PluginEnableRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listPlugin** +> ApiResultListPluginMetaData listPlugin(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListPluginMetaData result = apiInstance.listPlugin(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#listPlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListPluginMetaData**](ApiResultListPluginMetaData.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readPlugin** +> ApiResultPluginMetaData readPlugin(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginControllerApi apiInstance = new PluginControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultPluginMetaData result = apiInstance.readPlugin(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginControllerApi#readPlugin"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultPluginMetaData**](ApiResultPluginMetaData.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PluginDisableRequest.md b/docs/PluginDisableRequest.md new file mode 100644 index 0000000..3d875de --- /dev/null +++ b/docs/PluginDisableRequest.md @@ -0,0 +1,10 @@ + +# PluginDisableRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pluginIds** | **List<Long>** | List containing single plugin ID to disable | + + + diff --git a/docs/PluginEnableRequest.md b/docs/PluginEnableRequest.md new file mode 100644 index 0000000..bc5d5b3 --- /dev/null +++ b/docs/PluginEnableRequest.md @@ -0,0 +1,10 @@ + +# PluginEnableRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pluginIds** | **List<Long>** | List containing single plugin ID to enable | + + + diff --git a/docs/PluginImageControllerApi.md b/docs/PluginImageControllerApi.md new file mode 100644 index 0000000..04ddbc0 --- /dev/null +++ b/docs/PluginImageControllerApi.md @@ -0,0 +1,64 @@ +# PluginImageControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPluginImage**](PluginImageControllerApi.md#getPluginImage) | **GET** /pluginimage | get + + + +# **getPluginImage** +> byte[] getPluginImage(imageType, metadataId) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginImageControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginImageControllerApi apiInstance = new PluginImageControllerApi(); +String imageType = "imageType_example"; // String | imageType +Long metadataId = 789L; // Long | metadataId +try { + byte[] result = apiInstance.getPluginImage(imageType, metadataId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginImageControllerApi#getPluginImage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **imageType** | **String**| imageType | + **metadataId** | **Long**| metadataId | + +### Return type + +**byte[]** + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: image/png + diff --git a/docs/PluginLocalization.md b/docs/PluginLocalization.md new file mode 100644 index 0000000..763e81d --- /dev/null +++ b/docs/PluginLocalization.md @@ -0,0 +1,9 @@ + +# PluginLocalization + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/docs/PluginLocalizationControllerApi.md b/docs/PluginLocalizationControllerApi.md new file mode 100644 index 0000000..a70ad0a --- /dev/null +++ b/docs/PluginLocalizationControllerApi.md @@ -0,0 +1,66 @@ +# PluginLocalizationControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**readPluginLocalization**](PluginLocalizationControllerApi.md#readPluginLocalization) | **GET** /pluginlocalization | read + + + +# **readPluginLocalization** +> ApiResultPluginLocalization readPluginLocalization(engineType, dataVersion, language) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.PluginLocalizationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +PluginLocalizationControllerApi apiInstance = new PluginLocalizationControllerApi(); +String engineType = "engineType_example"; // String | engineType +Integer dataVersion = 56; // Integer | dataVersion +String language = "language_example"; // String | language +try { + ApiResultPluginLocalization result = apiInstance.readPluginLocalization(engineType, dataVersion, language); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PluginLocalizationControllerApi#readPluginLocalization"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **engineType** | **String**| engineType | + **dataVersion** | **Integer**| dataVersion | + **language** | **String**| language | + +### Return type + +[**ApiResultPluginLocalization**](ApiResultPluginLocalization.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PluginMetaData.md b/docs/PluginMetaData.md new file mode 100644 index 0000000..9c39f42 --- /dev/null +++ b/docs/PluginMetaData.md @@ -0,0 +1,47 @@ + +# PluginMetaData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | Version string of the SSC plugin api used to develop the plugin | +**dataVersion** | **Integer** | An integer used to tag the set of issue attributes provided by this plugin. | +**description** | **String** | Plugin description | [optional] +**engineType** | **String** | Name of the scan engine supported by the plugin. Value is defined for parser plugins only | [optional] +**id** | **Long** | Plugin unique identifier | [optional] +**lastUsedOfKind** | **Boolean** | Tracks whether this plugin instance was the most recently used of its kind | +**pluginConfiguration** | [**List<PluginConfiguration>**](PluginConfiguration.md) | Additional configuration properties used by the plugin | +**pluginId** | **String** | Identifier of the plugin, usually a fully-qualified classname. Non-unique when multiple versions of same plugin exist | +**pluginName** | **String** | A string name for the plugin | +**pluginState** | [**PluginStateEnum**](#PluginStateEnum) | State of the plugin instance | +**pluginType** | [**PluginTypeEnum**](#PluginTypeEnum) | Denotes functionality of the plugin instance, such as scan parsing, bugtracker integration. | +**pluginVersion** | **String** | A version string of the implementation code of the plugin | +**supportedEngineVersions** | **String** | Versions of the scan engine results supported by the plugin. Value is defined for parser plugins only | [optional] +**systemInstalled** | **Boolean** | whether the plugin instance was installed by adding the jar to a special system folder | +**vendorName** | **String** | Name of the company / organization that developed the plugin | [optional] +**vendorUrl** | **String** | Plugin vendor's web site URL | [optional] + + + +## Enum: PluginStateEnum +Name | Value +---- | ----- +STOPPED | "STOPPED" +STARTING | "STARTING" +STARTED | "STARTED" +STOPPING | "STOPPING" +FAILED_TO_START | "FAILED_TO_START" +FAILED_TO_STOP | "FAILED_TO_STOP" +UNKNOWN | "UNKNOWN" + + + +## Enum: PluginTypeEnum +Name | Value +---- | ----- +SCAN_PARSER | "SCAN_PARSER" +BUG_TRACKER | "BUG_TRACKER" +LEGACY_BUG_TRACKER | "LEGACY_BUG_TRACKER" + + + diff --git a/docs/Project.md b/docs/Project.md new file mode 100644 index 0000000..555c84c --- /dev/null +++ b/docs/Project.md @@ -0,0 +1,15 @@ + +# Project + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdBy** | **String** | User that created this project | +**creationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date created | +**description** | **String** | Description | [optional] +**id** | **Long** | Id | [optional] +**issueTemplateId** | **String** | Id of the Issue Template used | +**name** | **String** | Name | + + + diff --git a/docs/ProjectControllerApi.md b/docs/ProjectControllerApi.md new file mode 100644 index 0000000..eceb9f2 --- /dev/null +++ b/docs/ProjectControllerApi.md @@ -0,0 +1,292 @@ +# ProjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doCollectionActionProject**](ProjectControllerApi.md#doCollectionActionProject) | **POST** /projects/action | doCollectionAction +[**listProject**](ProjectControllerApi.md#listProject) | **GET** /projects | list +[**readProject**](ProjectControllerApi.md#readProject) | **GET** /projects/{id} | read +[**testProject**](ProjectControllerApi.md#testProject) | **POST** /projects/action/test | test +[**updateProject**](ProjectControllerApi.md#updateProject) | **PUT** /projects/{id} | update + + + +# **doCollectionActionProject** +> ApiResultApiActionResponse doCollectionActionProject(apiResourceAction) + +doCollectionAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectControllerApi apiInstance = new ProjectControllerApi(); +ApiCollectionActionlong apiResourceAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | apiResourceAction +try { + ApiResultApiActionResponse result = apiInstance.doCollectionActionProject(apiResourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectControllerApi#doCollectionActionProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiResourceAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| apiResourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listProject** +> ApiResultListProject listProject(fields, start, limit, q, fulltextsearch, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectControllerApi apiInstance = new ProjectControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListProject result = apiInstance.listProject(fields, start, limit, q, fulltextsearch, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectControllerApi#listProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListProject**](ApiResultListProject.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readProject** +> ApiResultProject readProject(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectControllerApi apiInstance = new ProjectControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultProject result = apiInstance.readProject(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectControllerApi#readProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultProject**](ApiResultProject.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **testProject** +> ApiResultApplicationNameTestResponse testProject(resource) + +test + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectControllerApi apiInstance = new ProjectControllerApi(); +ApplicationNameTestRequest resource = new ApplicationNameTestRequest(); // ApplicationNameTestRequest | resource +try { + ApiResultApplicationNameTestResponse result = apiInstance.testProject(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectControllerApi#testProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ApplicationNameTestRequest**](ApplicationNameTestRequest.md)| resource | + +### Return type + +[**ApiResultApplicationNameTestResponse**](ApiResultApplicationNameTestResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateProject** +> ApiResultProject updateProject(id, data) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectControllerApi apiInstance = new ProjectControllerApi(); +Long id = 789L; // Long | id +Project data = new Project(); // Project | data +try { + ApiResultProject result = apiInstance.updateProject(id, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectControllerApi#updateProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **data** | [**Project**](Project.md)| data | + +### Return type + +[**ApiResultProject**](ApiResultProject.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersion.md b/docs/ProjectVersion.md new file mode 100644 index 0000000..57eab5b --- /dev/null +++ b/docs/ProjectVersion.md @@ -0,0 +1,63 @@ + +# ProjectVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | True if this version is active | +**assignedIssuesCount** | **Long** | | [optional] +**attachmentsOutOfDate** | **Boolean** | | [optional] +**autoPredict** | **Boolean** | true if auto-prediction is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission. | [optional] +**bugTrackerEnabled** | **Boolean** | true if the bug tracker plugin assigned to the application version is currently enabled in the system | +**bugTrackerPluginId** | **String** | identifier of the bug tracker plugin (if any) assigned to this application version | +**committed** | **Boolean** | True if this version is committed and ready to be used | +**createdBy** | **String** | User that created this version | +**creationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date this version was created | +**currentState** | [**ProjectVersionState**](ProjectVersionState.md) | | [optional] +**customTagValuesAutoApply** | **Boolean** | true if custom tag values auto-apply is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission. | [optional] +**description** | **String** | Description | +**id** | **Long** | Id | [optional] +**issueTemplateId** | **String** | Id of the Issue Template used by this version | +**issueTemplateModifiedTime** | **Long** | Last time the Issue Template was modified | +**issueTemplateName** | **String** | Name of the Issue Template used by this version | +**latestScanId** | **Long** | id of the latest scan uploaded to application version | +**loadProperties** | **String** | | [optional] +**masterAttrGuid** | **String** | Guid of the primary custom tag for this version | +**migrationVersion** | **Float** | | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | | [optional] +**name** | **String** | Name | +**obfuscatedId** | **String** | | [optional] +**owner** | **String** | Owner of this version | +**project** | [**Project**](Project.md) | | [optional] +**refreshRequired** | **Boolean** | | [optional] +**securityGroup** | **String** | | [optional] +**serverVersion** | **Float** | Server version this version's data supports | +**siteId** | **String** | | [optional] +**snapshotOutOfDate** | **Boolean** | True if the most recent snapshot is not accurate | +**sourceBasePath** | **String** | | [optional] +**staleIssueTemplate** | **Boolean** | True if this version's Issue Template has changed or been modified | +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**tracesOutOfDate** | **Boolean** | | [optional] + + + +## Enum: ModeEnum +Name | Value +---- | ----- +NONE | "NONE" +ASSESSMENT | "ASSESSMENT" +BASIC | "BASIC" +FULL | "FULL" + + + +## Enum: StatusEnum +Name | Value +---- | ----- +ACTIVE | "ACTIVE" +DELETING | "DELETING" +ARCHIVED | "ARCHIVED" +COPYING_ISSUES | "COPYING_ISSUES" + + + diff --git a/docs/ProjectVersionAuditByAssistantRequest.md b/docs/ProjectVersionAuditByAssistantRequest.md new file mode 100644 index 0000000..5f3fc9c --- /dev/null +++ b/docs/ProjectVersionAuditByAssistantRequest.md @@ -0,0 +1,10 @@ + +# ProjectVersionAuditByAssistantRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List containing single project version ID to send audit assistant | + + + diff --git a/docs/ProjectVersionAuthEntityAssignRequest.md b/docs/ProjectVersionAuthEntityAssignRequest.md new file mode 100644 index 0000000..0b5f518 --- /dev/null +++ b/docs/ProjectVersionAuthEntityAssignRequest.md @@ -0,0 +1,10 @@ + +# ProjectVersionAuthEntityAssignRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | Project version ids to assign auth entity | + + + diff --git a/docs/ProjectVersionBugTracker.md b/docs/ProjectVersionBugTracker.md new file mode 100644 index 0000000..8ce3076 --- /dev/null +++ b/docs/ProjectVersionBugTracker.md @@ -0,0 +1,15 @@ + +# ProjectVersionBugTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignedBugtrackerShortNameIfKnown** | **String** | the short display name of the bug tracker. (will be null if no bugtracker is assigned or if there is no currently installed plugin matching the assigned pluginId.) | +**assignedPluginId** | **String** | identifier of the bug tracker plugin assigned to the application version. (Bug tracker integration will be active only if the plugin is also enabled in the system.) | +**bugStateManagementConfig** | [**BugStateManagementCfg**](BugStateManagementCfg.md) | Bug state management configuration | +**bugTracker** | [**BugTracker**](BugTracker.md) | Bug tracker (note that this field will be null if the assigned bug tracker is not enabled in the SSC plugin framework.) | +**bugtrackerIsAssigned** | **Boolean** | indicates whether a bug tracker is assigned to the application version | +**clearAppVersionBugs** | **Boolean** | | [optional] + + + diff --git a/docs/ProjectVersionControllerApi.md b/docs/ProjectVersionControllerApi.md new file mode 100644 index 0000000..da8a128 --- /dev/null +++ b/docs/ProjectVersionControllerApi.md @@ -0,0 +1,786 @@ +# ProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**auditByAuditAssistantProjectVersion**](ProjectVersionControllerApi.md#auditByAuditAssistantProjectVersion) | **POST** /projectVersions/action/auditByAuditAssistant | auditByAuditAssistant +[**copyCurrentStateForProjectVersion**](ProjectVersionControllerApi.md#copyCurrentStateForProjectVersion) | **POST** /projectVersions/action/copyCurrentState | copyCurrentStateFor +[**copyProjectVersion**](ProjectVersionControllerApi.md#copyProjectVersion) | **POST** /projectVersions/action/copyFromPartial | copy +[**createProjectVersion**](ProjectVersionControllerApi.md#createProjectVersion) | **POST** /projectVersions | create +[**deleteProjectVersion**](ProjectVersionControllerApi.md#deleteProjectVersion) | **DELETE** /projectVersions/{id} | delete +[**doActionProjectVersion**](ProjectVersionControllerApi.md#doActionProjectVersion) | **POST** /projectVersions/{id}/action | doAction +[**doCollectionActionProjectVersion**](ProjectVersionControllerApi.md#doCollectionActionProjectVersion) | **POST** /projectVersions/action | doCollectionAction +[**listProjectVersion**](ProjectVersionControllerApi.md#listProjectVersion) | **GET** /projectVersions | list +[**purgeProjectVersion**](ProjectVersionControllerApi.md#purgeProjectVersion) | **POST** /projectVersions/action/purge | purge +[**readProjectVersion**](ProjectVersionControllerApi.md#readProjectVersion) | **GET** /projectVersions/{id} | read +[**refreshProjectVersion**](ProjectVersionControllerApi.md#refreshProjectVersion) | **POST** /projectVersions/action/refresh | refresh +[**testProjectVersion**](ProjectVersionControllerApi.md#testProjectVersion) | **POST** /projectVersions/action/test | test +[**trainAuditAssistantProjectVersion**](ProjectVersionControllerApi.md#trainAuditAssistantProjectVersion) | **POST** /projectVersions/action/trainAuditAssistant | trainAuditAssistant +[**updateProjectVersion**](ProjectVersionControllerApi.md#updateProjectVersion) | **PUT** /projectVersions/{id} | update + + + +# **auditByAuditAssistantProjectVersion** +> ApiResultVoid auditByAuditAssistantProjectVersion(resource) + +auditByAuditAssistant + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionAuditByAssistantRequest resource = new ProjectVersionAuditByAssistantRequest(); // ProjectVersionAuditByAssistantRequest | resource +try { + ApiResultVoid result = apiInstance.auditByAuditAssistantProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#auditByAuditAssistantProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionAuditByAssistantRequest**](ProjectVersionAuditByAssistantRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **copyCurrentStateForProjectVersion** +> ApiResultVoid copyCurrentStateForProjectVersion(resource) + +copyCurrentStateFor + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionCopyCurrentStateRequest resource = new ProjectVersionCopyCurrentStateRequest(); // ProjectVersionCopyCurrentStateRequest | resource +try { + ApiResultVoid result = apiInstance.copyCurrentStateForProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#copyCurrentStateForProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionCopyCurrentStateRequest**](ProjectVersionCopyCurrentStateRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **copyProjectVersion** +> ApiResultVoid copyProjectVersion(resource) + +copy + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionCopyPartialRequest resource = new ProjectVersionCopyPartialRequest(); // ProjectVersionCopyPartialRequest | resource +try { + ApiResultVoid result = apiInstance.copyProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#copyProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionCopyPartialRequest**](ProjectVersionCopyPartialRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createProjectVersion** +> ApiResultProjectVersion createProjectVersion(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersion resource = new ProjectVersion(); // ProjectVersion | resource +try { + ApiResultProjectVersion result = apiInstance.createProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#createProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersion**](ProjectVersion.md)| resource | + +### Return type + +[**ApiResultProjectVersion**](ApiResultProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteProjectVersion** +> ApiResultVoid deleteProjectVersion(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteProjectVersion(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#deleteProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionProjectVersion** +> ApiResultApiActionResponse doActionProjectVersion(id, resourceAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +Long id = 789L; // Long | id +ApiResourceAction resourceAction = new ApiResourceAction(); // ApiResourceAction | resourceAction +try { + ApiResultApiActionResponse result = apiInstance.doActionProjectVersion(id, resourceAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#doActionProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resourceAction** | [**ApiResourceAction**](ApiResourceAction.md)| resourceAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doCollectionActionProjectVersion** +> ApiResultApiActionResponse doCollectionActionProjectVersion(collectionAction) + +doCollectionAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doCollectionActionProjectVersion(collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#doCollectionActionProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listProjectVersion** +> ApiResultListProjectVersion listProjectVersion(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +Boolean includeInactive = false; // Boolean | includeInactive +Boolean myAssignedIssues = false; // Boolean | myAssignedIssues +Boolean onlyIfHasIssues = false; // Boolean | onlyIfHasIssues +try { + ApiResultListProjectVersion result = apiInstance.listProjectVersion(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#listProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + **includeInactive** | **Boolean**| includeInactive | [optional] [default to false] + **myAssignedIssues** | **Boolean**| myAssignedIssues | [optional] [default to false] + **onlyIfHasIssues** | **Boolean**| onlyIfHasIssues | [optional] [default to false] + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **purgeProjectVersion** +> ApiResultVoid purgeProjectVersion(resource) + +purge + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionPurgeRequest resource = new ProjectVersionPurgeRequest(); // ProjectVersionPurgeRequest | resource +try { + ApiResultVoid result = apiInstance.purgeProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#purgeProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionPurgeRequest**](ProjectVersionPurgeRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readProjectVersion** +> ApiResultProjectVersion readProjectVersion(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultProjectVersion result = apiInstance.readProjectVersion(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#readProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultProjectVersion**](ApiResultProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **refreshProjectVersion** +> ApiResultProjectVersionRefreshResponse refreshProjectVersion(resource) + +refresh + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionRefreshRequest resource = new ProjectVersionRefreshRequest(); // ProjectVersionRefreshRequest | resource +try { + ApiResultProjectVersionRefreshResponse result = apiInstance.refreshProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#refreshProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionRefreshRequest**](ProjectVersionRefreshRequest.md)| resource | + +### Return type + +[**ApiResultProjectVersionRefreshResponse**](ApiResultProjectVersionRefreshResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **testProjectVersion** +> ApiResultProjectVersionTestResponse testProjectVersion(projectVersionTestRequest) + +test + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionTestRequest projectVersionTestRequest = new ProjectVersionTestRequest(); // ProjectVersionTestRequest | projectVersionTestRequest +try { + ApiResultProjectVersionTestResponse result = apiInstance.testProjectVersion(projectVersionTestRequest); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#testProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectVersionTestRequest** | [**ProjectVersionTestRequest**](ProjectVersionTestRequest.md)| projectVersionTestRequest | + +### Return type + +[**ApiResultProjectVersionTestResponse**](ApiResultProjectVersionTestResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **trainAuditAssistantProjectVersion** +> ApiResultVoid trainAuditAssistantProjectVersion(resource) + +trainAuditAssistant + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +ProjectVersionTrainAuditAssistantRequest resource = new ProjectVersionTrainAuditAssistantRequest(); // ProjectVersionTrainAuditAssistantRequest | resource +try { + ApiResultVoid result = apiInstance.trainAuditAssistantProjectVersion(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#trainAuditAssistantProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ProjectVersionTrainAuditAssistantRequest**](ProjectVersionTrainAuditAssistantRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateProjectVersion** +> ApiResultProjectVersion updateProjectVersion(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionControllerApi apiInstance = new ProjectVersionControllerApi(); +Long id = 789L; // Long | id +ProjectVersion resource = new ProjectVersion(); // ProjectVersion | resource +try { + ApiResultProjectVersion result = apiInstance.updateProjectVersion(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionControllerApi#updateProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**ProjectVersion**](ProjectVersion.md)| resource | + +### Return type + +[**ApiResultProjectVersion**](ApiResultProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersionCopyCurrentStateRequest.md b/docs/ProjectVersionCopyCurrentStateRequest.md new file mode 100644 index 0000000..934e062 --- /dev/null +++ b/docs/ProjectVersionCopyCurrentStateRequest.md @@ -0,0 +1,12 @@ + +# ProjectVersionCopyCurrentStateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**copyCurrentStateFpr** | **Boolean** | Will copy current state fpr | +**previousProjectVersionId** | **Long** | Previous project version id | +**projectVersionId** | **Long** | Project version id | + + + diff --git a/docs/ProjectVersionCopyPartialRequest.md b/docs/ProjectVersionCopyPartialRequest.md new file mode 100644 index 0000000..9c5b767 --- /dev/null +++ b/docs/ProjectVersionCopyPartialRequest.md @@ -0,0 +1,15 @@ + +# ProjectVersionCopyPartialRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**copyAnalysisProcessingRules** | **Boolean** | Will copy analysis processing rules | +**copyBugTrackerConfiguration** | **Boolean** | Will copy bugtracker configuration | +**copyCurrentStateFpr** | **Boolean** | Will copy current state fpr | +**copyCustomTags** | **Boolean** | Will copy custom tags | +**previousProjectVersionId** | **Long** | Previous project version id | +**projectVersionId** | **Long** | Project version id | + + + diff --git a/docs/ProjectVersionIssue.md b/docs/ProjectVersionIssue.md new file mode 100644 index 0000000..458c1df --- /dev/null +++ b/docs/ProjectVersionIssue.md @@ -0,0 +1,55 @@ + +# ProjectVersionIssue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**analyzer** | **String** | Analyzer | +**audited** | **Boolean** | Flag is set for issues that has been audited and primary tag value was set for this issue. | [optional] +**bugURL** | **String** | Bug url | +**confidence** | **Float** | Issue confidence | +**displayEngineType** | **String** | Display name for engine type | +**engineCategory** | [**EngineCategoryEnum**](#EngineCategoryEnum) | Engine category | +**engineType** | **String** | Engine type | +**folderGuid** | **String** | Issue folder globally unique identifier | +**folderId** | **Long** | Deprecated - Issue folder identifier. This may be incorrect or invalid. Please use folderGuid instead. | +**foundDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when issue found | +**friority** | **String** | Friority | +**fullFileName** | **String** | Full file name where issue found | +**hasAttachments** | **Boolean** | Set to true if issue has attachments | +**hasCorrelatedIssues** | **Boolean** | Set to true if issue has other correlated issues | +**hidden** | **Boolean** | Set to true if issue is hidden | +**id** | **Long** | Project version issue identifier | [optional] +**impact** | **Float** | Issue impact | +**issueInstanceId** | **String** | Issue instance identifier | +**issueName** | **String** | Issue name | +**issueStatus** | **String** | Flag represents issue review status and can have 3 types of values: Unreviewed, Under Review, Reviewed. | [optional] +**kingdom** | **String** | Kingdom | +**lastScanId** | **Long** | ID of the latest scan that found the issue | [optional] +**likelihood** | **Float** | Likelihood of issue | +**lineNumber** | **Integer** | Line number where issue found | +**primaryLocation** | **String** | Issue primary location | +**primaryRuleGuid** | **String** | Primary rule global unique identifier | +**primaryTag** | **String** | Issue primary tag | +**primaryTagValueAutoApplied** | **Boolean** | Flag equals true if value of custom tag was applied automatically | [optional] +**projectName** | **String** | Project name | +**projectVersionId** | **Long** | Project version identifier | +**projectVersionName** | **String** | Project version name | +**removed** | **Boolean** | Set to true if issue is suppressed | +**removedDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when issue removed | +**reviewed** | **String** | Issue reviewer | +**revision** | **Integer** | Project version revision | +**scanStatus** | **String** | Scan status | +**severity** | **Float** | Issue severity | +**suppressed** | **Boolean** | Set to true if issue is suppressed | + + + +## Enum: EngineCategoryEnum +Name | Value +---- | ----- +STATIC | "STATIC" +DYNAMIC | "DYNAMIC" + + + diff --git a/docs/ProjectVersionIssueDetails.md b/docs/ProjectVersionIssueDetails.md new file mode 100644 index 0000000..302b6dd --- /dev/null +++ b/docs/ProjectVersionIssueDetails.md @@ -0,0 +1,108 @@ + +# ProjectVersionIssueDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accuracy** | **Float** | Vulnerability accuracy | [optional] +**analyzer** | **String** | Analyzer | +**assignedUser** | [**AssignedUser**](AssignedUser.md) | User assigned to issue | +**attackPayload** | **String** | Attack payload | +**attackType** | [**AttackTypeEnum**](#AttackTypeEnum) | Attack type | +**audited** | **Boolean** | Attribute is set to true if issue is audited (primary tag values is set for this issue) | +**brief** | **String** | Issue brief | +**className** | **String** | Name of class where the vulnerability has been found | [optional] +**confidence** | **Float** | Issue confidence | +**cookie** | **String** | Cookie | +**customAttributes** | **Object** | All the additional custom attributes defined for the issue by parser plugin | [optional] +**customTagValues** | [**List<CustomTag>**](CustomTag.md) | Custom tag values | +**dataVersion** | **Integer** | Version of the issue data. This attribute is initialized only for issues parsed by 3rd party parsers and is not set for the issues parsed by standard parsers included in SSC installation. | [optional] +**detail** | **String** | Issue detail | +**displayEngineType** | **String** | Display engine type | +**downloadRequest** | **Boolean** | Request contains binary or large data | +**downloadResponse** | **Boolean** | Response contains binary or large data\" | +**engineCategory** | [**EngineCategoryEnum**](#EngineCategoryEnum) | Engine category | +**engineType** | **String** | Engine type | +**foundDate** | [**OffsetDateTime**](OffsetDateTime.md) | Issue found date | +**friority** | **String** | Fortify priority order (Friority) | +**fullFileName** | **String** | Full file name where issue found | +**functionName** | **String** | Name of function located in the file where the vulnerability has been found | [optional] +**hasViewTemplate** | **Boolean** | Flag that indicates if there is a view template that should be used to display issue details on UI. | [optional] +**hidden** | **Boolean** | Set to true if issue is hidden | +**id** | **Long** | Identifier | [optional] +**impact** | **Float** | Issue impact | +**issueInstanceId** | **String** | Issue instance identifier | +**issueName** | **String** | Name of the issue category | +**issueState** | **String** | Flag represents issue state and says if issue is not an issue or open issue. Rule to calculate value of thi flag is defined in issue template. | +**issueStatus** | [**IssueStatusEnum**](#IssueStatusEnum) | Flag represents issue review status | [optional] +**kingdom** | **String** | Issue kingdom | +**lastScanId** | **Long** | ID of the latest scan that found the issue | [optional] +**likelihood** | **Float** | Issue likelihood | +**lineNumber** | **Integer** | Line number in the file where the vulnerability has been found | [optional] +**mappedCategory** | **String** | Name of the Fortify category of the vulnerability | [optional] +**method** | **String** | Method where issue found | +**minVirtualCallConfidence** | **Float** | Confidence level which estimates that vulnerability found in virtual (overridden) function will be executed by tainted source | [optional] +**packageName** | **String** | Name of package where the vulnerability has been found | [optional] +**primaryRuleGuid** | **String** | Primary rule global unique identifier | +**primaryTag** | [**IssuePrimaryTag**](IssuePrimaryTag.md) | Identifier, name and value of the custom tag that is selected as a primary tag for the project version the issue belongs to. | [optional] +**probability** | **Float** | Vulnerability probability | [optional] +**projectVersionId** | **Long** | Project version identifier | +**recommendation** | **String** | Issue recommendation | +**references** | **String** | References | +**remediationConstant** | **Float** | Level of complexity to fix this vulnerability | [optional] +**removedDate** | [**OffsetDateTime**](OffsetDateTime.md) | Issue removed date | +**requestBody** | **String** | Request body | +**requestHeader** | **String** | Request header | +**requestParameter** | **String** | Request parameter | +**requestTriggers** | [**List<Trigger>**](Trigger.md) | Triggers in the request | [optional] +**response** | **String** | Response | +**responseHeader** | **String** | Response header | +**responseTriggers** | [**List<Trigger>**](Trigger.md) | Triggers in the response | [optional] +**revision** | **Integer** | Revision number | +**scanStatus** | **String** | Scan status | +**severity** | **Float** | Issue severity | +**shortFileName** | **String** | Short file name where issue found | +**sink** | **String** | Taint sink name | [optional] +**sinkContext** | **String** | Name of the context that contains vulnerability sink | [optional] +**source** | **String** | Name of the a program point where tainted data enter the program | [optional] +**sourceContext** | **String** | Name of the context that contains vulnerability sources | [optional] +**sourceFile** | **String** | File name where vulnerability source is located. | [optional] +**sourceLine** | **Integer** | Line number in the source file where vulnerability source is located | [optional] +**suppressed** | **Boolean** | Set to true if issue is suppressed | +**taintFlag** | **String** | An attribute of tainted data that enables the data flow analyzer to discriminate between different types of taint | [optional] +**tips** | **String** | Issue tips | +**traceNodes** | [**List<List<TraceNodeDto>>**](List.md) | Issue trace nodes | +**triggerString** | **String** | Trigger string | +**url** | **String** | Issue url | +**vulnerableParameter** | **String** | Vulnerable parameter | + + + +## Enum: AttackTypeEnum +Name | Value +---- | ----- +URL | "URL" +REQUEST_HEADER | "REQUEST_HEADER" +REQUEST_COOKIE | "REQUEST_COOKIE" +PARAMETER | "PARAMETER" +MULTIPLE | "MULTIPLE" + + + +## Enum: EngineCategoryEnum +Name | Value +---- | ----- +STATIC | "STATIC" +DYNAMIC | "DYNAMIC" + + + +## Enum: IssueStatusEnum +Name | Value +---- | ----- +UNREVIEWED | "Unreviewed" +UNDER_REVIEW | "Under Review" +REVIEWED | "Reviewed" + + + diff --git a/docs/ProjectVersionIssueGroup.md b/docs/ProjectVersionIssueGroup.md new file mode 100644 index 0000000..03fa303 --- /dev/null +++ b/docs/ProjectVersionIssueGroup.md @@ -0,0 +1,15 @@ + +# ProjectVersionIssueGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auditedCount** | **Integer** | Audited issue count | +**cleanName** | **String** | Issue group name not containing count, dashes etc | +**id** | **String** | Identifier | +**name** | **String** | Issue group name | +**totalCount** | **Integer** | Issue total count | +**visibleCount** | **Integer** | Visible issues count | + + + diff --git a/docs/ProjectVersionOfAlertDefinitionControllerApi.md b/docs/ProjectVersionOfAlertDefinitionControllerApi.md new file mode 100644 index 0000000..21d08d9 --- /dev/null +++ b/docs/ProjectVersionOfAlertDefinitionControllerApi.md @@ -0,0 +1,72 @@ +# ProjectVersionOfAlertDefinitionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listProjectVersionOfAlertDefinition**](ProjectVersionOfAlertDefinitionControllerApi.md#listProjectVersionOfAlertDefinition) | **GET** /alertDefinitions/{parentId}/projectVersions | list + + + +# **listProjectVersionOfAlertDefinition** +> ApiResultListProjectVersion listProjectVersionOfAlertDefinition(parentId, fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAlertDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAlertDefinitionControllerApi apiInstance = new ProjectVersionOfAlertDefinitionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListProjectVersion result = apiInstance.listProjectVersionOfAlertDefinition(parentId, fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAlertDefinitionControllerApi#listProjectVersionOfAlertDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersionOfAuthEntityControllerApi.md b/docs/ProjectVersionOfAuthEntityControllerApi.md new file mode 100644 index 0000000..d9f3b4e --- /dev/null +++ b/docs/ProjectVersionOfAuthEntityControllerApi.md @@ -0,0 +1,294 @@ +# ProjectVersionOfAuthEntityControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignProjectVersionOfAuthEntity**](ProjectVersionOfAuthEntityControllerApi.md#assignProjectVersionOfAuthEntity) | **POST** /authEntities/{parentId}/projectVersions/action/assign | assign +[**doActionProjectVersionOfAuthEntity**](ProjectVersionOfAuthEntityControllerApi.md#doActionProjectVersionOfAuthEntity) | **POST** /authEntities/{parentId}/projectVersions/action | doAction +[**listProjectVersionOfAuthEntity**](ProjectVersionOfAuthEntityControllerApi.md#listProjectVersionOfAuthEntity) | **GET** /authEntities/{parentId}/projectVersions | list +[**multiDeleteProjectVersionOfAuthEntity**](ProjectVersionOfAuthEntityControllerApi.md#multiDeleteProjectVersionOfAuthEntity) | **DELETE** /authEntities/{parentId}/projectVersions | multiDelete +[**updateProjectVersionOfAuthEntity**](ProjectVersionOfAuthEntityControllerApi.md#updateProjectVersionOfAuthEntity) | **PUT** /authEntities/{parentId}/projectVersions | update + + + +# **assignProjectVersionOfAuthEntity** +> ApiResultVoid assignProjectVersionOfAuthEntity(parentId, resource) + +assign + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAuthEntityControllerApi apiInstance = new ProjectVersionOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +ProjectVersionAuthEntityAssignRequest resource = new ProjectVersionAuthEntityAssignRequest(); // ProjectVersionAuthEntityAssignRequest | resource +try { + ApiResultVoid result = apiInstance.assignProjectVersionOfAuthEntity(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAuthEntityControllerApi#assignProjectVersionOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**ProjectVersionAuthEntityAssignRequest**](ProjectVersionAuthEntityAssignRequest.md)| resource | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionProjectVersionOfAuthEntity** +> ApiResultApiActionResponse doActionProjectVersionOfAuthEntity(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAuthEntityControllerApi apiInstance = new ProjectVersionOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionProjectVersionOfAuthEntity(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAuthEntityControllerApi#doActionProjectVersionOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listProjectVersionOfAuthEntity** +> ApiResultListProjectVersion listProjectVersionOfAuthEntity(parentId, start, limit, q, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAuthEntityControllerApi apiInstance = new ProjectVersionOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String fields = "fields_example"; // String | Output fields +try { + ApiResultListProjectVersion result = apiInstance.listProjectVersionOfAuthEntity(parentId, start, limit, q, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAuthEntityControllerApi#listProjectVersionOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteProjectVersionOfAuthEntity** +> ApiResultVoid multiDeleteProjectVersionOfAuthEntity(parentId, ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAuthEntityControllerApi apiInstance = new ProjectVersionOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteProjectVersionOfAuthEntity(parentId, ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAuthEntityControllerApi#multiDeleteProjectVersionOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **ids** | **String**| A comma-separated list of resource identifiers | [optional] + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateProjectVersionOfAuthEntity** +> ApiResultListProjectVersion updateProjectVersionOfAuthEntity(parentId, resources) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfAuthEntityControllerApi apiInstance = new ProjectVersionOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +List resources = Arrays.asList(new List()); // List | resources +try { + ApiResultListProjectVersion result = apiInstance.updateProjectVersionOfAuthEntity(parentId, resources); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfAuthEntityControllerApi#updateProjectVersionOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resources** | **List<Long>**| resources | + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersionOfCloudPoolControllerApi.md b/docs/ProjectVersionOfCloudPoolControllerApi.md new file mode 100644 index 0000000..6652b77 --- /dev/null +++ b/docs/ProjectVersionOfCloudPoolControllerApi.md @@ -0,0 +1,238 @@ +# ProjectVersionOfCloudPoolControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignProjectVersionOfCloudPool**](ProjectVersionOfCloudPoolControllerApi.md#assignProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action/assign | assign +[**doActionProjectVersionOfCloudPool**](ProjectVersionOfCloudPoolControllerApi.md#doActionProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action | doAction +[**listProjectVersionOfCloudPool**](ProjectVersionOfCloudPoolControllerApi.md#listProjectVersionOfCloudPool) | **GET** /cloudpools/{parentId}/versions | list +[**replaceProjectVersionOfCloudPool**](ProjectVersionOfCloudPoolControllerApi.md#replaceProjectVersionOfCloudPool) | **POST** /cloudpools/{parentId}/versions/action/replace | replace + + + +# **assignProjectVersionOfCloudPool** +> ApiResultCloudPoolProjectVersionActionResponse assignProjectVersionOfCloudPool(parentId, resource) + +assign + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfCloudPoolControllerApi apiInstance = new ProjectVersionOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +CloudPoolProjectVersionAssignRequest resource = new CloudPoolProjectVersionAssignRequest(); // CloudPoolProjectVersionAssignRequest | resource +try { + ApiResultCloudPoolProjectVersionActionResponse result = apiInstance.assignProjectVersionOfCloudPool(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfCloudPoolControllerApi#assignProjectVersionOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **resource** | [**CloudPoolProjectVersionAssignRequest**](CloudPoolProjectVersionAssignRequest.md)| resource | + +### Return type + +[**ApiResultCloudPoolProjectVersionActionResponse**](ApiResultCloudPoolProjectVersionActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **doActionProjectVersionOfCloudPool** +> ApiResultApiActionResponse doActionProjectVersionOfCloudPool(parentId, collectionAction) + +doAction + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfCloudPoolControllerApi apiInstance = new ProjectVersionOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction +try { + ApiResultApiActionResponse result = apiInstance.doActionProjectVersionOfCloudPool(parentId, collectionAction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfCloudPoolControllerApi#doActionProjectVersionOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **collectionAction** | [**ApiCollectionActionlong**](ApiCollectionActionlong.md)| collectionAction | + +### Return type + +[**ApiResultApiActionResponse**](ApiResultApiActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listProjectVersionOfCloudPool** +> ApiResultListProjectVersion listProjectVersionOfCloudPool(parentId, fields, start, limit, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfCloudPoolControllerApi apiInstance = new ProjectVersionOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListProjectVersion result = apiInstance.listProjectVersionOfCloudPool(parentId, fields, start, limit, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfCloudPoolControllerApi#listProjectVersionOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **replaceProjectVersionOfCloudPool** +> ApiResultCloudPoolProjectVersionActionResponse replaceProjectVersionOfCloudPool(parentId, resource) + +replace + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfCloudPoolControllerApi apiInstance = new ProjectVersionOfCloudPoolControllerApi(); +String parentId = "parentId_example"; // String | parentId +CloudPoolProjectVersionReplaceRequest resource = new CloudPoolProjectVersionReplaceRequest(); // CloudPoolProjectVersionReplaceRequest | resource +try { + ApiResultCloudPoolProjectVersionActionResponse result = apiInstance.replaceProjectVersionOfCloudPool(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfCloudPoolControllerApi#replaceProjectVersionOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **String**| parentId | + **resource** | [**CloudPoolProjectVersionReplaceRequest**](CloudPoolProjectVersionReplaceRequest.md)| resource | + +### Return type + +[**ApiResultCloudPoolProjectVersionActionResponse**](ApiResultCloudPoolProjectVersionActionResponse.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersionOfProjectControllerApi.md b/docs/ProjectVersionOfProjectControllerApi.md new file mode 100644 index 0000000..4157939 --- /dev/null +++ b/docs/ProjectVersionOfProjectControllerApi.md @@ -0,0 +1,134 @@ +# ProjectVersionOfProjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createProjectVersionOfProject**](ProjectVersionOfProjectControllerApi.md#createProjectVersionOfProject) | **POST** /projects/{parentId}/versions | create +[**listProjectVersionOfProject**](ProjectVersionOfProjectControllerApi.md#listProjectVersionOfProject) | **GET** /projects/{parentId}/versions | list + + + +# **createProjectVersionOfProject** +> ApiResultProjectVersion createProjectVersionOfProject(parentId, resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfProjectControllerApi apiInstance = new ProjectVersionOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +ProjectVersion resource = new ProjectVersion(); // ProjectVersion | resource +try { + ApiResultProjectVersion result = apiInstance.createProjectVersionOfProject(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfProjectControllerApi#createProjectVersionOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**ProjectVersion**](ProjectVersion.md)| resource | + +### Return type + +[**ApiResultProjectVersion**](ApiResultProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listProjectVersionOfProject** +> ApiResultListProjectVersion listProjectVersionOfProject(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ProjectVersionOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ProjectVersionOfProjectControllerApi apiInstance = new ProjectVersionOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String orderby = "orderby_example"; // String | Fields to order by +Boolean includeInactive = false; // Boolean | includeInactive +Boolean myAssignedIssues = false; // Boolean | myAssignedIssues +try { + ApiResultListProjectVersion result = apiInstance.listProjectVersionOfProject(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ProjectVersionOfProjectControllerApi#listProjectVersionOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **orderby** | **String**| Fields to order by | [optional] + **includeInactive** | **Boolean**| includeInactive | [optional] [default to false] + **myAssignedIssues** | **Boolean**| myAssignedIssues | [optional] [default to false] + +### Return type + +[**ApiResultListProjectVersion**](ApiResultListProjectVersion.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ProjectVersionPurgeRequest.md b/docs/ProjectVersionPurgeRequest.md new file mode 100644 index 0000000..36e8c81 --- /dev/null +++ b/docs/ProjectVersionPurgeRequest.md @@ -0,0 +1,10 @@ + +# ProjectVersionPurgeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List containing single project version ID to purge | + + + diff --git a/docs/ProjectVersionRefreshRequest.md b/docs/ProjectVersionRefreshRequest.md new file mode 100644 index 0000000..739ac15 --- /dev/null +++ b/docs/ProjectVersionRefreshRequest.md @@ -0,0 +1,10 @@ + +# ProjectVersionRefreshRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List containing single project version ID to refresh | + + + diff --git a/docs/ProjectVersionRefreshResponse.md b/docs/ProjectVersionRefreshResponse.md new file mode 100644 index 0000000..b7b221c --- /dev/null +++ b/docs/ProjectVersionRefreshResponse.md @@ -0,0 +1,10 @@ + +# ProjectVersionRefreshResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**FortifyJob**](FortifyJob.md) | Triggered history snapshot job information | [optional] + + + diff --git a/docs/ProjectVersionState.md b/docs/ProjectVersionState.md new file mode 100644 index 0000000..c2f90bb --- /dev/null +++ b/docs/ProjectVersionState.md @@ -0,0 +1,25 @@ + +# ProjectVersionState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**analysisResultsExist** | **Boolean** | | +**analysisUploadEnabled** | **Boolean** | | +**attentionRequired** | **Boolean** | | +**auditEnabled** | **Boolean** | | +**batchBugSubmissionExists** | **Boolean** | | +**committed** | **Boolean** | False if Project Version is in an incomplete state | +**criticalPriorityIssueCountDelta** | **Integer** | | +**deltaPeriod** | **Integer** | | +**extraMessage** | **String** | | +**hasCustomIssues** | **Boolean** | | +**id** | **Long** | | +**issueCountDelta** | **Integer** | | +**lastFprUploadDate** | [**OffsetDateTime**](OffsetDateTime.md) | | +**metricEvaluationDate** | [**OffsetDateTime**](OffsetDateTime.md) | | +**percentAuditedDelta** | **Float** | | +**percentCriticalPriorityIssuesAuditedDelta** | **Float** | | + + + diff --git a/docs/ProjectVersionTestRequest.md b/docs/ProjectVersionTestRequest.md new file mode 100644 index 0000000..201ec19 --- /dev/null +++ b/docs/ProjectVersionTestRequest.md @@ -0,0 +1,11 @@ + +# ProjectVersionTestRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectName** | **String** | Project name to search | +**projectVersionName** | **String** | Project version name to search | + + + diff --git a/docs/ProjectVersionTestResponse.md b/docs/ProjectVersionTestResponse.md new file mode 100644 index 0000000..f5f7738 --- /dev/null +++ b/docs/ProjectVersionTestResponse.md @@ -0,0 +1,10 @@ + +# ProjectVersionTestResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**found** | **Boolean** | If the application version founds | [optional] + + + diff --git a/docs/ProjectVersionTrainAuditAssistantRequest.md b/docs/ProjectVersionTrainAuditAssistantRequest.md new file mode 100644 index 0000000..5d14667 --- /dev/null +++ b/docs/ProjectVersionTrainAuditAssistantRequest.md @@ -0,0 +1,10 @@ + +# ProjectVersionTrainAuditAssistantRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projectVersionIds** | **List<Long>** | List containing single project version ID to send training for audit assistant | + + + diff --git a/docs/ReportAuthEntity.md b/docs/ReportAuthEntity.md new file mode 100644 index 0000000..6f91e09 --- /dev/null +++ b/docs/ReportAuthEntity.md @@ -0,0 +1,13 @@ + +# ReportAuthEntity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**firstName** | **String** | First name | [optional] +**id** | **Long** | | [optional] +**lastName** | **String** | Last name | [optional] +**userName** | **String** | User name | + + + diff --git a/docs/ReportDefinition.md b/docs/ReportDefinition.md new file mode 100644 index 0000000..5ed8b79 --- /dev/null +++ b/docs/ReportDefinition.md @@ -0,0 +1,36 @@ + +# ReportDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**crossApp** | **Boolean** | True if report applies to multiple project versions | [optional] +**description** | **String** | Report description | [optional] +**fileName** | **String** | The name of the report definition file | [optional] +**guid** | **String** | Report definition GUID | [optional] +**id** | **Long** | Report definition identifier | +**inUse** | **Boolean** | Indicates whether the report definition is in use | [optional] +**name** | **String** | Report name | +**objectVersion** | **Integer** | Object version | [optional] +**parameters** | [**List<ReportParameter>**](ReportParameter.md) | List of report parameters | [optional] +**publishVersion** | **Integer** | Publish version | [optional] +**renderingEngine** | **String** | The engine used to render the report, e.g. BIRT | [optional] +**templateDocId** | **Long** | Template doc identifier | [optional] +**type** | [**TypeEnum**](#TypeEnum) | Type of report | +**typeDefaultText** | **String** | Report type default text | [optional] + + + +## Enum: TypeEnum +Name | Value +---- | ----- +APPLICATION_REPORTS | "Application Reports" +SSA_APPLICATION_REPORTS | "SSA Application Reports" +SSA_PORTFOLIO_REPORTS | "SSA Portfolio Reports" +PORTFOLIO_REPORTS | "Portfolio Reports" +COMPLIANCE_REPORTS | "Compliance Reports" +ISSUE_REPORTS | "Issue Reports" +RUNTIME_APPLICATION_REPORTS | "Runtime Application Reports" + + + diff --git a/docs/ReportDefinitionControllerApi.md b/docs/ReportDefinitionControllerApi.md new file mode 100644 index 0000000..cc1c0a7 --- /dev/null +++ b/docs/ReportDefinitionControllerApi.md @@ -0,0 +1,344 @@ +# ReportDefinitionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createReportDefinition**](ReportDefinitionControllerApi.md#createReportDefinition) | **POST** /reportDefinitions | create +[**deleteReportDefinition**](ReportDefinitionControllerApi.md#deleteReportDefinition) | **DELETE** /reportDefinitions/{id} | delete +[**listReportDefinition**](ReportDefinitionControllerApi.md#listReportDefinition) | **GET** /reportDefinitions | list +[**multiDeleteReportDefinition**](ReportDefinitionControllerApi.md#multiDeleteReportDefinition) | **DELETE** /reportDefinitions | multiDelete +[**readReportDefinition**](ReportDefinitionControllerApi.md#readReportDefinition) | **GET** /reportDefinitions/{id} | read +[**updateReportDefinition**](ReportDefinitionControllerApi.md#updateReportDefinition) | **PUT** /reportDefinitions/{id} | update + + + +# **createReportDefinition** +> ApiResultReportDefinition createReportDefinition(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +ReportDefinition resource = new ReportDefinition(); // ReportDefinition | resource +try { + ApiResultReportDefinition result = apiInstance.createReportDefinition(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#createReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ReportDefinition**](ReportDefinition.md)| resource | + +### Return type + +[**ApiResultReportDefinition**](ApiResultReportDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteReportDefinition** +> ApiResultVoid deleteReportDefinition(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteReportDefinition(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#deleteReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listReportDefinition** +> ApiResultListReportDefinition listReportDefinition(fields, start, limit, q, groupby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String groupby = "groupby_example"; // String | Fields to group by +try { + ApiResultListReportDefinition result = apiInstance.listReportDefinition(fields, start, limit, q, groupby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#listReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **groupby** | **String**| Fields to group by | [optional] + +### Return type + +[**ApiResultListReportDefinition**](ApiResultListReportDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteReportDefinition** +> ApiResultVoid multiDeleteReportDefinition(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteReportDefinition(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#multiDeleteReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readReportDefinition** +> ApiResultReportDefinition readReportDefinition(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultReportDefinition result = apiInstance.readReportDefinition(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#readReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultReportDefinition**](ApiResultReportDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateReportDefinition** +> ApiResultReportDefinition updateReportDefinition(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportDefinitionControllerApi apiInstance = new ReportDefinitionControllerApi(); +Long id = 789L; // Long | id +ReportDefinition resource = new ReportDefinition(); // ReportDefinition | resource +try { + ApiResultReportDefinition result = apiInstance.updateReportDefinition(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportDefinitionControllerApi#updateReportDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**ReportDefinition**](ReportDefinition.md)| resource | + +### Return type + +[**ApiResultReportDefinition**](ApiResultReportDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ReportLibrary.md b/docs/ReportLibrary.md new file mode 100644 index 0000000..442e24f --- /dev/null +++ b/docs/ReportLibrary.md @@ -0,0 +1,16 @@ + +# ReportLibrary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**fileDocId** | **Long** | Report library file doc identifier | [optional] +**guid** | **String** | Report library unique identifier | +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**objectVersion** | **Integer** | Object version | [optional] +**publishVersion** | **Integer** | Publish version | [optional] + + + diff --git a/docs/ReportLibraryControllerApi.md b/docs/ReportLibraryControllerApi.md new file mode 100644 index 0000000..e574d6e --- /dev/null +++ b/docs/ReportLibraryControllerApi.md @@ -0,0 +1,340 @@ +# ReportLibraryControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createReportLibrary**](ReportLibraryControllerApi.md#createReportLibrary) | **POST** /reportLibraries | create +[**deleteReportLibrary**](ReportLibraryControllerApi.md#deleteReportLibrary) | **DELETE** /reportLibraries/{id} | delete +[**listReportLibrary**](ReportLibraryControllerApi.md#listReportLibrary) | **GET** /reportLibraries | list +[**multiDeleteReportLibrary**](ReportLibraryControllerApi.md#multiDeleteReportLibrary) | **DELETE** /reportLibraries | multiDelete +[**readReportLibrary**](ReportLibraryControllerApi.md#readReportLibrary) | **GET** /reportLibraries/{id} | read +[**updateReportLibrary**](ReportLibraryControllerApi.md#updateReportLibrary) | **PUT** /reportLibraries/{id} | update + + + +# **createReportLibrary** +> ApiResultReportLibrary createReportLibrary(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +ReportLibrary resource = new ReportLibrary(); // ReportLibrary | resource +try { + ApiResultReportLibrary result = apiInstance.createReportLibrary(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#createReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**ReportLibrary**](ReportLibrary.md)| resource | + +### Return type + +[**ApiResultReportLibrary**](ApiResultReportLibrary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteReportLibrary** +> ApiResultVoid deleteReportLibrary(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteReportLibrary(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#deleteReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listReportLibrary** +> ApiResultListReportLibrary listReportLibrary(fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListReportLibrary result = apiInstance.listReportLibrary(fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#listReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListReportLibrary**](ApiResultListReportLibrary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteReportLibrary** +> ApiResultVoid multiDeleteReportLibrary(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteReportLibrary(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#multiDeleteReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readReportLibrary** +> ApiResultReportLibrary readReportLibrary(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultReportLibrary result = apiInstance.readReportLibrary(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#readReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultReportLibrary**](ApiResultReportLibrary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateReportLibrary** +> ApiResultReportLibrary updateReportLibrary(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ReportLibraryControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ReportLibraryControllerApi apiInstance = new ReportLibraryControllerApi(); +Long id = 789L; // Long | id +ReportLibrary resource = new ReportLibrary(); // ReportLibrary | resource +try { + ApiResultReportLibrary result = apiInstance.updateReportLibrary(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReportLibraryControllerApi#updateReportLibrary"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**ReportLibrary**](ReportLibrary.md)| resource | + +### Return type + +[**ApiResultReportLibrary**](ApiResultReportLibrary.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ReportParameter.md b/docs/ReportParameter.md new file mode 100644 index 0000000..98a2065 --- /dev/null +++ b/docs/ReportParameter.md @@ -0,0 +1,35 @@ + +# ReportParameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**id** | **Long** | | [optional] +**identifier** | **String** | Report parameter identifier | +**name** | **String** | | [optional] +**paramOrder** | **Integer** | Order in which the parameter should appear | [optional] +**reportDefinitionId** | **Long** | Report definition identifier | +**reportParameterOptions** | [**List<ReportParameterOption>**](ReportParameterOption.md) | Report parameter options | [optional] +**type** | [**TypeEnum**](#TypeEnum) | Report parameter type | + + + +## Enum: TypeEnum +Name | Value +---- | ----- +SINGLE_PROJECT | "SINGLE_PROJECT" +SINGLE_RUNTIME_APP | "SINGLE_RUNTIME_APP" +SINGLE_SSA_PROJECT | "SINGLE_SSA_PROJECT" +MULTI_PROJECT | "MULTI_PROJECT" +MULTI_RUNTIME_APP | "MULTI_RUNTIME_APP" +MULTI_SSA_PROJECT | "MULTI_SSA_PROJECT" +PROJECT_ATTRIBUTE | "PROJECT_ATTRIBUTE" +STRING | "STRING" +BOOLEAN | "BOOLEAN" +DATE | "DATE" +SINGLE_SELECT_DEFAULT | "SINGLE_SELECT_DEFAULT" +METADEF_GUID | "METADEF_GUID" + + + diff --git a/docs/ReportParameterOption.md b/docs/ReportParameterOption.md new file mode 100644 index 0000000..62ef8f2 --- /dev/null +++ b/docs/ReportParameterOption.md @@ -0,0 +1,15 @@ + +# ReportParameterOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**defaultValue** | **Boolean** | Indicates whether option is the default value | [optional] +**description** | **String** | | [optional] +**displayValue** | **String** | Report parameter option display value | +**id** | **Long** | | [optional] +**order** | **Integer** | Order in which the parameter option should appear | [optional] +**reportValue** | **String** | Report parameter option report value | + + + diff --git a/docs/ReportProject.md b/docs/ReportProject.md new file mode 100644 index 0000000..8500663 --- /dev/null +++ b/docs/ReportProject.md @@ -0,0 +1,13 @@ + +# ReportProject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**projectVersionsCount** | **Integer** | Count of project versions | [optional] +**versions** | [**List<ReportProjectVersion>**](ReportProjectVersion.md) | List of report project versions | [optional] + + + diff --git a/docs/ReportProjectVersion.md b/docs/ReportProjectVersion.md new file mode 100644 index 0000000..1128c10 --- /dev/null +++ b/docs/ReportProjectVersion.md @@ -0,0 +1,12 @@ + +# ReportProjectVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**developmentPhase** | **String** | Report project version development phase | +**id** | **Long** | | [optional] +**name** | **String** | | [optional] + + + diff --git a/docs/ResponsibilityAssignment.md b/docs/ResponsibilityAssignment.md new file mode 100644 index 0000000..8ef634a --- /dev/null +++ b/docs/ResponsibilityAssignment.md @@ -0,0 +1,17 @@ + +# ResponsibilityAssignment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | Email of user assigned to responsibility | +**firstName** | **String** | First name of user assigned to responsibility | +**lastName** | **String** | Last name of user assigned to responsibility | +**responsibilityDescription** | **String** | Responsibility description | +**responsibilityGuid** | **String** | Responsibility global unique identifier | +**responsibilityName** | **String** | Responsibility name | +**userId** | **Long** | ID of user assigned to responsibility | +**userName** | **String** | Name of user assigned to responsibility | + + + diff --git a/docs/ResponsibilityAssignmentOfProjectControllerApi.md b/docs/ResponsibilityAssignmentOfProjectControllerApi.md new file mode 100644 index 0000000..d213806 --- /dev/null +++ b/docs/ResponsibilityAssignmentOfProjectControllerApi.md @@ -0,0 +1,184 @@ +# ResponsibilityAssignmentOfProjectControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listResponsibilityAssignmentOfProject**](ResponsibilityAssignmentOfProjectControllerApi.md#listResponsibilityAssignmentOfProject) | **GET** /projects/{parentId}/responsibilities | list +[**readResponsibilityAssignmentOfProject**](ResponsibilityAssignmentOfProjectControllerApi.md#readResponsibilityAssignmentOfProject) | **GET** /projects/{parentId}/responsibilities/{guid} | read +[**updateCollectionResponsibilityAssignmentOfProject**](ResponsibilityAssignmentOfProjectControllerApi.md#updateCollectionResponsibilityAssignmentOfProject) | **PUT** /projects/{parentId}/responsibilities | updateCollection + + + +# **listResponsibilityAssignmentOfProject** +> ApiResultListResponsibilityAssignment listResponsibilityAssignmentOfProject(parentId, fields, start, limit, q) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectControllerApi apiInstance = new ResponsibilityAssignmentOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +try { + ApiResultListResponsibilityAssignment result = apiInstance.listResponsibilityAssignmentOfProject(parentId, fields, start, limit, q); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectControllerApi#listResponsibilityAssignmentOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + +### Return type + +[**ApiResultListResponsibilityAssignment**](ApiResultListResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readResponsibilityAssignmentOfProject** +> ApiResultResponsibilityAssignment readResponsibilityAssignmentOfProject(parentId, guid, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectControllerApi apiInstance = new ResponsibilityAssignmentOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +String guid = "guid_example"; // String | guid +String fields = "fields_example"; // String | Output fields +try { + ApiResultResponsibilityAssignment result = apiInstance.readResponsibilityAssignmentOfProject(parentId, guid, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectControllerApi#readResponsibilityAssignmentOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **guid** | **String**| guid | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultResponsibilityAssignment**](ApiResultResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionResponsibilityAssignmentOfProject** +> ApiResultListResponsibilityAssignment updateCollectionResponsibilityAssignmentOfProject(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectControllerApi apiInstance = new ResponsibilityAssignmentOfProjectControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new ResponsibilityAssignment()); // List | data +try { + ApiResultListResponsibilityAssignment result = apiInstance.updateCollectionResponsibilityAssignmentOfProject(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectControllerApi#updateCollectionResponsibilityAssignmentOfProject"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<ResponsibilityAssignment>**](ResponsibilityAssignment.md)| data | + +### Return type + +[**ApiResultListResponsibilityAssignment**](ApiResultListResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md b/docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md new file mode 100644 index 0000000..ff11fc2 --- /dev/null +++ b/docs/ResponsibilityAssignmentOfProjectVersionControllerApi.md @@ -0,0 +1,184 @@ +# ResponsibilityAssignmentOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listResponsibilityAssignmentOfProjectVersion**](ResponsibilityAssignmentOfProjectVersionControllerApi.md#listResponsibilityAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/responsibilities | list +[**readResponsibilityAssignmentOfProjectVersion**](ResponsibilityAssignmentOfProjectVersionControllerApi.md#readResponsibilityAssignmentOfProjectVersion) | **GET** /projectVersions/{parentId}/responsibilities/{guid} | read +[**updateCollectionResponsibilityAssignmentOfProjectVersion**](ResponsibilityAssignmentOfProjectVersionControllerApi.md#updateCollectionResponsibilityAssignmentOfProjectVersion) | **PUT** /projectVersions/{parentId}/responsibilities | updateCollection + + + +# **listResponsibilityAssignmentOfProjectVersion** +> ApiResultListResponsibilityAssignment listResponsibilityAssignmentOfProjectVersion(parentId, fields, start, limit, q) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectVersionControllerApi apiInstance = new ResponsibilityAssignmentOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +try { + ApiResultListResponsibilityAssignment result = apiInstance.listResponsibilityAssignmentOfProjectVersion(parentId, fields, start, limit, q); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectVersionControllerApi#listResponsibilityAssignmentOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + +### Return type + +[**ApiResultListResponsibilityAssignment**](ApiResultListResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readResponsibilityAssignmentOfProjectVersion** +> ApiResultResponsibilityAssignment readResponsibilityAssignmentOfProjectVersion(parentId, guid, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectVersionControllerApi apiInstance = new ResponsibilityAssignmentOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String guid = "guid_example"; // String | guid +String fields = "fields_example"; // String | Output fields +try { + ApiResultResponsibilityAssignment result = apiInstance.readResponsibilityAssignmentOfProjectVersion(parentId, guid, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectVersionControllerApi#readResponsibilityAssignmentOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **guid** | **String**| guid | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultResponsibilityAssignment**](ApiResultResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionResponsibilityAssignmentOfProjectVersion** +> ApiResultListResponsibilityAssignment updateCollectionResponsibilityAssignmentOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResponsibilityAssignmentOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResponsibilityAssignmentOfProjectVersionControllerApi apiInstance = new ResponsibilityAssignmentOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new ResponsibilityAssignment()); // List | data +try { + ApiResultListResponsibilityAssignment result = apiInstance.updateCollectionResponsibilityAssignmentOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResponsibilityAssignmentOfProjectVersionControllerApi#updateCollectionResponsibilityAssignmentOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<ResponsibilityAssignment>**](ResponsibilityAssignment.md)| data | + +### Return type + +[**ApiResultListResponsibilityAssignment**](ApiResultListResponsibilityAssignment.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ResultProcessingRule.md b/docs/ResultProcessingRule.md new file mode 100644 index 0000000..6910fe9 --- /dev/null +++ b/docs/ResultProcessingRule.md @@ -0,0 +1,13 @@ + +# ResultProcessingRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | | +**displayable** | **Boolean** | | +**enabled** | **Boolean** | | +**identifier** | **String** | | + + + diff --git a/docs/ResultProcessingRuleOfProjectVersionControllerApi.md b/docs/ResultProcessingRuleOfProjectVersionControllerApi.md new file mode 100644 index 0000000..5e90c5a --- /dev/null +++ b/docs/ResultProcessingRuleOfProjectVersionControllerApi.md @@ -0,0 +1,120 @@ +# ResultProcessingRuleOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listResultProcessingRuleOfProjectVersion**](ResultProcessingRuleOfProjectVersionControllerApi.md#listResultProcessingRuleOfProjectVersion) | **GET** /projectVersions/{parentId}/resultProcessingRules | list +[**updateCollectionResultProcessingRuleOfProjectVersion**](ResultProcessingRuleOfProjectVersionControllerApi.md#updateCollectionResultProcessingRuleOfProjectVersion) | **PUT** /projectVersions/{parentId}/resultProcessingRules | updateCollection + + + +# **listResultProcessingRuleOfProjectVersion** +> ApiResultListResultProcessingRule listResultProcessingRuleOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResultProcessingRuleOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResultProcessingRuleOfProjectVersionControllerApi apiInstance = new ResultProcessingRuleOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListResultProcessingRule result = apiInstance.listResultProcessingRuleOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResultProcessingRuleOfProjectVersionControllerApi#listResultProcessingRuleOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListResultProcessingRule**](ApiResultListResultProcessingRule.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateCollectionResultProcessingRuleOfProjectVersion** +> ApiResultListResultProcessingRule updateCollectionResultProcessingRuleOfProjectVersion(parentId, data) + +updateCollection + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ResultProcessingRuleOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ResultProcessingRuleOfProjectVersionControllerApi apiInstance = new ResultProcessingRuleOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List data = Arrays.asList(new ResultProcessingRule()); // List | data +try { + ApiResultListResultProcessingRule result = apiInstance.updateCollectionResultProcessingRuleOfProjectVersion(parentId, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ResultProcessingRuleOfProjectVersionControllerApi#updateCollectionResultProcessingRuleOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **data** | [**List<ResultProcessingRule>**](ResultProcessingRule.md)| data | + +### Return type + +[**ApiResultListResultProcessingRule**](ApiResultListResultProcessingRule.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Role.md b/docs/Role.md new file mode 100644 index 0000000..39b81bd --- /dev/null +++ b/docs/Role.md @@ -0,0 +1,21 @@ + +# Role + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allApplicationRole** | **Boolean** | True if a user with this Role has access to all Application Versions | +**assignedToNonUsers** | **Boolean** | True if this Role is currently assigned to entities that are not users(groups, organizations, etc.) | +**builtIn** | **Boolean** | True if this Role is a default Fortify Role | +**_default** | **Boolean** | | [optional] +**deletable** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**id** | **String** | | [optional] +**name** | **String** | | [optional] +**objectVersion** | **Integer** | | [optional] +**permissionIds** | **List<String>** | Ids of the permissions this Role has | +**publishVersion** | **Integer** | | [optional] +**userOnly** | **Boolean** | True if this Role can only be assigned to entities that are users | + + + diff --git a/docs/RoleControllerApi.md b/docs/RoleControllerApi.md new file mode 100644 index 0000000..518f81c --- /dev/null +++ b/docs/RoleControllerApi.md @@ -0,0 +1,346 @@ +# RoleControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createRole**](RoleControllerApi.md#createRole) | **POST** /roles | create +[**deleteRole**](RoleControllerApi.md#deleteRole) | **DELETE** /roles/{id} | delete +[**listRole**](RoleControllerApi.md#listRole) | **GET** /roles | list +[**multiDeleteRole**](RoleControllerApi.md#multiDeleteRole) | **DELETE** /roles | multiDelete +[**readRole**](RoleControllerApi.md#readRole) | **GET** /roles/{id} | read +[**updateRole**](RoleControllerApi.md#updateRole) | **PUT** /roles/{id} | update + + + +# **createRole** +> ApiResultRole createRole(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +Role resource = new Role(); // Role | resource +try { + ApiResultRole result = apiInstance.createRole(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#createRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**Role**](Role.md)| resource | + +### Return type + +[**ApiResultRole**](ApiResultRole.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteRole** +> ApiResultVoid deleteRole(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +String id = "id_example"; // String | id +try { + ApiResultVoid result = apiInstance.deleteRole(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#deleteRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listRole** +> ApiResultListRole listRole(start, limit, q, orderby, fields, excludeuseronly) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +String fields = "fields_example"; // String | Output fields +Boolean excludeuseronly = false; // Boolean | excludeuseronly +try { + ApiResultListRole result = apiInstance.listRole(start, limit, q, orderby, fields, excludeuseronly); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#listRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + **fields** | **String**| Output fields | [optional] + **excludeuseronly** | **Boolean**| excludeuseronly | [optional] [default to false] + +### Return type + +[**ApiResultListRole**](ApiResultListRole.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteRole** +> ApiResultVoid multiDeleteRole(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteRole(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#multiDeleteRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readRole** +> ApiResultRole readRole(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultRole result = apiInstance.readRole(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#readRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultRole**](ApiResultRole.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateRole** +> ApiResultRole updateRole(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleControllerApi apiInstance = new RoleControllerApi(); +String id = "id_example"; // String | id +Role resource = new Role(); // Role | resource +try { + ApiResultRole result = apiInstance.updateRole(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleControllerApi#updateRole"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| id | + **resource** | [**Role**](Role.md)| resource | + +### Return type + +[**ApiResultRole**](ApiResultRole.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/RoleOfAuthEntityControllerApi.md b/docs/RoleOfAuthEntityControllerApi.md new file mode 100644 index 0000000..ddaec35 --- /dev/null +++ b/docs/RoleOfAuthEntityControllerApi.md @@ -0,0 +1,64 @@ +# RoleOfAuthEntityControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listRoleOfAuthEntity**](RoleOfAuthEntityControllerApi.md#listRoleOfAuthEntity) | **GET** /authEntities/{parentId}/roles | list + + + +# **listRoleOfAuthEntity** +> ApiResultListRole listRoleOfAuthEntity(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RoleOfAuthEntityControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RoleOfAuthEntityControllerApi apiInstance = new RoleOfAuthEntityControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListRole result = apiInstance.listRoleOfAuthEntity(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RoleOfAuthEntityControllerApi#listRoleOfAuthEntity"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListRole**](ApiResultListRole.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/RulepackCore.md b/docs/RulepackCore.md new file mode 100644 index 0000000..b5c0e80 --- /dev/null +++ b/docs/RulepackCore.md @@ -0,0 +1,28 @@ + +# RulepackCore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**id** | **Long** | | +**language** | **String** | | +**locale** | **String** | | [optional] +**name** | **String** | | +**rulepackGUID** | **String** | | +**rulepackType** | [**RulepackTypeEnum**](#RulepackTypeEnum) | | +**sku** | **String** | | +**version** | **String** | | +**versions** | [**List<RulepackCore>**](RulepackCore.md) | | [optional] + + + +## Enum: RulepackTypeEnum +Name | Value +---- | ----- +SCA | "SCA" +RTA | "RTA" +CATPACK | "CATPACK" + + + diff --git a/docs/RulepackCoreControllerApi.md b/docs/RulepackCoreControllerApi.md new file mode 100644 index 0000000..dc397ec --- /dev/null +++ b/docs/RulepackCoreControllerApi.md @@ -0,0 +1,178 @@ +# RulepackCoreControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteRulepackCore**](RulepackCoreControllerApi.md#deleteRulepackCore) | **DELETE** /coreRulepacks/{id} | delete +[**listRulepackCore**](RulepackCoreControllerApi.md#listRulepackCore) | **GET** /coreRulepacks | list +[**multiDeleteRulepackCore**](RulepackCoreControllerApi.md#multiDeleteRulepackCore) | **DELETE** /coreRulepacks | multiDelete + + + +# **deleteRulepackCore** +> ApiResultVoid deleteRulepackCore(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RulepackCoreControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RulepackCoreControllerApi apiInstance = new RulepackCoreControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteRulepackCore(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RulepackCoreControllerApi#deleteRulepackCore"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listRulepackCore** +> ApiResultListRulepackCore listRulepackCore(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RulepackCoreControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RulepackCoreControllerApi apiInstance = new RulepackCoreControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListRulepackCore result = apiInstance.listRulepackCore(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RulepackCoreControllerApi#listRulepackCore"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListRulepackCore**](ApiResultListRulepackCore.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteRulepackCore** +> ApiResultVoid multiDeleteRulepackCore(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RulepackCoreControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RulepackCoreControllerApi apiInstance = new RulepackCoreControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteRulepackCore(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RulepackCoreControllerApi#multiDeleteRulepackCore"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/RulepackUpdateControllerApi.md b/docs/RulepackUpdateControllerApi.md new file mode 100644 index 0000000..43cea17 --- /dev/null +++ b/docs/RulepackUpdateControllerApi.md @@ -0,0 +1,58 @@ +# RulepackUpdateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listRulepackUpdate**](RulepackUpdateControllerApi.md#listRulepackUpdate) | **GET** /updateRulepacks | list + + + +# **listRulepackUpdate** +> ApiResultListRulepacksBatchProcessStatus listRulepackUpdate() + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.RulepackUpdateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +RulepackUpdateControllerApi apiInstance = new RulepackUpdateControllerApi(); +try { + ApiResultListRulepacksBatchProcessStatus result = apiInstance.listRulepackUpdate(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RulepackUpdateControllerApi#listRulepackUpdate"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultListRulepacksBatchProcessStatus**](ApiResultListRulepacksBatchProcessStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/RulepacksBatchProcessStatus.md b/docs/RulepacksBatchProcessStatus.md new file mode 100644 index 0000000..d481c40 --- /dev/null +++ b/docs/RulepacksBatchProcessStatus.md @@ -0,0 +1,12 @@ + +# RulepacksBatchProcessStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **Integer** | Numeric processing code. | [optional] +**message** | **String** | Processing message. | [optional] +**statuses** | [**List<RulepacksBatchProcessStatus>**](RulepacksBatchProcessStatus.md) | Child rulepacks processing statuses. | [optional] + + + diff --git a/docs/SavedReport.md b/docs/SavedReport.md new file mode 100644 index 0000000..3b7ab1c --- /dev/null +++ b/docs/SavedReport.md @@ -0,0 +1,59 @@ + +# SavedReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embed** | [**EmbeddedReportDefinition**](EmbeddedReportDefinition.md) | | [optional] +**authEntity** | [**ReportAuthEntity**](ReportAuthEntity.md) | The Fortify User or Ldap User associated with the report | [optional] +**format** | [**FormatEnum**](#FormatEnum) | Saved report output format | +**formatDefaultText** | **String** | Saved report output format default text | [optional] +**generationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Generation date | [optional] +**id** | **Long** | | [optional] +**inputReportParameters** | [**List<InputReportParameter>**](InputReportParameter.md) | List of report parameters | [optional] +**isPublished** | **Boolean** | Indicates whether saved report is published | [optional] +**name** | **String** | | [optional] +**note** | **String** | Saved report notes | [optional] +**projects** | [**List<ReportProject>**](ReportProject.md) | List of project versions | +**published** | **Boolean** | | [optional] +**reportDefinitionId** | **Long** | Report definition identifier | +**reportProjectsCount** | **Integer** | Count of report projects | [optional] +**status** | [**StatusEnum**](#StatusEnum) | Saved report status | [optional] +**statusDefaultText** | **String** | Saved report status default text | [optional] +**type** | [**TypeEnum**](#TypeEnum) | Saved report type | +**typeDefaultText** | **String** | Saved report type default text | [optional] + + + +## Enum: FormatEnum +Name | Value +---- | ----- +PDF | "PDF" +DOC | "DOC" +XLS | "XLS" + + + +## Enum: StatusEnum +Name | Value +---- | ----- +SCHEDULED_FOR_PROCESSING | "Scheduled for Processing" +PROCESSING | "Processing" +PROCESSING_COMPLETE | "Processing Complete" +ERROR_PROCESSING | "Error Processing" + + + +## Enum: TypeEnum +Name | Value +---- | ----- +APPLICATION_REPORTS | "Application Reports" +SSA_APPLICATION_REPORTS | "SSA Application Reports" +SSA_PORTFOLIO_REPORTS | "SSA Portfolio Reports" +PORTFOLIO_REPORTS | "Portfolio Reports" +COMPLIANCE_REPORTS | "Compliance Reports" +ISSUE_REPORTS | "Issue Reports" +RUNTIME_APPLICATION_REPORTS | "Runtime Application Reports" + + + diff --git a/docs/SavedReportControllerApi.md b/docs/SavedReportControllerApi.md new file mode 100644 index 0000000..a61199d --- /dev/null +++ b/docs/SavedReportControllerApi.md @@ -0,0 +1,240 @@ +# SavedReportControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createSavedReport**](SavedReportControllerApi.md#createSavedReport) | **POST** /reports | create +[**deleteSavedReport**](SavedReportControllerApi.md#deleteSavedReport) | **DELETE** /reports/{id} | delete +[**listSavedReport**](SavedReportControllerApi.md#listSavedReport) | **GET** /reports | list +[**readSavedReport**](SavedReportControllerApi.md#readSavedReport) | **GET** /reports/{id} | read + + + +# **createSavedReport** +> ApiResultSavedReport createSavedReport(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SavedReportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SavedReportControllerApi apiInstance = new SavedReportControllerApi(); +SavedReport resource = new SavedReport(); // SavedReport | resource +try { + ApiResultSavedReport result = apiInstance.createSavedReport(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SavedReportControllerApi#createSavedReport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**SavedReport**](SavedReport.md)| resource | + +### Return type + +[**ApiResultSavedReport**](ApiResultSavedReport.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteSavedReport** +> ApiResultVoid deleteSavedReport(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SavedReportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SavedReportControllerApi apiInstance = new SavedReportControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteSavedReport(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SavedReportControllerApi#deleteSavedReport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listSavedReport** +> ApiResultListSavedReport listSavedReport(fields, start, limit, q, fulltextsearch, embed, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SavedReportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SavedReportControllerApi apiInstance = new SavedReportControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search-spec of full text search query (see fulltextsearch parameter) +Boolean fulltextsearch = false; // Boolean | If 'true', interpret 'q' parameter as full text search query, defaults to 'false' +String embed = "embed_example"; // String | Fields to embed +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListSavedReport result = apiInstance.listSavedReport(fields, start, limit, q, fulltextsearch, embed, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SavedReportControllerApi#listSavedReport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search-spec of full text search query (see fulltextsearch parameter) | [optional] + **fulltextsearch** | **Boolean**| If 'true', interpret 'q' parameter as full text search query, defaults to 'false' | [optional] [default to false] + **embed** | **String**| Fields to embed | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListSavedReport**](ApiResultListSavedReport.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readSavedReport** +> ApiResultSavedReport readSavedReport(id, fields, embed) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SavedReportControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SavedReportControllerApi apiInstance = new SavedReportControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +String embed = "embed_example"; // String | Fields to embed +try { + ApiResultSavedReport result = apiInstance.readSavedReport(id, fields, embed); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SavedReportControllerApi#readSavedReport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + **embed** | **String**| Fields to embed | [optional] + +### Return type + +[**ApiResultSavedReport**](ApiResultSavedReport.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/Scan.md b/docs/Scan.md new file mode 100644 index 0000000..438fe83 --- /dev/null +++ b/docs/Scan.md @@ -0,0 +1,23 @@ + +# Scan + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifactId** | **Long** | identifier of parent artifact object which contains this scan object | +**buildLabel** | **String** | optional string identifier provided by the user when scanning | +**certification** | **String** | indicates whether the checksum on the analysis result is valid | +**elapsedTime** | **String** | analysis duration | +**engineVersion** | **String** | version of analysis engine | +**execLOC** | **Integer** | total executable lines of code included in sources (excluding comments etc.) | +**fortifyAnnotationsLOC** | **Integer** | lines of code with annotations | +**guid** | **String** | globally unique id of scan object | +**hostname** | **String** | | +**id** | **Long** | | [optional] +**noOfFiles** | **Integer** | number of source files included in scan | +**totalLOC** | **Integer** | total lines of code included in sources (includes comments etc.) | +**type** | **String** | indicates the type of analyzer that produced it, such as SCA or WEBINSPECT | +**uploadDate** | [**OffsetDateTime**](OffsetDateTime.md) | | + + + diff --git a/docs/ScanControllerApi.md b/docs/ScanControllerApi.md new file mode 100644 index 0000000..9c4c091 --- /dev/null +++ b/docs/ScanControllerApi.md @@ -0,0 +1,64 @@ +# ScanControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**readScan**](ScanControllerApi.md#readScan) | **GET** /scans/{id} | read + + + +# **readScan** +> ApiResultScan readScan(id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ScanControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ScanControllerApi apiInstance = new ScanControllerApi(); +Long id = 789L; // Long | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultScan result = apiInstance.readScan(id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ScanControllerApi#readScan"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultScan**](ApiResultScan.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ScanError.md b/docs/ScanError.md new file mode 100644 index 0000000..30e0b87 --- /dev/null +++ b/docs/ScanError.md @@ -0,0 +1,13 @@ + +# ScanError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errorCode** | **String** | | +**errorDescription** | **String** | | +**id** | **Long** | | +**scanId** | **Long** | id of scan associated with the error | + + + diff --git a/docs/ScanErrorOfArtifactControllerApi.md b/docs/ScanErrorOfArtifactControllerApi.md new file mode 100644 index 0000000..647c45d --- /dev/null +++ b/docs/ScanErrorOfArtifactControllerApi.md @@ -0,0 +1,68 @@ +# ScanErrorOfArtifactControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listScanErrorOfArtifact**](ScanErrorOfArtifactControllerApi.md#listScanErrorOfArtifact) | **GET** /artifacts/{parentId}/scanerrors | list + + + +# **listScanErrorOfArtifact** +> ApiResultListscanError listScanErrorOfArtifact(parentId, fields, start, limit) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ScanErrorOfArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ScanErrorOfArtifactControllerApi apiInstance = new ScanErrorOfArtifactControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +try { + ApiResultListscanError result = apiInstance.listScanErrorOfArtifact(parentId, fields, start, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ScanErrorOfArtifactControllerApi#listScanErrorOfArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + +### Return type + +[**ApiResultListscanError**](ApiResultListscanError.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ScanOfArtifactControllerApi.md b/docs/ScanOfArtifactControllerApi.md new file mode 100644 index 0000000..5a85d8e --- /dev/null +++ b/docs/ScanOfArtifactControllerApi.md @@ -0,0 +1,64 @@ +# ScanOfArtifactControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listScanOfArtifact**](ScanOfArtifactControllerApi.md#listScanOfArtifact) | **GET** /artifacts/{parentId}/scans | list + + + +# **listScanOfArtifact** +> ApiResultListScan listScanOfArtifact(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ScanOfArtifactControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ScanOfArtifactControllerApi apiInstance = new ScanOfArtifactControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListScan result = apiInstance.listScanOfArtifact(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ScanOfArtifactControllerApi#listScanOfArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListScan**](ApiResultListScan.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/SearchIndexStatus.md b/docs/SearchIndexStatus.md new file mode 100644 index 0000000..e16bca1 --- /dev/null +++ b/docs/SearchIndexStatus.md @@ -0,0 +1,12 @@ + +# SearchIndexStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configured** | **Boolean** | Is index configured | [optional] +**healthyIndex** | **Boolean** | Is the index Healthy | [optional] +**indexingJobRunning** | **Boolean** | Is the indexing job running | [optional] + + + diff --git a/docs/SelectorOption.md b/docs/SelectorOption.md new file mode 100644 index 0000000..b64a366 --- /dev/null +++ b/docs/SelectorOption.md @@ -0,0 +1,12 @@ + +# SelectorOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | Option's display name. | +**guid** | **String** | Option's unique GUID. | +**value** | **String** | Option's value that must be sent to backend when this option is selected. | + + + diff --git a/docs/SourceFileDto.md b/docs/SourceFileDto.md new file mode 100644 index 0000000..9ba2c36 --- /dev/null +++ b/docs/SourceFileDto.md @@ -0,0 +1,15 @@ + +# SourceFileDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checksum** | **String** | Source file checksum. | +**encoding** | **String** | Source file encoding. | +**fileContent** | **String** | Scanned source file content. | +**filePath** | **String** | Full path to source file on the machine where scan was performed. | +**languageName** | **String** | Source file programming language name. | +**projectVersionId** | **Long** | Project version identifier that contains this source file. | + + + diff --git a/docs/SourceFileOfProjectVersionControllerApi.md b/docs/SourceFileOfProjectVersionControllerApi.md new file mode 100644 index 0000000..e8ba971 --- /dev/null +++ b/docs/SourceFileOfProjectVersionControllerApi.md @@ -0,0 +1,128 @@ +# SourceFileOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listSourceFileOfProjectVersion**](SourceFileOfProjectVersionControllerApi.md#listSourceFileOfProjectVersion) | **GET** /projectVersions/{parentId}/sourceFiles | list +[**readSourceFileOfProjectVersion**](SourceFileOfProjectVersionControllerApi.md#readSourceFileOfProjectVersion) | **GET** /projectVersions/{parentId}/sourceFiles/{id} | read + + + +# **listSourceFileOfProjectVersion** +> ApiResultListSourceFileDto listSourceFileOfProjectVersion(parentId, start, limit, q, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SourceFileOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SourceFileOfProjectVersionControllerApi apiInstance = new SourceFileOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String fields = "fields_example"; // String | Output fields +try { + ApiResultListSourceFileDto result = apiInstance.listSourceFileOfProjectVersion(parentId, start, limit, q, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SourceFileOfProjectVersionControllerApi#listSourceFileOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListSourceFileDto**](ApiResultListSourceFileDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readSourceFileOfProjectVersion** +> ApiResultSourceFileDto readSourceFileOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SourceFileOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SourceFileOfProjectVersionControllerApi apiInstance = new SourceFileOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultSourceFileDto result = apiInstance.readSourceFileOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SourceFileOfProjectVersionControllerApi#readSourceFileOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultSourceFileDto**](ApiResultSourceFileDto.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/SystemConfiguration.md b/docs/SystemConfiguration.md new file mode 100644 index 0000000..667fe8e --- /dev/null +++ b/docs/SystemConfiguration.md @@ -0,0 +1,11 @@ + +# SystemConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Configuration name | +**value** | **String** | Configuration value | + + + diff --git a/docs/SystemConfigurationControllerApi.md b/docs/SystemConfigurationControllerApi.md new file mode 100644 index 0000000..70a4e1d --- /dev/null +++ b/docs/SystemConfigurationControllerApi.md @@ -0,0 +1,118 @@ +# SystemConfigurationControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listSystemConfiguration**](SystemConfigurationControllerApi.md#listSystemConfiguration) | **GET** /systemConfiguration | list +[**readSystemConfiguration**](SystemConfigurationControllerApi.md#readSystemConfiguration) | **GET** /systemConfiguration/{name} | read + + + +# **listSystemConfiguration** +> ApiResultListSystemConfiguration listSystemConfiguration(fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SystemConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SystemConfigurationControllerApi apiInstance = new SystemConfigurationControllerApi(); +String fields = "fields_example"; // String | Output fields +try { + ApiResultListSystemConfiguration result = apiInstance.listSystemConfiguration(fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SystemConfigurationControllerApi#listSystemConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListSystemConfiguration**](ApiResultListSystemConfiguration.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readSystemConfiguration** +> ApiResultSystemConfiguration readSystemConfiguration(name, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.SystemConfigurationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +SystemConfigurationControllerApi apiInstance = new SystemConfigurationControllerApi(); +String name = "name_example"; // String | name +String fields = "fields_example"; // String | Output fields +try { + ApiResultSystemConfiguration result = apiInstance.readSystemConfiguration(name, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling SystemConfigurationControllerApi#readSystemConfiguration"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultSystemConfiguration**](ApiResultSystemConfiguration.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/TemplateItem.md b/docs/TemplateItem.md new file mode 100644 index 0000000..208c4cc --- /dev/null +++ b/docs/TemplateItem.md @@ -0,0 +1,9 @@ + +# TemplateItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/docs/TokenDefinition.md b/docs/TokenDefinition.md new file mode 100644 index 0000000..eba1e56 --- /dev/null +++ b/docs/TokenDefinition.md @@ -0,0 +1,13 @@ + +# TokenDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capabilityDescription** | **String** | Describes what tokens generated from this token specification can be used for. Note that these capabilities are subordinate to the actual roles/permissions granted to the owner of the token | [optional] +**maxDaysToLive** | **Integer** | Maximum allowable lifetime (in days) of token | [optional] +**maxUsages** | **Integer** | Maximum number of api calls that can be made using this token type. A value of -1 denotes unlimited number of calls. | [optional] +**type** | **String** | Token type | [optional] + + + diff --git a/docs/TokenDefinitionControllerApi.md b/docs/TokenDefinitionControllerApi.md new file mode 100644 index 0000000..d50b604 --- /dev/null +++ b/docs/TokenDefinitionControllerApi.md @@ -0,0 +1,70 @@ +# TokenDefinitionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listTokenDefinition**](TokenDefinitionControllerApi.md#listTokenDefinition) | **GET** /tokenDefinitions | list + + + +# **listTokenDefinition** +> ApiResultListTokenDefinition listTokenDefinition(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.TokenDefinitionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +TokenDefinitionControllerApi apiInstance = new TokenDefinitionControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListTokenDefinition result = apiInstance.listTokenDefinition(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling TokenDefinitionControllerApi#listTokenDefinition"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListTokenDefinition**](ApiResultListTokenDefinition.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/TraceNodeDto.md b/docs/TraceNodeDto.md new file mode 100644 index 0000000..120e166 --- /dev/null +++ b/docs/TraceNodeDto.md @@ -0,0 +1,50 @@ + +# TraceNodeDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**childNodes** | [**List<TraceNodeDto>**](TraceNodeDto.md) | Child nodes of the current node. | +**detail** | **Boolean** | Detail node marker. | +**evidence** | **String** | Node evidence text. | +**file** | **String** | Name of the file associated with this node. | +**fullPath** | **String** | Full path to source file associated with this node. | +**line** | **Integer** | Source file line number where issue was found. | +**nodeType** | [**NodeTypeEnum**](#NodeTypeEnum) | Type of the trace node. | +**primary** | **Boolean** | Primry node marker. | +**text** | **String** | Node display text. | +**toolTip** | **String** | Node description/tooltip. | + + + +## Enum: NodeTypeEnum +Name | Value +---- | ----- +IN_CALL | "IN_CALL" +OUT_CALL | "OUT_CALL" +IN_OUT_CALL | "IN_OUT_CALL" +READ | "READ" +READ_GLOBAL | "READ_GLOBAL" +ASSIGN | "ASSIGN" +ASSIGN_GLOBAL | "ASSIGN_GLOBAL" +ALIAS | "ALIAS" +COMPARE | "COMPARE" +RETURN | "RETURN" +REF | "REF" +DEREF | "DEREF" +END_SCOPE | "END_SCOPE" +JUMP | "JUMP" +BRANCH_TAKEN | "BRANCH_TAKEN" +BRANCH_NOT_TAKEN | "BRANCH_NOT_TAKEN" +EXTERNAL_ENTRY | "EXTERNAL_ENTRY" +RUNTIME_SINK | "RUNTIME_SINK" +RUNTIME_SOURCE | "RUNTIME_SOURCE" +RUNTIME_VALIDATION | "RUNTIME_VALIDATION" +RUNTIME_TRACE | "RUNTIME_TRACE" +TRACE_RUNTIME_SOURCE | "TRACE_RUNTIME_SOURCE" +TRACE_RUNTIME_SINK | "TRACE_RUNTIME_SINK" +TAINT_CHANGE | "TAINT_CHANGE" +GENERIC | "GENERIC" + + + diff --git a/docs/Trigger.md b/docs/Trigger.md new file mode 100644 index 0000000..4a90571 --- /dev/null +++ b/docs/Trigger.md @@ -0,0 +1,12 @@ + +# Trigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**length** | **Integer** | | [optional] +**location** | **Integer** | | [optional] +**triggerString** | **String** | | [optional] + + + diff --git a/docs/UnassignedCloudWorkerOfCloudPoolControllerApi.md b/docs/UnassignedCloudWorkerOfCloudPoolControllerApi.md new file mode 100644 index 0000000..49ce78f --- /dev/null +++ b/docs/UnassignedCloudWorkerOfCloudPoolControllerApi.md @@ -0,0 +1,68 @@ +# UnassignedCloudWorkerOfCloudPoolControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listUnassignedCloudWorkerOfCloudPool**](UnassignedCloudWorkerOfCloudPoolControllerApi.md#listUnassignedCloudWorkerOfCloudPool) | **GET** /cloudpools/disabledWorkers | list + + + +# **listUnassignedCloudWorkerOfCloudPool** +> ApiResultListCloudWorker listUnassignedCloudWorkerOfCloudPool(fields, start, limit, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UnassignedCloudWorkerOfCloudPoolControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UnassignedCloudWorkerOfCloudPoolControllerApi apiInstance = new UnassignedCloudWorkerOfCloudPoolControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListCloudWorker result = apiInstance.listUnassignedCloudWorkerOfCloudPool(fields, start, limit, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UnassignedCloudWorkerOfCloudPoolControllerApi#listUnassignedCloudWorkerOfCloudPool"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListCloudWorker**](ApiResultListCloudWorker.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserIssueSearchOptionOfProjectVersionControllerApi.md b/docs/UserIssueSearchOptionOfProjectVersionControllerApi.md new file mode 100644 index 0000000..4877fe5 --- /dev/null +++ b/docs/UserIssueSearchOptionOfProjectVersionControllerApi.md @@ -0,0 +1,178 @@ +# UserIssueSearchOptionOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listUserIssueSearchOptionOfProjectVersion**](UserIssueSearchOptionOfProjectVersionControllerApi.md#listUserIssueSearchOptionOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSearchOptions | list +[**readUserIssueSearchOptionOfProjectVersion**](UserIssueSearchOptionOfProjectVersionControllerApi.md#readUserIssueSearchOptionOfProjectVersion) | **GET** /projectVersions/{parentId}/issueSearchOptions/{optionType} | read +[**updateUserIssueSearchOptionOfProjectVersion**](UserIssueSearchOptionOfProjectVersionControllerApi.md#updateUserIssueSearchOptionOfProjectVersion) | **PUT** /projectVersions/{parentId}/issueSearchOptions | update + + + +# **listUserIssueSearchOptionOfProjectVersion** +> ApiResultListIssueSearchOption listUserIssueSearchOptionOfProjectVersion(parentId, fields) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionOfProjectVersionControllerApi apiInstance = new UserIssueSearchOptionOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultListIssueSearchOption result = apiInstance.listUserIssueSearchOptionOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionOfProjectVersionControllerApi#listUserIssueSearchOptionOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultListIssueSearchOption**](ApiResultListIssueSearchOption.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readUserIssueSearchOptionOfProjectVersion** +> ApiResultIssueSearchOption readUserIssueSearchOptionOfProjectVersion(parentId, optionType, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionOfProjectVersionControllerApi apiInstance = new UserIssueSearchOptionOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String optionType = "optionType_example"; // String | optionType +String fields = "fields_example"; // String | Output fields +try { + ApiResultIssueSearchOption result = apiInstance.readUserIssueSearchOptionOfProjectVersion(parentId, optionType, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionOfProjectVersionControllerApi#readUserIssueSearchOptionOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **optionType** | **String**| optionType | [enum: INCLUDE_COMMENTS_IN_HISTORY, HIDDEN, REMOVED, SUPPRESSED, SHORT_FILE_NAMES] + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultIssueSearchOption**](ApiResultIssueSearchOption.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateUserIssueSearchOptionOfProjectVersion** +> ApiResultListIssueSearchOption updateUserIssueSearchOptionOfProjectVersion(parentId, resources) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionOfProjectVersionControllerApi apiInstance = new UserIssueSearchOptionOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +List resources = Arrays.asList(new IssueSearchOption()); // List | resources +try { + ApiResultListIssueSearchOption result = apiInstance.updateUserIssueSearchOptionOfProjectVersion(parentId, resources); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionOfProjectVersionControllerApi#updateUserIssueSearchOptionOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resources** | [**List<IssueSearchOption>**](IssueSearchOption.md)| resources | + +### Return type + +[**ApiResultListIssueSearchOption**](ApiResultListIssueSearchOption.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserIssueSearchOptions.md b/docs/UserIssueSearchOptions.md new file mode 100644 index 0000000..6f15a24 --- /dev/null +++ b/docs/UserIssueSearchOptions.md @@ -0,0 +1,15 @@ + +# UserIssueSearchOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**includeCommentsInHistory** | **Boolean** | If 'true', comments are included in issue audit history. Used only by flex UI. | [optional] +**projectVersionId** | **Long** | Application version ID the option values belong to. Value is empty for default options that can be applied to any project version user has access to if project version specific options are not defined. | [optional] +**showHidden** | **Boolean** | If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] +**showRemoved** | **Boolean** | If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] +**showShortFileNames** | **Boolean** | If 'true', only short file names will be displayed in issues list. | [optional] +**showSuppressed** | **Boolean** | If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. | [optional] + + + diff --git a/docs/UserIssueSearchOptionsControllerApi.md b/docs/UserIssueSearchOptionsControllerApi.md new file mode 100644 index 0000000..f53017f --- /dev/null +++ b/docs/UserIssueSearchOptionsControllerApi.md @@ -0,0 +1,112 @@ +# UserIssueSearchOptionsControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getUserIssueSearchOptions**](UserIssueSearchOptionsControllerApi.md#getUserIssueSearchOptions) | **GET** /userIssueSearchOptions | get +[**updateUserIssueSearchOptions**](UserIssueSearchOptionsControllerApi.md#updateUserIssueSearchOptions) | **PUT** /userIssueSearchOptions | update + + + +# **getUserIssueSearchOptions** +> ApiResultUserIssueSearchOptions getUserIssueSearchOptions() + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionsControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionsControllerApi apiInstance = new UserIssueSearchOptionsControllerApi(); +try { + ApiResultUserIssueSearchOptions result = apiInstance.getUserIssueSearchOptions(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionsControllerApi#getUserIssueSearchOptions"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApiResultUserIssueSearchOptions**](ApiResultUserIssueSearchOptions.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateUserIssueSearchOptions** +> ApiResultUserIssueSearchOptions updateUserIssueSearchOptions(resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionsControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionsControllerApi apiInstance = new UserIssueSearchOptionsControllerApi(); +UserIssueSearchOptions resource = new UserIssueSearchOptions(); // UserIssueSearchOptions | resource +try { + ApiResultUserIssueSearchOptions result = apiInstance.updateUserIssueSearchOptions(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionsControllerApi#updateUserIssueSearchOptions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**UserIssueSearchOptions**](UserIssueSearchOptions.md)| resource | + +### Return type + +[**ApiResultUserIssueSearchOptions**](ApiResultUserIssueSearchOptions.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md b/docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md new file mode 100644 index 0000000..a1ec266 --- /dev/null +++ b/docs/UserIssueSearchOptionsOfProjectVersionControllerApi.md @@ -0,0 +1,120 @@ +# UserIssueSearchOptionsOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getUserIssueSearchOptionsOfProjectVersion**](UserIssueSearchOptionsOfProjectVersionControllerApi.md#getUserIssueSearchOptionsOfProjectVersion) | **GET** /projectVersions/{parentId}/userIssueSearchOptions | get +[**updateUserIssueSearchOptionsOfProjectVersion**](UserIssueSearchOptionsOfProjectVersionControllerApi.md#updateUserIssueSearchOptionsOfProjectVersion) | **PUT** /projectVersions/{parentId}/userIssueSearchOptions | update + + + +# **getUserIssueSearchOptionsOfProjectVersion** +> ApiResultUserIssueSearchOptions getUserIssueSearchOptionsOfProjectVersion(parentId, fields) + +get + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionsOfProjectVersionControllerApi apiInstance = new UserIssueSearchOptionsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +try { + ApiResultUserIssueSearchOptions result = apiInstance.getUserIssueSearchOptionsOfProjectVersion(parentId, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionsOfProjectVersionControllerApi#getUserIssueSearchOptionsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultUserIssueSearchOptions**](ApiResultUserIssueSearchOptions.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateUserIssueSearchOptionsOfProjectVersion** +> ApiResultUserIssueSearchOptions updateUserIssueSearchOptionsOfProjectVersion(parentId, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserIssueSearchOptionsOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserIssueSearchOptionsOfProjectVersionControllerApi apiInstance = new UserIssueSearchOptionsOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +UserIssueSearchOptions resource = new UserIssueSearchOptions(); // UserIssueSearchOptions | resource +try { + ApiResultUserIssueSearchOptions result = apiInstance.updateUserIssueSearchOptionsOfProjectVersion(parentId, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserIssueSearchOptionsOfProjectVersionControllerApi#updateUserIssueSearchOptionsOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **resource** | [**UserIssueSearchOptions**](UserIssueSearchOptions.md)| resource | + +### Return type + +[**ApiResultUserIssueSearchOptions**](ApiResultUserIssueSearchOptions.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserPhoto.md b/docs/UserPhoto.md new file mode 100644 index 0000000..6850a84 --- /dev/null +++ b/docs/UserPhoto.md @@ -0,0 +1,11 @@ + +# UserPhoto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**photo** | **byte[]** | Photo in byte array | +**photoMimeType** | **String** | Mime type of user photo. Eg .bmp, .jpg etc | + + + diff --git a/docs/UserPreferences.md b/docs/UserPreferences.md new file mode 100644 index 0000000..3179386 --- /dev/null +++ b/docs/UserPreferences.md @@ -0,0 +1,18 @@ + +# UserPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dateFormat** | **String** | Preferred date format | +**email** | **String** | User email | +**emailAlerts** | **Boolean** | Receive email alerts if set to true | +**monitorAllRuntimeApps** | **Boolean** | Monitors all runtime applications if set to true | +**projectVersionListMode** | **String** | Enum for ProjectVersionListMode with values DEFAULT, CUSTOM, ALL | +**receiveRuntimeAlerts** | **Boolean** | Receive runtime alerts if set to true | +**runtimeAlertDefinitionId** | **Long** | Runtime alert definition identifier | +**timeFormat** | **String** | Preferred time format | +**username** | **String** | User name | + + + diff --git a/docs/UserPreferencesControllerApi.md b/docs/UserPreferencesControllerApi.md new file mode 100644 index 0000000..d3e0921 --- /dev/null +++ b/docs/UserPreferencesControllerApi.md @@ -0,0 +1,116 @@ +# UserPreferencesControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**postUserPreferences**](UserPreferencesControllerApi.md#postUserPreferences) | **POST** /userSession/prefs | post +[**updateUserPreferences**](UserPreferencesControllerApi.md#updateUserPreferences) | **PUT** /userSession/prefs | update + + + +# **postUserPreferences** +> ApiResultUserPreferences postUserPreferences(username) + +post + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserPreferencesControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserPreferencesControllerApi apiInstance = new UserPreferencesControllerApi(); +String username = "username_example"; // String | username +try { + ApiResultUserPreferences result = apiInstance.postUserPreferences(username); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserPreferencesControllerApi#postUserPreferences"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username | + +### Return type + +[**ApiResultUserPreferences**](ApiResultUserPreferences.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateUserPreferences** +> ApiResultUserPreferences updateUserPreferences(resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserPreferencesControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserPreferencesControllerApi apiInstance = new UserPreferencesControllerApi(); +UserPreferences resource = new UserPreferences(); // UserPreferences | resource +try { + ApiResultUserPreferences result = apiInstance.updateUserPreferences(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserPreferencesControllerApi#updateUserPreferences"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**UserPreferences**](UserPreferences.md)| resource | + +### Return type + +[**ApiResultUserPreferences**](ApiResultUserPreferences.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserSessionInfoControllerApi.md b/docs/UserSessionInfoControllerApi.md new file mode 100644 index 0000000..fd2f57c --- /dev/null +++ b/docs/UserSessionInfoControllerApi.md @@ -0,0 +1,62 @@ +# UserSessionInfoControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**postUserSessionInfo**](UserSessionInfoControllerApi.md#postUserSessionInfo) | **POST** /userSession/info | post + + + +# **postUserSessionInfo** +> ApiResultUserSessionInformation postUserSessionInfo(username) + +post + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserSessionInfoControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserSessionInfoControllerApi apiInstance = new UserSessionInfoControllerApi(); +String username = "username_example"; // String | username +try { + ApiResultUserSessionInformation result = apiInstance.postUserSessionInfo(username); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserSessionInfoControllerApi#postUserSessionInfo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username | + +### Return type + +[**ApiResultUserSessionInformation**](ApiResultUserSessionInformation.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/UserSessionInformation.md b/docs/UserSessionInformation.md new file mode 100644 index 0000000..330f476 --- /dev/null +++ b/docs/UserSessionInformation.md @@ -0,0 +1,28 @@ + +# UserSessionInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applicationContextPath** | **String** | Application context path | +**cloudScanConfig** | [**CloudScanConfig**](CloudScanConfig.md) | Cloud scan configuration | +**collabModuleEnabled** | **Boolean** | Set to true if collaboration module is enabled | +**displayUserDetails** | **Boolean** | Display user details if set to true | +**email** | **String** | User email | +**firstName** | **String** | User first name | +**fortifyUserType** | **String** | Fortify user type eg. LOCAL | +**lastName** | **String** | User last name | +**licenseCapabilities** | [**List<LicenseCapability>**](LicenseCapability.md) | List of license capabilities | +**onDemandMode** | **Boolean** | Set to true if on demand mode is enabled | +**permissions** | **List<String>** | User permissions | +**preferences** | [**UserPreferences**](UserPreferences.md) | User preferences | +**roles** | [**List<Role>**](Role.md) | User roles | +**sessionId** | **String** | User session id | +**userPhoto** | [**UserPhoto**](UserPhoto.md) | User Photo | +**userType** | **Integer** | User Type integer eg. 0 for Local | +**username** | **String** | User name | +**webappVersion** | **String** | Web application version | +**wieConfig** | [**WIEConfiguration**](WIEConfiguration.md) | WebInspect enterprise configuration | + + + diff --git a/docs/UserSessionState.md b/docs/UserSessionState.md new file mode 100644 index 0000000..3490382 --- /dev/null +++ b/docs/UserSessionState.md @@ -0,0 +1,15 @@ + +# UserSessionState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **String** | | +**id** | **Long** | | [optional] +**name** | **String** | | +**projectVersionId** | **Long** | | [optional] +**username** | **String** | | +**value** | **String** | | [optional] + + + diff --git a/docs/UserSessionStateControllerApi.md b/docs/UserSessionStateControllerApi.md new file mode 100644 index 0000000..eb41118 --- /dev/null +++ b/docs/UserSessionStateControllerApi.md @@ -0,0 +1,120 @@ +# UserSessionStateControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listUserSessionState**](UserSessionStateControllerApi.md#listUserSessionState) | **GET** /userSession/state | list +[**putUserSessionState**](UserSessionStateControllerApi.md#putUserSessionState) | **PUT** /userSession/state | put + + + +# **listUserSessionState** +> ApiResultListUserSessionState listUserSessionState(start, limit, q) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserSessionStateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserSessionStateControllerApi apiInstance = new UserSessionStateControllerApi(); +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +try { + ApiResultListUserSessionState result = apiInstance.listUserSessionState(start, limit, q); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserSessionStateControllerApi#listUserSessionState"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + +### Return type + +[**ApiResultListUserSessionState**](ApiResultListUserSessionState.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putUserSessionState** +> ApiResultListUserSessionState putUserSessionState(resources) + +put + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.UserSessionStateControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +UserSessionStateControllerApi apiInstance = new UserSessionStateControllerApi(); +List resources = Arrays.asList(new UserSessionState()); // List | resources +try { + ApiResultListUserSessionState result = apiInstance.putUserSessionState(resources); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserSessionStateControllerApi#putUserSessionState"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resources** | [**List<UserSessionState>**](UserSessionState.md)| resources | + +### Return type + +[**ApiResultListUserSessionState**](ApiResultListUserSessionState.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ValidateEquationControllerApi.md b/docs/ValidateEquationControllerApi.md new file mode 100644 index 0000000..e2a6c1f --- /dev/null +++ b/docs/ValidateEquationControllerApi.md @@ -0,0 +1,62 @@ +# ValidateEquationControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doValidateEquation**](ValidateEquationControllerApi.md#doValidateEquation) | **POST** /validateEquation | DoValidation + + + +# **doValidateEquation** +> ApiResultValidationStatus doValidateEquation(request) + +DoValidation + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ValidateEquationControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ValidateEquationControllerApi apiInstance = new ValidateEquationControllerApi(); +ValidationRequest request = new ValidationRequest(); // ValidationRequest | request +try { + ApiResultValidationStatus result = apiInstance.doValidateEquation(request); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ValidateEquationControllerApi#doValidateEquation"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ValidationRequest**](ValidationRequest.md)| request | + +### Return type + +[**ApiResultValidationStatus**](ApiResultValidationStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ValidateSearchStringControllerApi.md b/docs/ValidateSearchStringControllerApi.md new file mode 100644 index 0000000..deb6b95 --- /dev/null +++ b/docs/ValidateSearchStringControllerApi.md @@ -0,0 +1,62 @@ +# ValidateSearchStringControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**doValidateSearchString**](ValidateSearchStringControllerApi.md#doValidateSearchString) | **POST** /validateSearchString | DoValidation + + + +# **doValidateSearchString** +> ApiResultValidationStatus doValidateSearchString(request) + +DoValidation + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.ValidateSearchStringControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +ValidateSearchStringControllerApi apiInstance = new ValidateSearchStringControllerApi(); +ValidationRequest request = new ValidationRequest(); // ValidationRequest | request +try { + ApiResultValidationStatus result = apiInstance.doValidateSearchString(request); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ValidateSearchStringControllerApi#doValidateSearchString"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ValidationRequest**](ValidationRequest.md)| request | + +### Return type + +[**ApiResultValidationStatus**](ApiResultValidationStatus.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/ValidationRequest.md b/docs/ValidationRequest.md new file mode 100644 index 0000000..5ec0eca --- /dev/null +++ b/docs/ValidationRequest.md @@ -0,0 +1,10 @@ + +# ValidationRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stringToValidate** | **String** | String to validate | + + + diff --git a/docs/ValidationStatus.md b/docs/ValidationStatus.md new file mode 100644 index 0000000..adb26c1 --- /dev/null +++ b/docs/ValidationStatus.md @@ -0,0 +1,11 @@ + +# ValidationStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**msg** | **String** | Validation status message | +**valid** | **Boolean** | Indicates whether validation was successful | + + + diff --git a/docs/Variable.md b/docs/Variable.md new file mode 100644 index 0000000..c0ca952 --- /dev/null +++ b/docs/Variable.md @@ -0,0 +1,37 @@ + +# Variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributeForOperation** | **String** | | [optional] +**description** | **String** | | [optional] +**folderName** | **String** | Select a folder from the default filter set to associate with the variable. | +**guid** | **String** | | [optional] +**id** | **Long** | | [optional] +**inUse** | **Boolean** | | [optional] +**name** | **String** | | +**objectVersion** | **Integer** | | [optional] +**operation** | [**OperationEnum**](#OperationEnum) | | [optional] +**publishVersion** | **Integer** | | [optional] +**searchString** | **String** | | +**variableType** | [**VariableTypeEnum**](#VariableTypeEnum) | | [optional] + + + +## Enum: OperationEnum +Name | Value +---- | ----- +COUNT | "COUNT" +SUM | "SUM" + + + +## Enum: VariableTypeEnum +Name | Value +---- | ----- +SYSTEM_DEFINED | "SYSTEM_DEFINED" +USER_DEFINED | "USER_DEFINED" + + + diff --git a/docs/VariableControllerApi.md b/docs/VariableControllerApi.md new file mode 100644 index 0000000..fd938cd --- /dev/null +++ b/docs/VariableControllerApi.md @@ -0,0 +1,288 @@ +# VariableControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createVariable**](VariableControllerApi.md#createVariable) | **POST** /variables | create +[**deleteVariable**](VariableControllerApi.md#deleteVariable) | **DELETE** /variables/{id} | delete +[**listVariable**](VariableControllerApi.md#listVariable) | **GET** /variables | list +[**multiDeleteVariable**](VariableControllerApi.md#multiDeleteVariable) | **DELETE** /variables | multiDelete +[**updateVariable**](VariableControllerApi.md#updateVariable) | **PUT** /variables/{id} | update + + + +# **createVariable** +> ApiResultVariable createVariable(resource) + +create + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableControllerApi apiInstance = new VariableControllerApi(); +Variable resource = new Variable(); // Variable | resource +try { + ApiResultVariable result = apiInstance.createVariable(resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableControllerApi#createVariable"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource** | [**Variable**](Variable.md)| resource | + +### Return type + +[**ApiResultVariable**](ApiResultVariable.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteVariable** +> ApiResultVoid deleteVariable(id) + +delete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableControllerApi apiInstance = new VariableControllerApi(); +Long id = 789L; // Long | id +try { + ApiResultVoid result = apiInstance.deleteVariable(id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableControllerApi#deleteVariable"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listVariable** +> ApiResultListVariable listVariable(fields, start, limit, q, orderby) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableControllerApi apiInstance = new VariableControllerApi(); +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +String orderby = "orderby_example"; // String | Fields to order by +try { + ApiResultListVariable result = apiInstance.listVariable(fields, start, limit, q, orderby); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableControllerApi#listVariable"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + **orderby** | **String**| Fields to order by | [optional] + +### Return type + +[**ApiResultListVariable**](ApiResultListVariable.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **multiDeleteVariable** +> ApiResultVoid multiDeleteVariable(ids) + +multiDelete + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableControllerApi apiInstance = new VariableControllerApi(); +String ids = "ids_example"; // String | A comma-separated list of resource identifiers +try { + ApiResultVoid result = apiInstance.multiDeleteVariable(ids); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableControllerApi#multiDeleteVariable"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **String**| A comma-separated list of resource identifiers | + +### Return type + +[**ApiResultVoid**](ApiResultVoid.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateVariable** +> ApiResultVariable updateVariable(id, resource) + +update + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableControllerApi apiInstance = new VariableControllerApi(); +Long id = 789L; // Long | id +Variable resource = new Variable(); // Variable | resource +try { + ApiResultVariable result = apiInstance.updateVariable(id, resource); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableControllerApi#updateVariable"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| id | + **resource** | [**Variable**](Variable.md)| resource | + +### Return type + +[**ApiResultVariable**](ApiResultVariable.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/VariableHistory.md b/docs/VariableHistory.md new file mode 100644 index 0000000..73e99fb --- /dev/null +++ b/docs/VariableHistory.md @@ -0,0 +1,13 @@ + +# VariableHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | Variable id | [optional] +**name** | **String** | Variable Name | +**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | The Date the variable value was taken | +**value** | **Integer** | Variable value | + + + diff --git a/docs/VariableHistoryOfProjectVersionControllerApi.md b/docs/VariableHistoryOfProjectVersionControllerApi.md new file mode 100644 index 0000000..c8693a0 --- /dev/null +++ b/docs/VariableHistoryOfProjectVersionControllerApi.md @@ -0,0 +1,128 @@ +# VariableHistoryOfProjectVersionControllerApi + +All URIs are relative to *https://16.40.6.107:8080/ssc/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listVariableHistoryOfProjectVersion**](VariableHistoryOfProjectVersionControllerApi.md#listVariableHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/variableHistories | list +[**readVariableHistoryOfProjectVersion**](VariableHistoryOfProjectVersionControllerApi.md#readVariableHistoryOfProjectVersion) | **GET** /projectVersions/{parentId}/variableHistories/{id} | read + + + +# **listVariableHistoryOfProjectVersion** +> ApiResultListVariableHistory listVariableHistoryOfProjectVersion(parentId, fields, start, limit, q) + +list + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableHistoryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableHistoryOfProjectVersionControllerApi apiInstance = new VariableHistoryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String fields = "fields_example"; // String | Output fields +Integer start = 0; // Integer | A start offset in object listing +Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied +String q = "q_example"; // String | A search query +try { + ApiResultListVariableHistory result = apiInstance.listVariableHistoryOfProjectVersion(parentId, fields, start, limit, q); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableHistoryOfProjectVersionControllerApi#listVariableHistoryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **fields** | **String**| Output fields | [optional] + **start** | **Integer**| A start offset in object listing | [optional] [default to 0] + **limit** | **Integer**| A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] + **q** | **String**| A search query | [optional] + +### Return type + +[**ApiResultListVariableHistory**](ApiResultListVariableHistory.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **readVariableHistoryOfProjectVersion** +> ApiResultVariableHistory readVariableHistoryOfProjectVersion(parentId, id, fields) + +read + +### Example +```java +// Import classes: +//import com.fortify.ssc.restclient.ApiClient; +//import com.fortify.ssc.restclient.ApiException; +//import com.fortify.ssc.restclient.Configuration; +//import com.fortify.ssc.restclient.auth.*; +//import com.fortify.ssc.restclient.api.VariableHistoryOfProjectVersionControllerApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: FortifyToken +ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken"); +FortifyToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//FortifyToken.setApiKeyPrefix("Token"); + +VariableHistoryOfProjectVersionControllerApi apiInstance = new VariableHistoryOfProjectVersionControllerApi(); +Long parentId = 789L; // Long | parentId +String id = "id_example"; // String | id +String fields = "fields_example"; // String | Output fields +try { + ApiResultVariableHistory result = apiInstance.readVariableHistoryOfProjectVersion(parentId, id, fields); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VariableHistoryOfProjectVersionControllerApi#readVariableHistoryOfProjectVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parentId** | **Long**| parentId | + **id** | **String**| id | + **fields** | **String**| Output fields | [optional] + +### Return type + +[**ApiResultVariableHistory**](ApiResultVariableHistory.md) + +### Authorization + +[FortifyToken](../README.md#FortifyToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/WIEConfiguration.md b/docs/WIEConfiguration.md new file mode 100644 index 0000000..919993a --- /dev/null +++ b/docs/WIEConfiguration.md @@ -0,0 +1,11 @@ + +# WIEConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wieInstanceUrl** | **String** | WebInspect Enterprise url | +**wieRegistered** | **Boolean** | Set to true if WebInspect Enterprise is registered | + + + diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..b7a3647 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue May 17 23:08:05 CST 2016 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..9d82f78 --- /dev/null +++ b/gradlew @@ -0,0 +1,160 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..5f19212 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..671900c --- /dev/null +++ b/pom.xml @@ -0,0 +1,242 @@ + + 4.0.0 + com.fortify + ssc-restapi-client + jar + ssc-restapi-client + 2.0 + https://github.com/fortify/ssc-restapi-client + Fortify SSC REST API client + + scm:git:git@github.com:swagger-api/swagger-codegen.git + scm:git:git@github.com:swagger-api/swagger-codegen.git + https://github.com/swagger-api/swagger-codegen + + + + + MIT + https://opensource.org/licenses/MIT + repo + + + + + + Swagger + apiteam@swagger.io + Swagger + http://swagger.io + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + pertest + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + jar + test-jar + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + add_sources + generate-sources + + add-source + + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + + + + + + io.swagger + swagger-annotations + ${swagger-core-version} + + + com.squareup.okhttp + okhttp + ${okhttp-version} + + + com.squareup.okhttp + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + org.threeten + threetenbp + ${threetenbp-version} + + + + junit + junit + ${junit-version} + test + + + + 1.7 + ${java.version} + ${java.version} + 1.8.0 + 1.5.15 + 2.7.5 + 2.8.1 + 1.3.5 + 1.0.0 + 4.12 + UTF-8 + + diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..04bbebf --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "ssc-restapi-client" \ No newline at end of file diff --git a/spec.json b/spec.json new file mode 100644 index 0000000..30ac3cf --- /dev/null +++ b/spec.json @@ -0,0 +1 @@ +{"swagger":"2.0","info":{"version":"1:18.20","title":"Fortify Software Security Center API"},"host":"SSC:8080","basePath":"/ssc/api/v1","tags":[{"name":"ldap-object-controller","description":"Ldap Object Controller"},{"name":"user-issue-search-options-of-project-version-controller","description":"User Issue Search Options Of Project Version Controller"},{"name":"license-controller","description":"License Controller"},{"name":"issue-detail-controller","description":"Issue Detail Controller"},{"name":"bug-filing-requirements-of-project-version-controller","description":"Bug Filing Requirements Of Project Version Controller"},{"name":"cloud-worker-controller","description":"Cloud Worker Controller"},{"name":"auth-entity-of-project-controller","description":"Auth Entity Of Project Controller"},{"name":"folder-of-project-version-controller","description":"Folder Of Project Version Controller"},{"name":"cloud-job-of-cloud-pool-controller","description":"Cloud Job Of Cloud Pool Controller"},{"name":"cloud-job-of-cloud-worker-controller","description":"Cloud Job Of Cloud Worker Controller"},{"name":"user-issue-search-options-controller","description":"User Issue Search Options Controller"},{"name":"issue-aging-group-controller","description":"Issue Aging Group Controller"},{"name":"permission-required-by-permission-controller","description":"Permission Required By Permission Controller"},{"name":"saved-report-controller","description":"Saved Report Controller"},{"name":"project-version-of-auth-entity-controller","description":"Project Version Of Auth Entity Controller"},{"name":"job-priority-change-category-warning-of-job-controller","description":"Job Priority Change Category Warning Of Job Controller"},{"name":"source-file-of-project-version-controller","description":"Source File Of Project Version Controller"},{"name":"application-state-controller","description":"Application State Controller"},{"name":"bug-tracker-controller","description":"Bug Tracker Controller"},{"name":"custom-tag-controller","description":"Custom Tag Controller"},{"name":"audit-assistant-status-of-project-version-controller","description":"Audit Assistant Status Of Project Version Controller"},{"name":"issue-controller","description":"Issue Controller"},{"name":"ldap-server-controller","description":"Ldap Server Controller"},{"name":"engine-type-controller","description":"Engine Type Controller"},{"name":"job-controller","description":"Job Controller"},{"name":"alert-definition-controller","description":"Alert Definition Controller"},{"name":"issue-assignment-of-project-version-controller","description":"Issue Assignment Of Project Version Controller"},{"name":"issue-selector-set-of-project-version-controller","description":"Issue Selector Set Of Project Version Controller"},{"name":"dashboard-version-controller","description":"Dashboard Version Controller"},{"name":"issue-aging-portlet-controller","description":"Issue Aging Portlet Controller"},{"name":"rulepack-core-controller","description":"Rulepack Core Controller"},{"name":"dynamic-scan-request-template-of-project-version-controller","description":"Dynamic Scan Request Template Of Project Version Controller"},{"name":"role-of-auth-entity-controller","description":"Role Of Auth Entity Controller"},{"name":"folder-controller","description":"Folder Controller"},{"name":"cloud-system-poll-status-controller","description":"Cloud System Poll Status Controller"},{"name":"plugin-image-controller","description":"Plugin Image Controller"},{"name":"plugin-localization-controller","description":"Plugin Localization Controller"},{"name":"issue-view-template-controller","description":"Issue View Template Controller"},{"name":"scan-of-artifact-controller","description":"Scan Of Artifact Controller"},{"name":"issue-template-controller","description":"Issue Template Controller"},{"name":"unassigned-cloud-worker-of-cloud-pool-controller","description":"Unassigned Cloud Worker Of Cloud Pool Controller"},{"name":"persona-controller","description":"Persona Controller"},{"name":"system-configuration-controller","description":"System Configuration Controller"},{"name":"user-issue-search-option-of-project-version-controller","description":"User Issue Search Option Of Project Version Controller"},{"name":"iid-migration-of-project-version-controller","description":"Iid Migration Of Project Version Controller"},{"name":"aa-training-status-of-project-version-controller","description":"AA Training Status Of Project Version Controller"},{"name":"issue-group-of-project-version-controller","description":"Issue Group Of Project Version Controller"},{"name":"performance-indicator-controller","description":"Performance Indicator Controller"},{"name":"variable-history-of-project-version-controller","description":"Variable History Of Project Version Controller"},{"name":"responsibility-assignment-of-project-version-controller","description":"Responsibility Assignment Of Project Version Controller"},{"name":"result-processing-rule-of-project-version-controller","description":"Result Processing Rule Of Project Version Controller"},{"name":"scan-controller","description":"Scan Controller"},{"name":"attribute-definition-controller","description":"Attribute Definition Controller"},{"name":"bulk-controller","description":"Bulk Controller"},{"name":"project-controller","description":"Project Controller"},{"name":"project-version-of-project-controller","description":"Project Version Of Project Controller"},{"name":"project-version-of-alert-definition-controller","description":"Project Version Of Alert Definition Controller"},{"name":"report-library-controller","description":"Report Library Controller"},{"name":"scan-error-of-artifact-controller","description":"Scan Error Of Artifact Controller"},{"name":"auth-token-controller","description":"Auth Token Controller"},{"name":"cloud-job-controller","description":"Cloud Job Controller"},{"name":"issue-audit-comment-controller","description":"Issue Audit Comment Controller"},{"name":"cloud-worker-of-cloud-pool-controller","description":"Cloud Worker Of Cloud Pool Controller"},{"name":"rulepack-update-controller","description":"Rulepack Update Controller"},{"name":"user-session-state-controller","description":"User Session State Controller"},{"name":"issue-summary-of-project-version-controller","description":"Issue Summary Of Project Version Controller"},{"name":"auth-entity-controller","description":"Auth Entity Controller"},{"name":"custom-tag-of-issue-template-controller","description":"Custom Tag Of Issue Template Controller"},{"name":"parser-plugin-image-controller","description":"Parser Plugin Image Controller"},{"name":"attribute-of-project-controller","description":"Attribute Of Project Controller"},{"name":"group-of-auth-entity-controller","description":"Group Of Auth Entity Controller"},{"name":"dynamic-scan-request-of-project-version-controller","description":"Dynamic Scan Request Of Project Version Controller"},{"name":"artifact-controller","description":"Artifact Controller"},{"name":"token-definition-controller","description":"Token Definition Controller"},{"name":"user-preferences-controller","description":"User Preferences Controller"},{"name":"project-version-of-cloud-pool-controller","description":"Project Version Of Cloud Pool Controller"},{"name":"internal-custom-tag-controller","description":"Internal Custom Tag Controller"},{"name":"cloud-pool-mapping-controller","description":"Cloud Pool Mapping Controller"},{"name":"issue-of-project-version-controller","description":"Issue Of Project Version Controller"},{"name":"event-log-controller","description":"Event Log Controller"},{"name":"variable-controller","description":"Variable Controller"},{"name":"user-session-info-controller","description":"User Session Info Controller"},{"name":"local-user-controller","description":"Local User Controller"},{"name":"filter-set-of-project-version-controller","description":"Filter Set Of Project Version Controller"},{"name":"responsibility-assignment-of-project-controller","description":"Responsibility Assignment Of Project Controller"},{"name":"issue-attachment-of-issue-controller","description":"Issue Attachment Of Issue Controller"},{"name":"permission-controller","description":"Permission Controller"},{"name":"bugfield-template-group-controller","description":"Bugfield Template Group Controller"},{"name":"permission-of-role-controller","description":"Permission Of Role Controller"},{"name":"alert-history-controller","description":"Alert History Controller"},{"name":"audit-history-of-issue-controller","description":"Audit History Of Issue Controller"},{"name":"cloud-pool-controller","description":"Cloud Pool Controller"},{"name":"validate-equation-controller","description":"Validate Equation Controller"},{"name":"iid-migration-controller","description":"Iid Migration Controller"},{"name":"file-token-controller","description":"File Token Controller"},{"name":"role-controller","description":"Role Controller"},{"name":"configuration-controller","description":"Configuration Controller"},{"name":"issue-aging-controller","description":"Issue Aging Controller"},{"name":"performance-indicator-history-of-project-version-controller","description":"Performance Indicator History Of Project Version Controller"},{"name":"artifact-of-project-version-controller","description":"Artifact Of Project Version Controller"},{"name":"data-export-controller","description":"Data Export Controller"},{"name":"bug-tracker-of-project-version-controller","description":"Bug Tracker Of Project Version Controller"},{"name":"issue-statistics-of-project-version-controller","description":"Issue Statistics Of Project Version Controller"},{"name":"plugin-controller","description":"Plugin Controller"},{"name":"activity-feed-controller","description":"Activity Feed Controller"},{"name":"auth-entity-of-project-version-controller","description":"Auth Entity Of Project Version Controller"},{"name":"issue-audit-comment-of-issue-controller","description":"Issue Audit Comment Of Issue Controller"},{"name":"alertable-event-type-controller","description":"Alertable Event Type Controller"},{"name":"feature-controller","description":"Feature Controller"},{"name":"validate-search-string-controller","description":"Validate Search String Controller"},{"name":"attribute-of-project-version-controller","description":"Attribute Of Project Version Controller"},{"name":"dynamic-scan-requests-summary-of-project-version-controller","description":"Dynamic Scan Requests Summary Of Project Version Controller"},{"name":"project-version-controller","description":"Project Version Controller"},{"name":"cloud-system-metrics-controller","description":"Cloud System Metrics Controller"},{"name":"cloud-system-settings-controller","description":"Cloud System Settings Controller"},{"name":"custom-tag-of-project-version-controller","description":"Custom Tag Of Project Version Controller"},{"name":"report-definition-controller","description":"Report Definition Controller"}],"paths":{"/activityFeedEvents":{"get":{"tags":["activity-feed-controller"],"summary":"list","operationId":"listActivityFeed","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Activity Feed»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alertDefinitions":{"get":{"tags":["alert-definition-controller"],"summary":"list","operationId":"listAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«AlertDefinitionDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["alert-definition-controller"],"summary":"create","operationId":"createAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/AlertDefinitionDto"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«AlertDefinitionDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["alert-definition-controller"],"summary":"multiDelete","operationId":"multiDeleteAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alertDefinitions/{id}":{"get":{"tags":["alert-definition-controller"],"summary":"read","operationId":"readAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«AlertDefinitionDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["alert-definition-controller"],"summary":"update","operationId":"updateAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/AlertDefinitionDto"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«AlertDefinitionDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["alert-definition-controller"],"summary":"delete","operationId":"deleteAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alertDefinitions/{parentId}/projectVersions":{"get":{"tags":["project-version-of-alert-definition-controller"],"summary":"list","operationId":"listProjectVersionOfAlertDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alertableEventTypes":{"get":{"tags":["alertable-event-type-controller"],"summary":"list","operationId":"listAlertableEventType","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«AlertableEventType»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alerts":{"get":{"tags":["alert-history-controller"],"summary":"list","operationId":"listAlertHistory","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Alert History Entry»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alerts/action":{"post":{"tags":["alert-history-controller"],"summary":"doAction","operationId":"doActionAlertHistory","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/alerts/action/setStatus":{"post":{"tags":["alert-history-controller"],"summary":"setStatusFor","operationId":"setStatusForAlertHistory","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/AlertSetStatusRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/applicationState":{"get":{"tags":["application-state-controller"],"summary":"get","operationId":"getApplicationState","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Application State»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["application-state-controller"],"summary":"put","operationId":"putApplicationState","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"applicationState","description":"applicationState","required":true,"schema":{"$ref":"#/definitions/Application State"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Application State»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/action/approve":{"post":{"tags":["artifact-controller"],"summary":"approve","operationId":"approveArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ArtifactApproveRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/action/purge":{"post":{"tags":["artifact-controller"],"summary":"purge","operationId":"purgeArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ArtifactPurgeRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/{id}":{"get":{"tags":["artifact-controller"],"summary":"read","operationId":"readArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Artifact»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["artifact-controller"],"summary":"delete","operationId":"deleteArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/{id}/action":{"post":{"tags":["artifact-controller"],"summary":"doAction","operationId":"doActionArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resourceAction","description":"resourceAction","required":true,"schema":{"$ref":"#/definitions/ApiResourceAction"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/{parentId}/scanerrors":{"get":{"tags":["scan-error-of-artifact-controller"],"summary":"list","operationId":"listScanErrorOfArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«scan error»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/artifacts/{parentId}/scans":{"get":{"tags":["scan-of-artifact-controller"],"summary":"list","operationId":"listScanOfArtifact","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Scan»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/attributeDefinitions":{"get":{"tags":["attribute-definition-controller"],"summary":"list","operationId":"listAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Attribute Definition»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["attribute-definition-controller"],"summary":"create","operationId":"createAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Attribute Definition"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Attribute Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["attribute-definition-controller"],"summary":"multiDelete","operationId":"multiDeleteAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/attributeDefinitions/{id}":{"get":{"tags":["attribute-definition-controller"],"summary":"read","operationId":"readAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Attribute Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["attribute-definition-controller"],"summary":"update","operationId":"updateAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Attribute Definition"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Attribute Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["attribute-definition-controller"],"summary":"delete","operationId":"deleteAttributeDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities":{"get":{"tags":["auth-entity-controller"],"summary":"list","operationId":"listAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"},{"name":"entityname","in":"query","description":"entityname","required":false,"type":"string"},{"name":"ldaptype","in":"query","description":"ldaptype","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["auth-entity-controller"],"summary":"multiDelete","operationId":"multiDeleteAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{id}":{"get":{"tags":["auth-entity-controller"],"summary":"read","operationId":"readAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Authentication Entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{parentId}/groups":{"get":{"tags":["group-of-auth-entity-controller"],"summary":"list","operationId":"listGroupOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{parentId}/projectVersions":{"get":{"tags":["project-version-of-auth-entity-controller"],"summary":"list","operationId":"listProjectVersionOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["project-version-of-auth-entity-controller"],"summary":"update","operationId":"updateProjectVersionOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resources","description":"resources","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["project-version-of-auth-entity-controller"],"summary":"multiDelete","operationId":"multiDeleteProjectVersionOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{parentId}/projectVersions/action":{"post":{"tags":["project-version-of-auth-entity-controller"],"summary":"doAction","operationId":"doActionProjectVersionOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{parentId}/projectVersions/action/assign":{"post":{"tags":["project-version-of-auth-entity-controller"],"summary":"assign","operationId":"assignProjectVersionOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionAuthEntityAssignRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/authEntities/{parentId}/roles":{"get":{"tags":["role-of-auth-entity-controller"],"summary":"list","operationId":"listRoleOfAuthEntity","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Role»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/bugfieldTemplateGroups":{"get":{"tags":["bugfield-template-group-controller"],"summary":"list","operationId":"listBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«BugfieldTemplateGroupDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["bugfield-template-group-controller"],"summary":"create","operationId":"createBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/BugfieldTemplateGroupDto"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«BugfieldTemplateGroupDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["bugfield-template-group-controller"],"summary":"multiDelete","operationId":"multiDeleteBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/bugfieldTemplateGroups/{id}":{"get":{"tags":["bugfield-template-group-controller"],"summary":"read","operationId":"readBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«BugfieldTemplateGroupDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["bugfield-template-group-controller"],"summary":"update","operationId":"updateBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/BugfieldTemplateGroupDto"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«BugfieldTemplateGroupDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["bugfield-template-group-controller"],"summary":"delete","operationId":"deleteBugfieldTemplateGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/bugtrackers":{"get":{"tags":["bug-tracker-controller"],"summary":"list","operationId":"listBugTracker","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Bug Tracker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/bulk":{"post":{"tags":["bulk-controller"],"summary":"post","operationId":"postBulk","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"apiBulkRequestData","description":"apiBulkRequestData","required":true,"schema":{"$ref":"#/definitions/Bulk Request Data"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Bulk Response Item»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudjobs":{"get":{"tags":["cloud-job-controller"],"summary":"list","operationId":"listCloudJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudJob»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudjobs/action/cancel":{"post":{"tags":["cloud-job-controller"],"summary":"cancel","operationId":"cancelCloudJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudJobCancelRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudjobs/{jobToken}":{"get":{"tags":["cloud-job-controller"],"summary":"read","operationId":"readCloudJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"jobToken","in":"path","description":"jobToken","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudJob»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudjobs/{jobToken}/action":{"post":{"tags":["cloud-job-controller"],"summary":"doAction","operationId":"doActionCloudJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"jobToken","in":"path","description":"jobToken","required":true,"type":"string"},{"in":"body","name":"resourceAction","description":"resourceAction","required":true,"schema":{"$ref":"#/definitions/ApiResourceAction"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudmappings/mapByVersionId":{"get":{"tags":["cloud-pool-mapping-controller"],"summary":"mapByVersionId","operationId":"mapByVersionIdCloudPoolMapping","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"projectVersionId","in":"query","description":"projectVersionId","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolMapping»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudmappings/mapByVersionIds":{"post":{"tags":["cloud-pool-mapping-controller"],"summary":"mapByVersionIds","operationId":"mapByVersionIdsCloudPoolMapping","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"projectVersionIds","description":"projectVersionIds","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudPoolMapping»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudmappings/mapByVersionName":{"get":{"tags":["cloud-pool-mapping-controller"],"summary":"mapByVersionName","operationId":"mapByVersionNameCloudPoolMapping","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"projectName","in":"query","description":"projectName","required":true,"type":"string"},{"name":"projectVersionName","in":"query","description":"projectVersionName","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolMapping»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools":{"get":{"tags":["cloud-pool-controller"],"summary":"list","operationId":"listCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudPool»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["cloud-pool-controller"],"summary":"create","operationId":"createCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPool"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«CloudPool»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/disabledWorkers":{"get":{"tags":["unassigned-cloud-worker-of-cloud-pool-controller"],"summary":"list","operationId":"listUnassignedCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudWorker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/jobs":{"get":{"tags":["cloud-job-of-cloud-pool-controller"],"summary":"list","operationId":"listCloudJobOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudJob»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/versions":{"get":{"tags":["project-version-of-cloud-pool-controller"],"summary":"list","operationId":"listProjectVersionOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/versions/action":{"post":{"tags":["project-version-of-cloud-pool-controller"],"summary":"doAction","operationId":"doActionProjectVersionOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/versions/action/assign":{"post":{"tags":["project-version-of-cloud-pool-controller"],"summary":"assign","operationId":"assignProjectVersionOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPoolProjectVersionAssignRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolProjectVersionActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/versions/action/replace":{"post":{"tags":["project-version-of-cloud-pool-controller"],"summary":"replace","operationId":"replaceProjectVersionOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPoolProjectVersionReplaceRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolProjectVersionActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/workers":{"get":{"tags":["cloud-worker-of-cloud-pool-controller"],"summary":"list","operationId":"listCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudWorker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/workers/action":{"post":{"tags":["cloud-worker-of-cloud-pool-controller"],"summary":"doAction","operationId":"doActionCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«string»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/workers/action/assign":{"post":{"tags":["cloud-worker-of-cloud-pool-controller"],"summary":"assign","operationId":"assignCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPoolWorkerAssignRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolWorkerActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/workers/action/disable":{"post":{"tags":["cloud-worker-of-cloud-pool-controller"],"summary":"disable","operationId":"disableCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPoolWorkerDisableRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolWorkerActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{parentId}/workers/action/replace":{"post":{"tags":["cloud-worker-of-cloud-pool-controller"],"summary":"replace","operationId":"replaceCloudWorkerOfCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPoolWorkerReplaceRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPoolWorkerActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudpools/{uuid}":{"get":{"tags":["cloud-pool-controller"],"summary":"read","operationId":"readCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"uuid","in":"path","description":"uuid","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPool»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["cloud-pool-controller"],"summary":"update","operationId":"updateCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"uuid","in":"path","description":"uuid","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/CloudPool"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudPool»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["cloud-pool-controller"],"summary":"delete","operationId":"deleteCloudPool","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"uuid","in":"path","description":"uuid","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudsystem/metrics":{"get":{"tags":["cloud-system-metrics-controller"],"summary":"get","operationId":"getCloudSystemMetrics","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudSystemMetrics»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudsystem/pollstatus":{"get":{"tags":["cloud-system-poll-status-controller"],"summary":"get","operationId":"getCloudSystemPollStatus","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudSystemPollStatus»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudsystem/settings":{"get":{"tags":["cloud-system-settings-controller"],"summary":"get","operationId":"getCloudSystemSettings","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudSystemSettings»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudworkers":{"get":{"tags":["cloud-worker-controller"],"summary":"list","operationId":"listCloudWorker","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudWorker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudworkers/{parentId}/cloudjobs":{"get":{"tags":["cloud-job-of-cloud-worker-controller"],"summary":"list","operationId":"listCloudJobOfCloudWorker","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«CloudJob»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/cloudworkers/{uuid}":{"get":{"tags":["cloud-worker-controller"],"summary":"read","operationId":"readCloudWorker","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"uuid","in":"path","description":"uuid","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«CloudWorker»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/comments":{"get":{"tags":["issue-audit-comment-controller"],"summary":"list","operationId":"listIssueAuditComment","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A full text search query","required":true,"type":"string"},{"name":"fulltextsearch","in":"query","description":"Only 'true' is supported","required":true,"type":"string","default":"true","enum":["true"]}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Audit Comment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/configuration":{"get":{"tags":["configuration-controller"],"summary":"get","operationId":"getConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"group","in":"query","description":"group","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ConfigProperties»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["configuration-controller"],"summary":"update","operationId":"updateConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ConfigProperties"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ConfigProperties»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/configuration/searchIndex":{"get":{"tags":["configuration-controller"],"summary":"getFullTextIndexStatus","operationId":"getFullTextIndexStatusConfiguration","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«SearchIndexStatus»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/configuration/validateAuditAssistantConnection":{"post":{"tags":["configuration-controller"],"summary":"validateAuditAssistantConnection","operationId":"validateAuditAssistantConnectionConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ConfigProperties"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ConfigProperties»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/configuration/validateReportConnection":{"post":{"tags":["configuration-controller"],"summary":"validateReportConnection","operationId":"validateReportConnectionConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ConfigProperties"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ConfigProperties»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/configuration/{id}":{"get":{"tags":["configuration-controller"],"summary":"read","operationId":"readConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ConfigProperty»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/coreRulepacks":{"get":{"tags":["rulepack-core-controller"],"summary":"list","operationId":"listRulepackCore","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Rulepack Core»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["rulepack-core-controller"],"summary":"multiDelete","operationId":"multiDeleteRulepackCore","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/coreRulepacks/{id}":{"delete":{"tags":["rulepack-core-controller"],"summary":"delete","operationId":"deleteRulepackCore","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/customTags":{"get":{"tags":["custom-tag-controller"],"summary":"list","operationId":"listCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Custom tag»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["custom-tag-controller"],"summary":"create","operationId":"createCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/Custom tag"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Custom tag»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["custom-tag-controller"],"summary":"multiDelete","operationId":"multiDeleteCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/customTags/{id}":{"get":{"tags":["custom-tag-controller"],"summary":"read","operationId":"readCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Custom tag»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["custom-tag-controller"],"summary":"update","operationId":"updateCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Custom tag"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Custom tag»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["custom-tag-controller"],"summary":"delete","operationId":"deleteCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dashboardVersions":{"get":{"tags":["dashboard-version-controller"],"summary":"list","operationId":"listDashboardVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"groupby","in":"query","description":"Fields to group by","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"aggregateby","in":"query","description":"aggregateby","required":false,"type":"string"},{"name":"startdate","in":"query","description":"startdate","required":false,"type":"string"},{"name":"enddate","in":"query","description":"enddate","required":false,"type":"string"},{"name":"attributes","in":"query","description":"attributes","required":false,"type":"string"},{"name":"variables","in":"query","description":"variables","required":false,"type":"string"},{"name":"performanceindicators","in":"query","description":"performanceindicators","required":false,"type":"string"},{"name":"attributefilter","in":"query","description":"attributefilter","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Dashboard Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dataExports":{"get":{"tags":["data-export-controller"],"summary":"list","operationId":"listDataExport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Data Export»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dataExports/action":{"post":{"tags":["data-export-controller"],"summary":"doAction","operationId":"doActionDataExport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}},{"name":"appversionid","in":"query","description":"appversionid","required":false,"type":"string"},{"name":"datasetname","in":"query","description":"datasetname","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dataExports/action/exportAuditToCsv":{"post":{"tags":["data-export-controller"],"summary":"exportAuditToCSVFor","operationId":"exportAuditToCSVForDataExport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ExportAuditToCSVRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dataExports/action/exportIssueStatsToCsv":{"post":{"tags":["data-export-controller"],"summary":"exportIssuesStatsToCSVFor","operationId":"exportIssuesStatsToCSVForDataExport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ExportIssueStatsToCSVRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/dataExports/{id}":{"delete":{"tags":["data-export-controller"],"summary":"delete","operationId":"deleteDataExport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/engineTypes":{"get":{"tags":["engine-type-controller"],"summary":"list","operationId":"listEngineType","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Engine type»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/events":{"get":{"tags":["event-log-controller"],"summary":"list","operationId":"listEventLog","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«EventLog»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/features":{"get":{"tags":["feature-controller"],"summary":"list","operationId":"listFeature","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"use_stable_api","in":"query","description":"use_stable_api","required":false,"type":"boolean","default":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Feature»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/features/{id}":{"get":{"tags":["feature-controller"],"summary":"read","operationId":"readFeature","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Feature»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/fileTokens":{"post":{"tags":["file-token-controller"],"summary":"Create single-use file transfer token","operationId":"createFileToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/File token"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«File token»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["file-token-controller"],"summary":"Call this operation after every file upload activity","operationId":"multiDeleteFileToken","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/folders":{"get":{"tags":["folder-controller"],"summary":"get","operationId":"getFolder","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Array«string»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/iidMigrations/{id}":{"get":{"tags":["iid-migration-controller"],"summary":"read","operationId":"readIidMigration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IID Migration»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/internalCustomTags":{"get":{"tags":["internal-custom-tag-controller"],"summary":"list","operationId":"listInternalCustomTag","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Custom tag»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueDetails":{"get":{"tags":["issue-detail-controller"],"summary":"list","operationId":"listIssueDetail","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"projectName","in":"query","description":"projectName","required":true,"type":"string"},{"name":"projectVersionName","in":"query","description":"projectVersionName","required":true,"type":"string"},{"name":"instanceId","in":"query","description":"instanceId","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version issue details»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueDetails/{id}":{"get":{"tags":["issue-detail-controller"],"summary":"read","operationId":"readIssueDetail","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"filterset","in":"query","description":"Filter set to use","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project version issue details»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueTemplates":{"get":{"tags":["issue-template-controller"],"summary":"list","operationId":"listIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Template»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["issue-template-controller"],"summary":"multiDelete","operationId":"multiDeleteIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueTemplates/{id}":{"get":{"tags":["issue-template-controller"],"summary":"read","operationId":"readIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Issue Template»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["issue-template-controller"],"summary":"update","operationId":"updateIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Issue Template"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Issue Template»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["issue-template-controller"],"summary":"delete","operationId":"deleteIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueTemplates/{parentId}/customTags":{"get":{"tags":["custom-tag-of-issue-template-controller"],"summary":"list","operationId":"listCustomTagOfIssueTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Custom tag»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueViewTemplates":{"get":{"tags":["issue-view-template-controller"],"summary":"list","operationId":"listIssueViewTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueViewTemplate»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueViewTemplates/{id}":{"get":{"tags":["issue-view-template-controller"],"summary":"read","operationId":"readIssueViewTemplate","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueViewTemplate»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueaging":{"get":{"tags":["issue-aging-controller"],"summary":"list","operationId":"listIssueAging","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"filterby","in":"query","description":"filterby","required":false,"type":"string"},{"name":"aggregateby","in":"query","description":"aggregateby","required":false,"type":"string"},{"name":"groupguid","in":"query","description":"groupguid","required":false,"type":"string"},{"name":"groupvalue","in":"query","description":"groupvalue","required":false,"type":"string"},{"name":"name","in":"query","description":"name","required":false,"type":"string"},{"name":"numberOfApplicationVersions","in":"query","description":"numberOfApplicationVersions","required":false,"type":"string"},{"name":"linesOfCode","in":"query","description":"linesOfCode","required":false,"type":"string"},{"name":"issuesPendingReview","in":"query","description":"issuesPendingReview","required":false,"type":"string"},{"name":"openIssues","in":"query","description":"openIssues","required":false,"type":"string"},{"name":"filesScanned","in":"query","description":"filesScanned","required":false,"type":"string"},{"name":"bugDensity","in":"query","description":"bugDensity","required":false,"type":"string"},{"name":"averageDaysToReview","in":"query","description":"averageDaysToReview","required":false,"type":"string"},{"name":"averageDaysToRemediate","in":"query","description":"averageDaysToRemediate","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueAgingDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issueaginggroup":{"get":{"tags":["issue-aging-group-controller"],"summary":"list","operationId":"listIssueAgingGroup","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"groupby","in":"query","description":"Fields to group by","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"filterby","in":"query","description":"filterby","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueAgingGroupDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues":{"get":{"tags":["issue-controller"],"summary":"list","operationId":"listIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A full text search query","required":true,"type":"string"},{"name":"fulltextsearch","in":"query","description":"Only 'true' is supported","required":true,"type":"string","default":"true","enum":["true"]}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version issue»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues/{id}":{"get":{"tags":["issue-controller"],"summary":"read","operationId":"readIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project version issue»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues/{parentId}/attachments":{"get":{"tags":["issue-attachment-of-issue-controller"],"summary":"list","operationId":"listIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Attachment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["issue-attachment-of-issue-controller"],"summary":"create","operationId":"createIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Issue Attachment"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Issue Attachment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["issue-attachment-of-issue-controller"],"summary":"multiDelete","operationId":"multiDeleteIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues/{parentId}/attachments/{id}":{"get":{"tags":["issue-attachment-of-issue-controller"],"summary":"read","operationId":"readIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Issue Attachment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["issue-attachment-of-issue-controller"],"summary":"update","operationId":"updateIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/Issue Attachment"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Issue Attachment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["issue-attachment-of-issue-controller"],"summary":"delete","operationId":"deleteIssueAttachmentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues/{parentId}/auditHistory":{"get":{"tags":["audit-history-of-issue-controller"],"summary":"list","operationId":"listAuditHistoryOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueAuditHistoryDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/issues/{parentId}/comments":{"get":{"tags":["issue-audit-comment-of-issue-controller"],"summary":"list","operationId":"listIssueAuditCommentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Audit Comment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["issue-audit-comment-of-issue-controller"],"summary":"create","operationId":"createIssueAuditCommentOfIssue","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Issue Audit Comment"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Issue Audit Comment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/jobs":{"get":{"tags":["job-controller"],"summary":"list","operationId":"listJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Job»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/jobs/action/cancel":{"post":{"tags":["job-controller"],"summary":"cancel","operationId":"cancelJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/JobCancelRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/jobs/{jobName}":{"get":{"tags":["job-controller"],"summary":"read","operationId":"readJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"jobName","in":"path","description":"jobName","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Job»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["job-controller"],"summary":"update","operationId":"updateJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"jobName","in":"path","description":"jobName","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Job"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Job»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/jobs/{jobName}/action":{"post":{"tags":["job-controller"],"summary":"doAction","operationId":"doActionJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"jobName","in":"path","description":"jobName","required":true,"type":"string"},{"in":"body","name":"resourceAction","description":"resourceAction","required":true,"schema":{"$ref":"#/definitions/ApiResourceAction"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/jobs/{parentId}/warnings":{"get":{"tags":["job-priority-change-category-warning-of-job-controller"],"summary":"list","operationId":"listJobPriorityChangeCategoryWarningOfJob","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"priority","in":"query","description":"priority","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«JobPriorityChangeCategoryWarning»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapObjects":{"get":{"tags":["ldap-object-controller"],"summary":"list","operationId":"listLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"ldaptype","in":"query","description":"ldaptype","required":false,"type":"string"},{"name":"viewby","in":"query","description":"viewby","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«LDAP entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["ldap-object-controller"],"summary":"create","operationId":"createLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/LDAP entity"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«LDAP entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["ldap-object-controller"],"summary":"multiDelete","operationId":"multiDeleteLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapObjects/action":{"post":{"tags":["ldap-object-controller"],"summary":"doCollectionAction","operationId":"doCollectionActionLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapObjects/action/refresh":{"post":{"tags":["ldap-object-controller"],"summary":"refresh","operationId":"refreshLdapObject","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«LdapRefreshResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapObjects/{id}":{"get":{"tags":["ldap-object-controller"],"summary":"read","operationId":"readLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«LDAP entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["ldap-object-controller"],"summary":"update","operationId":"updateLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/LDAP entity"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«LDAP entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["ldap-object-controller"],"summary":"delete","operationId":"deleteLdapObject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapServers":{"get":{"tags":["ldap-server-controller"],"summary":"list","operationId":"listLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«LdapServerDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["ldap-server-controller"],"summary":"create","operationId":"createLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/LdapServerDto"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«LdapServerDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["ldap-server-controller"],"summary":"multiDelete","operationId":"multiDeleteLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapServers/action":{"post":{"tags":["ldap-server-controller"],"summary":"doCollectionAction","operationId":"doCollectionActionLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapServers/action/test":{"post":{"tags":["ldap-server-controller"],"summary":"test","operationId":"testLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/LdapServerTestRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/ldapServers/{id}":{"get":{"tags":["ldap-server-controller"],"summary":"read","operationId":"readLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«LdapServerDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["ldap-server-controller"],"summary":"update","operationId":"updateLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/LdapServerDto"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«LdapServerDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["ldap-server-controller"],"summary":"delete","operationId":"deleteLdapServer","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/license":{"get":{"tags":["license-controller"],"summary":"get","operationId":"getLicense","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«License»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]}},"/localUsers":{"get":{"tags":["local-user-controller"],"summary":"list","operationId":"listLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Local User»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["local-user-controller"],"summary":"create","operationId":"createLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"user","description":"user","required":true,"schema":{"$ref":"#/definitions/Local User"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Local User»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["local-user-controller"],"summary":"multiDelete","operationId":"multiDeleteLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/localUsers/action/checkPasswordStrength":{"post":{"tags":["local-user-controller"],"summary":"check","operationId":"checkLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"passwordStrengthCheckRequest","description":"passwordStrengthCheckRequest","required":true,"schema":{"$ref":"#/definitions/PasswordStrengthCheckRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«PasswordStrengthCheckResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/localUsers/{id}":{"get":{"tags":["local-user-controller"],"summary":"read","operationId":"readLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Local User»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["local-user-controller"],"summary":"update","operationId":"updateLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"user","description":"user","required":true,"schema":{"$ref":"#/definitions/Local User"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Local User»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["local-user-controller"],"summary":"delete","operationId":"deleteLocalUser","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/performanceIndicators":{"get":{"tags":["performance-indicator-controller"],"summary":"list","operationId":"listPerformanceIndicator","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«PerformanceIndicator»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["performance-indicator-controller"],"summary":"create","operationId":"createPerformanceIndicator","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/PerformanceIndicator"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«PerformanceIndicator»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["performance-indicator-controller"],"summary":"multiDelete","operationId":"multiDeletePerformanceIndicator","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/performanceIndicators/{id}":{"put":{"tags":["performance-indicator-controller"],"summary":"update","operationId":"updatePerformanceIndicator","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/PerformanceIndicator"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«PerformanceIndicator»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["performance-indicator-controller"],"summary":"delete","operationId":"deletePerformanceIndicator","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/permissions":{"get":{"tags":["permission-controller"],"summary":"list","operationId":"listPermission","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Permission»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/permissions/{id}":{"get":{"tags":["permission-controller"],"summary":"read","operationId":"readPermission","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Permission»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/permissions/{parentId}/dependsOn":{"get":{"tags":["permission-required-by-permission-controller"],"summary":"list","operationId":"listPermissionRequiredByPermission","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Permission»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/personas":{"get":{"tags":["persona-controller"],"summary":"list","operationId":"listPersona","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Persona»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["persona-controller"],"summary":"create","operationId":"createPersona","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Persona"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Persona»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/personas/{id}":{"get":{"tags":["persona-controller"],"summary":"read","operationId":"readPersona","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Persona»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["persona-controller"],"summary":"update","operationId":"updatePersona","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Persona"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Persona»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["persona-controller"],"summary":"delete","operationId":"deletePersona","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/pluginimage":{"get":{"tags":["plugin-image-controller"],"summary":"get","operationId":"getPluginImage","consumes":["application/json"],"produces":["image/png"],"parameters":[{"name":"imageType","in":"query","description":"imageType","required":true,"type":"string"},{"name":"metadataId","in":"query","description":"metadataId","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"type":"string","format":"byte"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/pluginimage/parser":{"get":{"tags":["parser-plugin-image-controller"],"summary":"get","operationId":"getParserPluginImage","consumes":["application/json"],"produces":["image/png"],"parameters":[{"name":"imageType","in":"query","description":"imageType","required":true,"type":"string"},{"name":"engineType","in":"query","description":"engineType","required":true,"type":"string"},{"name":"dataVersion","in":"query","description":"dataVersion","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"type":"string","format":"byte"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/pluginlocalization":{"get":{"tags":["plugin-localization-controller"],"summary":"read","operationId":"readPluginLocalization","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"engineType","in":"query","description":"engineType","required":true,"type":"string"},{"name":"dataVersion","in":"query","description":"dataVersion","required":true,"type":"integer","format":"int32"},{"name":"language","in":"query","description":"language","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Plugin Localization»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/plugins":{"get":{"tags":["plugin-controller"],"summary":"list","operationId":"listPlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Plugin Meta Data»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/plugins/action/disable":{"post":{"tags":["plugin-controller"],"summary":"disable","operationId":"disablePlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/PluginDisableRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/plugins/action/enable":{"post":{"tags":["plugin-controller"],"summary":"enable","operationId":"enablePlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/PluginEnableRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/plugins/{id}":{"get":{"tags":["plugin-controller"],"summary":"read","operationId":"readPlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Plugin Meta Data»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["plugin-controller"],"summary":"delete","operationId":"deletePlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/plugins/{id}/action":{"post":{"tags":["plugin-controller"],"summary":"doAction","operationId":"doActionPlugin","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"apiResourceAction","description":"apiResourceAction","required":true,"schema":{"$ref":"#/definitions/ApiResourceAction"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/portlets/issueaging":{"get":{"tags":["issue-aging-portlet-controller"],"summary":"get","operationId":"getIssueAgingPortlet","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueAgingPortlet»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions":{"get":{"tags":["project-version-controller"],"summary":"list","operationId":"listProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"includeInactive","in":"query","description":"includeInactive","required":false,"type":"boolean","default":false},{"name":"myAssignedIssues","in":"query","description":"myAssignedIssues","required":false,"type":"boolean","default":false},{"name":"onlyIfHasIssues","in":"query","description":"onlyIfHasIssues","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["project-version-controller"],"summary":"create","operationId":"createProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Project Version"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Project Version»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action":{"post":{"tags":["project-version-controller"],"summary":"doCollectionAction","operationId":"doCollectionActionProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/auditByAuditAssistant":{"post":{"tags":["project-version-controller"],"summary":"auditByAuditAssistant","operationId":"auditByAuditAssistantProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionAuditByAssistantRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/copyCurrentState":{"post":{"tags":["project-version-controller"],"summary":"copyCurrentStateFor","operationId":"copyCurrentStateForProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionCopyCurrentStateRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/copyFromPartial":{"post":{"tags":["project-version-controller"],"summary":"copy","operationId":"copyProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionCopyPartialRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/purge":{"post":{"tags":["project-version-controller"],"summary":"purge","operationId":"purgeProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionPurgeRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/refresh":{"post":{"tags":["project-version-controller"],"summary":"refresh","operationId":"refreshProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionRefreshRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ProjectVersionRefreshResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/test":{"post":{"tags":["project-version-controller"],"summary":"test","operationId":"testProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"projectVersionTestRequest","description":"projectVersionTestRequest","required":true,"schema":{"$ref":"#/definitions/ProjectVersionTestRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ProjectVersionTestResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/action/trainAuditAssistant":{"post":{"tags":["project-version-controller"],"summary":"trainAuditAssistant","operationId":"trainAuditAssistantProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ProjectVersionTrainAuditAssistantRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{id}":{"get":{"tags":["project-version-controller"],"summary":"read","operationId":"readProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project Version»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["project-version-controller"],"summary":"update","operationId":"updateProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Project Version"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project Version»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["project-version-controller"],"summary":"delete","operationId":"deleteProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{id}/action":{"post":{"tags":["project-version-controller"],"summary":"doAction","operationId":"doActionProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resourceAction","description":"resourceAction","required":true,"schema":{"$ref":"#/definitions/ApiResourceAction"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/artifacts":{"get":{"tags":["artifact-of-project-version-controller"],"summary":"list","operationId":"listArtifactOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Artifact»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["artifact-of-project-version-controller"],"summary":"upload","operationId":"uploadArtifactOfProjectVersion","consumes":["multipart/form-data"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"file","in":"formData","description":"file","required":true,"type":"file"},{"name":"engineType","in":"query","description":"engineType","required":false,"type":"string"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Artifact»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/attributes":{"get":{"tags":["attribute-of-project-version-controller"],"summary":"list","operationId":"listAttributeOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Attribute»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["attribute-of-project-version-controller"],"summary":"create","operationId":"createAttributeOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Attribute"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Attribute»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["attribute-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionAttributeOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Attribute"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Attribute»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/attributes/{id}":{"get":{"tags":["attribute-of-project-version-controller"],"summary":"read","operationId":"readAttributeOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Attribute»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/auditAssistantStatus":{"get":{"tags":["audit-assistant-status-of-project-version-controller"],"summary":"list","operationId":"listAuditAssistantStatusOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«AuditAssistantStatus»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/auditAssistantTrainingStatus":{"get":{"tags":["aa-training-status-of-project-version-controller"],"summary":"list","operationId":"listAaTrainingStatusOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«AATrainingStatus»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/authEntities":{"get":{"tags":["auth-entity-of-project-version-controller"],"summary":"list","operationId":"listAuthEntityOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"},{"name":"extractusersfromgroups","in":"query","description":"extractusersfromgroups","required":false,"type":"boolean"},{"name":"includeuniversalaccessentities","in":"query","description":"includeuniversalaccessentities","required":false,"type":"boolean"},{"name":"entityname","in":"query","description":"entityname","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["auth-entity-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionAuthEntityOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Authentication Entity"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/authEntities/{id}":{"get":{"tags":["auth-entity-of-project-version-controller"],"summary":"read","operationId":"readAuthEntityOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Authentication Entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugfilingrequirements":{"get":{"tags":["bug-filing-requirements-of-project-version-controller"],"summary":"list","operationId":"listBugFilingRequirementsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«BugFilingRequirements»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["bug-filing-requirements-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionBugFilingRequirementsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/BugFilingRequirements"}}},{"name":"changedParamIdentifier","in":"query","description":"changedParamIdentifier","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«BugFilingRequirements»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugfilingrequirements/action":{"post":{"tags":["bug-filing-requirements-of-project-version-controller"],"summary":"doAction","operationId":"doActionBugFilingRequirementsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«string»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugfilingrequirements/action/login":{"post":{"tags":["bug-filing-requirements-of-project-version-controller"],"summary":"login","operationId":"loginBugFilingRequirementsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/BugFilingRequirementsRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«BugFilingRequirementsResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugtracker":{"get":{"tags":["bug-tracker-of-project-version-controller"],"summary":"list","operationId":"listBugTrackerOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version bug tracker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["bug-tracker-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionBugTrackerOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Project version bug tracker"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version bug tracker»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugtracker/action":{"post":{"tags":["bug-tracker-of-project-version-controller"],"summary":"doAction","operationId":"doActionBugTrackerOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«string»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/bugtracker/action/test":{"post":{"tags":["bug-tracker-of-project-version-controller"],"summary":"test","operationId":"testBugTrackerOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/BugTrackerRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/customTags":{"get":{"tags":["custom-tag-of-project-version-controller"],"summary":"list","operationId":"listCustomTagOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"includeall","in":"query","description":"includeall","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Custom tag»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["custom-tag-of-project-version-controller"],"summary":"create","operationId":"createCustomTagOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Custom tag"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Custom tag»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["custom-tag-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionCustomTagOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Custom tag"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Custom tag»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/customTags/{id}":{"put":{"tags":["custom-tag-of-project-version-controller"],"summary":"update","operationId":"updateCustomTagOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/Custom tag"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Custom tag»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/dynamicScanRequestTemplate":{"get":{"tags":["dynamic-scan-request-template-of-project-version-controller"],"summary":"get","operationId":"getDynamicScanRequestTemplateOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«DynamicScanRequestTemplate»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/dynamicScanRequests":{"get":{"tags":["dynamic-scan-request-of-project-version-controller"],"summary":"list","operationId":"listDynamicScanRequestOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«DynamicScanRequest»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["dynamic-scan-request-of-project-version-controller"],"summary":"create","operationId":"createDynamicScanRequestOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/DynamicScanRequest"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«DynamicScanRequest»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/dynamicScanRequests/{id}":{"get":{"tags":["dynamic-scan-request-of-project-version-controller"],"summary":"read","operationId":"readDynamicScanRequestOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«DynamicScanRequest»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["dynamic-scan-request-of-project-version-controller"],"summary":"update","operationId":"updateDynamicScanRequestOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/DynamicScanRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«DynamicScanRequest»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/dynamicScanRequests/{id}/action":{"post":{"tags":["dynamic-scan-request-of-project-version-controller"],"summary":"Cancel a Dynamic Scan Request","operationId":"cancelDynamicScanRequestOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/dynamicScanRequestsSummary":{"get":{"tags":["dynamic-scan-requests-summary-of-project-version-controller"],"summary":"get","operationId":"getDynamicScanRequestsSummaryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«DynamicScanRequestsSummary»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/filterSets":{"get":{"tags":["filter-set-of-project-version-controller"],"summary":"list","operationId":"listFilterSetOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Filter Set»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/folders":{"get":{"tags":["folder-of-project-version-controller"],"summary":"list","operationId":"listFolderOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Folder»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/folders/{id}":{"get":{"tags":["folder-of-project-version-controller"],"summary":"read","operationId":"readFolderOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Folder»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/iidMigrations":{"get":{"tags":["iid-migration-of-project-version-controller"],"summary":"list","operationId":"listIidMigrationOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IID Migration»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["iid-migration-of-project-version-controller"],"summary":"create","operationId":"createIidMigrationOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/IID Migration"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«IID Migration»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueAssignment":{"get":{"tags":["issue-assignment-of-project-version-controller"],"summary":"list","operationId":"listIssueAssignmentOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"entityname","in":"query","description":"entityname","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Assignment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueAssignment/{id}":{"get":{"tags":["issue-assignment-of-project-version-controller"],"summary":"read","operationId":"readIssueAssignmentOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Issue Assignment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueGroups":{"get":{"tags":["issue-group-of-project-version-controller"],"summary":"list","operationId":"listIssueGroupOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"An issue query expression, must be used together with the 'qm' parameter","required":false,"type":"string"},{"name":"qm","in":"query","description":"Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used","required":false,"type":"string","enum":["issues"]},{"name":"filterset","in":"query","description":"Filter set to use","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"showhidden","in":"query","description":"If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showremoved","in":"query","description":"If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showsuppressed","in":"query","description":"If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showshortfilenames","in":"query","description":"If 'true', only short file names will be displayed in issues list.","required":false,"type":"boolean","default":false},{"name":"filter","in":"query","description":"filter","required":false,"type":"string"},{"name":"groupingtype","in":"query","description":"groupingtype","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version issue group»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueSearchOptions":{"get":{"tags":["user-issue-search-option-of-project-version-controller"],"summary":"list","operationId":"listUserIssueSearchOptionOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueSearchOption»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}],"deprecated":true},"put":{"tags":["user-issue-search-option-of-project-version-controller"],"summary":"update","operationId":"updateUserIssueSearchOptionOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resources","description":"resources","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/IssueSearchOption"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«IssueSearchOption»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}],"deprecated":true}},"/projectVersions/{parentId}/issueSearchOptions/{optionType}":{"get":{"tags":["user-issue-search-option-of-project-version-controller"],"summary":"read","operationId":"readUserIssueSearchOptionOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"optionType","in":"path","description":"optionType","required":true,"type":"string","enum":["INCLUDE_COMMENTS_IN_HISTORY","HIDDEN","REMOVED","SUPPRESSED","SHORT_FILE_NAMES"]},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueSearchOption»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}],"deprecated":true}},"/projectVersions/{parentId}/issueSelectorSet":{"get":{"tags":["issue-selector-set-of-project-version-controller"],"summary":"get","operationId":"getIssueSelectorSetOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueFilterSelectorSet»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueStatistics":{"get":{"tags":["issue-statistics-of-project-version-controller"],"summary":"list","operationId":"listIssueStatisticsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"filterset","in":"query","description":"Filter set to use","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Statistics»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issueSummaries":{"get":{"tags":["issue-summary-of-project-version-controller"],"summary":"list","operationId":"listIssueSummaryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"seriestype","in":"query","description":"seriestype","required":true,"type":"string"},{"name":"groupaxistype","in":"query","description":"groupaxistype","required":true,"type":"string"},{"name":"audited","in":"query","description":"audited","required":false,"type":"string"},{"name":"filter","in":"query","description":"filter","required":false,"type":"string"},{"name":"showhidden","in":"query","description":"showhidden","required":false,"type":"boolean"},{"name":"showremoved","in":"query","description":"showremoved","required":false,"type":"boolean"},{"name":"showsuppressed","in":"query","description":"showsuppressed","required":false,"type":"boolean"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Issue Summary»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues":{"get":{"tags":["issue-of-project-version-controller"],"summary":"list","operationId":"listIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"An issue query expression, must be used together with the 'qm' parameter","required":false,"type":"string"},{"name":"qm","in":"query","description":"Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used","required":false,"type":"string","enum":["issues"]},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"filterset","in":"query","description":"Filter set to use","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"showhidden","in":"query","description":"If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showremoved","in":"query","description":"If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showsuppressed","in":"query","description":"If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option.","required":false,"type":"boolean","default":false},{"name":"showshortfilenames","in":"query","description":"If 'true', only short file names will be displayed in issues list.","required":false,"type":"boolean","default":false},{"name":"filter","in":"query","description":"filter","required":false,"type":"string"},{"name":"groupid","in":"query","description":"groupid","required":false,"type":"string"},{"name":"groupingtype","in":"query","description":"groupingtype","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project version issue»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action":{"post":{"tags":["issue-of-project-version-controller"],"summary":"doAction","operationId":"doActionIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"collectionAction","description":"collectionAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action/assignUser":{"post":{"tags":["issue-of-project-version-controller"],"summary":"assignUserFor","operationId":"assignUserForIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/IssueAssignUserRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action/audit":{"post":{"tags":["issue-of-project-version-controller"],"summary":"audit","operationId":"auditIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/IssueAuditRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action/fileBug":{"post":{"tags":["issue-of-project-version-controller"],"summary":"fileBugFor","operationId":"fileBugForIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/IssueFileBugRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueFileBugResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action/suppress":{"post":{"tags":["issue-of-project-version-controller"],"summary":"suppress","operationId":"suppressIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/IssueSuppressRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/action/updateTag":{"post":{"tags":["issue-of-project-version-controller"],"summary":"updateTagFor","operationId":"updateTagForIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/IssueUpdateTagRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«IssueActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/issues/{id}":{"get":{"tags":["issue-of-project-version-controller"],"summary":"read","operationId":"readIssueOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project version issue»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/performanceIndicatorHistories":{"get":{"tags":["performance-indicator-history-of-project-version-controller"],"summary":"list","operationId":"listPerformanceIndicatorHistoryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Performance Indicator History»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/performanceIndicatorHistories/{id}":{"get":{"tags":["performance-indicator-history-of-project-version-controller"],"summary":"read","operationId":"readPerformanceIndicatorHistoryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Performance Indicator History»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/responsibilities":{"get":{"tags":["responsibility-assignment-of-project-version-controller"],"summary":"list","operationId":"listResponsibilityAssignmentOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Responsibility Assignment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["responsibility-assignment-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionResponsibilityAssignmentOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Responsibility Assignment"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Responsibility Assignment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/responsibilities/{guid}":{"get":{"tags":["responsibility-assignment-of-project-version-controller"],"summary":"read","operationId":"readResponsibilityAssignmentOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"guid","in":"path","description":"guid","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Responsibility Assignment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/resultProcessingRules":{"get":{"tags":["result-processing-rule-of-project-version-controller"],"summary":"list","operationId":"listResultProcessingRuleOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Result processing rule»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["result-processing-rule-of-project-version-controller"],"summary":"updateCollection","operationId":"updateCollectionResultProcessingRuleOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Result processing rule"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Result processing rule»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/sourceFiles":{"get":{"tags":["source-file-of-project-version-controller"],"summary":"list","operationId":"listSourceFileOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«SourceFileDto»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/sourceFiles/{id}":{"get":{"tags":["source-file-of-project-version-controller"],"summary":"read","operationId":"readSourceFileOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«SourceFileDto»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/userIssueSearchOptions":{"get":{"tags":["user-issue-search-options-of-project-version-controller"],"summary":"get","operationId":"getUserIssueSearchOptionsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«UserIssueSearchOptions»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["user-issue-search-options-of-project-version-controller"],"summary":"update","operationId":"updateUserIssueSearchOptionsOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/UserIssueSearchOptions"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«UserIssueSearchOptions»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/variableHistories":{"get":{"tags":["variable-history-of-project-version-controller"],"summary":"list","operationId":"listVariableHistoryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Variable History»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projectVersions/{parentId}/variableHistories/{id}":{"get":{"tags":["variable-history-of-project-version-controller"],"summary":"read","operationId":"readVariableHistoryOfProjectVersion","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Variable History»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects":{"get":{"tags":["project-controller"],"summary":"list","operationId":"listProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/action":{"post":{"tags":["project-controller"],"summary":"doCollectionAction","operationId":"doCollectionActionProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"apiResourceAction","description":"apiResourceAction","required":true,"schema":{"$ref":"#/definitions/ApiCollectionAction«long»"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApiActionResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/action/test":{"post":{"tags":["project-controller"],"summary":"test","operationId":"testProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/ApplicationNameTestRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«ApplicationNameTestResponse»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{id}":{"get":{"tags":["project-controller"],"summary":"read","operationId":"readProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["project-controller"],"summary":"update","operationId":"updateProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/Project"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Project»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/attributes":{"get":{"tags":["attribute-of-project-controller"],"summary":"list","operationId":"listAttributeOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Attribute»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["attribute-of-project-controller"],"summary":"create","operationId":"createAttributeOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"$ref":"#/definitions/Attribute"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Attribute»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["attribute-of-project-controller"],"summary":"updateCollection","operationId":"updateCollectionAttributeOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resources","description":"resources","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Attribute"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Attribute»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/attributes/{id}":{"get":{"tags":["attribute-of-project-controller"],"summary":"read","operationId":"readAttributeOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Attribute»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/authEntities":{"get":{"tags":["auth-entity-of-project-controller"],"summary":"list","operationId":"listAuthEntityOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["auth-entity-of-project-controller"],"summary":"updateCollection","operationId":"updateCollectionAuthEntityOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resources","description":"resources","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Authentication Entity"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Entity»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/authEntities/{id}":{"get":{"tags":["auth-entity-of-project-controller"],"summary":"read","operationId":"readAuthEntityOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Authentication Entity»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/responsibilities":{"get":{"tags":["responsibility-assignment-of-project-controller"],"summary":"list","operationId":"listResponsibilityAssignmentOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Responsibility Assignment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["responsibility-assignment-of-project-controller"],"summary":"updateCollection","operationId":"updateCollectionResponsibilityAssignmentOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"data","description":"data","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/Responsibility Assignment"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Responsibility Assignment»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/responsibilities/{guid}":{"get":{"tags":["responsibility-assignment-of-project-controller"],"summary":"read","operationId":"readResponsibilityAssignmentOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"guid","in":"path","description":"guid","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Responsibility Assignment»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/projects/{parentId}/versions":{"get":{"tags":["project-version-of-project-controller"],"summary":"list","operationId":"listProjectVersionOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"includeInactive","in":"query","description":"includeInactive","required":false,"type":"boolean","default":false},{"name":"myAssignedIssues","in":"query","description":"myAssignedIssues","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Project Version»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["project-version-of-project-controller"],"summary":"create","operationId":"createProjectVersionOfProject","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Project Version"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Project Version»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reportDefinitions":{"get":{"tags":["report-definition-controller"],"summary":"list","operationId":"listReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"groupby","in":"query","description":"Fields to group by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Report Definition»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["report-definition-controller"],"summary":"create","operationId":"createReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Report Definition"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Report Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["report-definition-controller"],"summary":"multiDelete","operationId":"multiDeleteReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reportDefinitions/{id}":{"get":{"tags":["report-definition-controller"],"summary":"read","operationId":"readReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Report Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["report-definition-controller"],"summary":"update","operationId":"updateReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Report Definition"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Report Definition»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["report-definition-controller"],"summary":"delete","operationId":"deleteReportDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reportLibraries":{"get":{"tags":["report-library-controller"],"summary":"list","operationId":"listReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Report Library»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["report-library-controller"],"summary":"create","operationId":"createReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Report Library"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Report Library»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["report-library-controller"],"summary":"multiDelete","operationId":"multiDeleteReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reportLibraries/{id}":{"get":{"tags":["report-library-controller"],"summary":"read","operationId":"readReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Report Library»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["report-library-controller"],"summary":"update","operationId":"updateReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Report Library"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Report Library»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["report-library-controller"],"summary":"delete","operationId":"deleteReportLibrary","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reports":{"get":{"tags":["saved-report-controller"],"summary":"list","operationId":"listSavedReport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search-spec of full text search query (see fulltextsearch parameter)","required":false,"type":"string"},{"name":"fulltextsearch","in":"query","description":"If 'true', interpret 'q' parameter as full text search query, defaults to 'false'","required":false,"type":"boolean","default":false},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Saved Report»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["saved-report-controller"],"summary":"create","operationId":"createSavedReport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Saved Report"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Saved Report»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/reports/{id}":{"get":{"tags":["saved-report-controller"],"summary":"read","operationId":"readSavedReport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"embed","in":"query","description":"Fields to embed","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Saved Report»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["saved-report-controller"],"summary":"delete","operationId":"deleteSavedReport","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/roles":{"get":{"tags":["role-controller"],"summary":"list","operationId":"listRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"excludeuseronly","in":"query","description":"excludeuseronly","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Role»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["role-controller"],"summary":"create","operationId":"createRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Role"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Role»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["role-controller"],"summary":"multiDelete","operationId":"multiDeleteRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/roles/{id}":{"get":{"tags":["role-controller"],"summary":"read","operationId":"readRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Role»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["role-controller"],"summary":"update","operationId":"updateRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Role"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Role»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["role-controller"],"summary":"delete","operationId":"deleteRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/roles/{parentId}/permissions":{"get":{"tags":["permission-of-role-controller"],"summary":"list","operationId":"listPermissionOfRole","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"parentId","in":"path","description":"parentId","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Permission»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/scans/{id}":{"get":{"tags":["scan-controller"],"summary":"read","operationId":"readScan","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Scan»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/systemConfiguration":{"get":{"tags":["system-configuration-controller"],"summary":"list","operationId":"listSystemConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«System Configuration»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/systemConfiguration/{name}":{"get":{"tags":["system-configuration-controller"],"summary":"read","operationId":"readSystemConfiguration","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"name","in":"path","description":"name","required":true,"type":"string"},{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«System Configuration»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/tokenDefinitions":{"get":{"tags":["token-definition-controller"],"summary":"list","operationId":"listTokenDefinition","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Token Definition»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/tokens":{"get":{"tags":["auth-token-controller"],"summary":"list","operationId":"listAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Authentication Token»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]},"post":{"tags":["auth-token-controller"],"summary":"create","operationId":"createAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"authToken","description":"authToken","required":true,"schema":{"$ref":"#/definitions/Authentication Token"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Authentication Token»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]},"delete":{"tags":["auth-token-controller"],"summary":"Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids.","operationId":"multiDeleteAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"all","in":"query","description":"Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used.","required":false,"type":"boolean","default":false},{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]}},"/tokens/action/revoke":{"post":{"tags":["auth-token-controller"],"summary":"Revoke authentication tokens by value","operationId":"revokeAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/AuthTokenRevokeRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]}},"/tokens/{id}":{"put":{"tags":["auth-token-controller"],"summary":"update","operationId":"updateAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Authentication Token"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Authentication Token»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]},"delete":{"tags":["auth-token-controller"],"summary":"delete","operationId":"deleteAuthToken","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"Basic":[]}]}},"/updateRulepacks":{"get":{"tags":["rulepack-update-controller"],"summary":"list","operationId":"listRulepackUpdate","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«RulepacksBatchProcessStatus»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/userIssueSearchOptions":{"get":{"tags":["user-issue-search-options-controller"],"summary":"get","operationId":"getUserIssueSearchOptions","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«UserIssueSearchOptions»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["user-issue-search-options-controller"],"summary":"update","operationId":"updateUserIssueSearchOptions","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/UserIssueSearchOptions"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«UserIssueSearchOptions»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/userSession/info":{"post":{"tags":["user-session-info-controller"],"summary":"post","operationId":"postUserSessionInfo","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"username","description":"username","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«User session information»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/userSession/prefs":{"post":{"tags":["user-preferences-controller"],"summary":"post","operationId":"postUserPreferences","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"username","description":"username","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«User preferences»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["user-preferences-controller"],"summary":"update","operationId":"updateUserPreferences","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/User preferences"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«User preferences»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/userSession/state":{"get":{"tags":["user-session-state-controller"],"summary":"list","operationId":"listUserSessionState","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«UserSessionState»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"put":{"tags":["user-session-state-controller"],"summary":"put","operationId":"putUserSessionState","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resources","description":"resources","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/UserSessionState"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«UserSessionState»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/validateEquation":{"post":{"tags":["validate-equation-controller"],"summary":"DoValidation","operationId":"doValidateEquation","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/Validation Request"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Validation Status»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/validateSearchString":{"post":{"tags":["validate-search-string-controller"],"summary":"DoValidation","operationId":"doValidateSearchString","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/Validation Request"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Validation Status»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/variables":{"get":{"tags":["variable-controller"],"summary":"list","operationId":"listVariable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"fields","in":"query","description":"Output fields","required":false,"type":"string"},{"name":"start","in":"query","description":"A start offset in object listing","required":false,"type":"integer","default":0,"minimum":0,"format":"int32"},{"name":"limit","in":"query","description":"A maximum number of returned objects in listing, if '-1' or '0' no limit is applied","required":false,"type":"integer","default":200,"minimum":-1,"format":"int32"},{"name":"q","in":"query","description":"A search query","required":false,"type":"string"},{"name":"orderby","in":"query","description":"Fields to order by","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«List«Variable»»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"post":{"tags":["variable-controller"],"summary":"create","operationId":"createVariable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Variable"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ApiResult«Variable»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["variable-controller"],"summary":"multiDelete","operationId":"multiDeleteVariable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ids","in":"query","description":"A comma-separated list of resource identifiers","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}},"/variables/{id}":{"put":{"tags":["variable-controller"],"summary":"update","operationId":"updateVariable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"resource","description":"resource","required":true,"schema":{"$ref":"#/definitions/Variable"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Variable»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]},"delete":{"tags":["variable-controller"],"summary":"delete","operationId":"deleteVariable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ApiResult«Void»"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ApiResult"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ApiResult"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ApiResult"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ApiResult"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/ApiResult"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ApiResult"}}},"security":[{"FortifyToken":[]}]}}},"securityDefinitions":{"Basic":{"type":"basic"},"FortifyToken":{"type":"apiKey","name":"Authorization","in":"header","x-fortify-api-key-prefix":"FortifyToken"}},"definitions":{"AATrainingStatus":{"type":"object","properties":{"lastTrainingTime":{"type":"string","format":"date-time"},"message":{"type":"string"},"projectVersionId":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["NONE","TRAINING_SUBMITTED","TRAINING_FAILED","TRAINING_COMPLETE"]},"userName":{"type":"string"}},"description":"Audit Assistant Training (AATrainingStatus) DTO object."},"Activity Feed":{"type":"object","properties":{"authEntity":{"description":"Entity","readOnly":true,"$ref":"#/definitions/Authentication Entity"},"detailedNote":{"type":"string","readOnly":true},"entityId":{"type":"integer","format":"int64","readOnly":true},"eventDate":{"type":"string","format":"date-time","readOnly":true},"eventType":{"type":"string","readOnly":true,"enum":["WEBUI_LOGIN_SUCCESS","WEBUI_LOGIN_FAILED","WEBUI_LOGOUT","WS_LOGIN_SUCCESS","WS_LOGIN_FAILED","LOCAL_USER_CREATED","LOCAL_USER_UPDATED","LOCAL_USER_DELETED","AGENT_CREDENTIAL_CREATED","AGENT_CREDENTIAL_UPDATED","AGENT_CREDENTIAL_DELETED","LDAP_ENTITY_CREATED","LDAP_ENTITY_UPDATED","LDAP_ENTITY_DELETED","LDAP_CACHE_REFRESH_REQUESTED","LDAP_CACHE_REFRESH_STARTED","LDAP_CACHE_REFRESH_COMPLETED","PROJECT_VERSION_CREATED","PROJECT_VERSION_CREATED_FROM_PREVIOUS","PROJECT_VERSION_UPDATED","PROJECT_VERSION_DELETED","PROJECT_VERSION_METADATA_UPDATED","PROJECT_VERSION_ACCESS_ADDED","PROJECT_VERSION_ACCESS_REMOVED","PROJECT_VERSION_BUG_TRACKER_UPDATED","SCA_RESULT_PROCESSED","RUNTIME_RESULT_PROCESSED","EXTERNAL_RESULT_PROCESSED","PTA_RESULT_PROCESSED","RTA_RESULT_PROCESSED","ARTIFACT_UPLOAD_REQUESTED","ARTIFACT_UPLOAD_STARTED","ARTIFACT_UPLOAD_COMPLETED","ARTIFACT_UPLOAD_FAILED","ARTIFACT_UPLOAD_CANCELLED","ARTIFACT_DELETE_REQUESTED","ARTIFACT_DELETE_STARTED","ARTIFACT_DELETE_COMPLETED","ARTIFACT_DELETE_FAILED","ARTIFACT_DELETE_CANCELLED","JOB_CANCELLED","ARTIFACT_PURGE_REQUESTED","ARTIFACT_PURGE_REQUEST_STARTED","ARTIFACT_PURGE_COMPLETED","ARTIFACT_PURGE_FAILED","ARTIFACT_PURGE_REQUEST_FINISHED","ARTIFACT_PURGE_CANCELLED","HISTORICAL_SNAPSHOT_COLLECTION_STARTED","HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED","HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED","HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES","AUDIT_PERFORMED","ARTIFACT_UPLOAD_REQUIRES_AUTH","SOURCE_CODE_UPLOADED","FILTERSET_FOLDER_REFRESH_REQUESTED","FILTERSET_FOLDER_REFRESH_COMPLETED","FILTERSET_FOLDER_REFRESH_FAILED","DYNAMIC_SCAN_CREATED","DYNAMIC_SCAN_EDITED","DYNAMIC_SCAN_CANCELED","DYNAMIC_SCAN_COMPLETED","DYNAMIC_SCAN_PICKED_UP","BATCH_BUG_FILING_REQUESTED","BATCH_BUG_FILING_REQUEST_FAILED","BATCH_BUG_FILING_STARTED","BATCH_BUG_FILING_ENDED","BATCH_BUG_FILING_FAILED","BUG_FILED","BUG_FAILED_TO_FILE","BUG_STATE_MANAGEMENT_STARTED","BUG_STATE_MANAGEMENT_ENDED","BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS","BUG_UPDATED","BUG_FAILED_TO_UPDATE","COMMENT_ADDED_TO_ISSUE","AUDIT_ASSISTANT_ISSUES_SUBMITTED","AUDIT_ASSISTANT_ISSUES_RETRIEVED","AUDIT_ASSISTANT_FPR_UPLOAD_STARTED","AUDIT_ASSISTANT_TRAINING_SENT","AUDIT_ASSISTANT_TEST_CONNECTION_FAILED","AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED","AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED","AUDIT_ASSISTANT_FPR_UPLOAD_FAILED","AUDIT_ASSISTANT_TRAINING_SENT_FAILED","REPORT_GENERATION_REQUESTED","REPORT_GENERATION_COMPLETED","REPORT_GENERATION_FAILED","REPORT_GENERATION_CANCELLED","REPORT_DELETED","RULEPACK_SERVER_UPDATE","RULEPACK_USER_UPLOAD","RULEPACK_DELETED","RULEPACK_DOWNLOAD","RULEPACK_CLIENT_UPDATE","DOCUMENT_ARTIFACT_CREATED","DOCUMENT_ARTIFACT_UPDATED","DOCUMENT_ARTIFACT_DELETED","TASK_INSTANCE_CREATED","TASK_INSTANCE_UPDATED","TASK_INSTANCE_DELETED","TASK_INSTANCE_SIGNOFF_UPDATED","ACTIVITY_INSTANCE_SIGNOFF_UPDATED","REQUIREMENT_INSTANCE_SIGNOFF_UPDATED","REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED","TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF","SDL_COMMENT_CREATED","PROJECT_PERSONA_ASSIGNMENT_UPDATED","PERSONA_ASSIGNMENT_UPDATED","WORK_OWNER_UPDATED","DUE_DATE_UPDATED","SESSION_TIMEOUT","REQ_TEMPLATE_CREATED","REQ_TEMPLATE_UPDATED","ACTIVITY_CREATED","ACTIVITY_UPDATED","VARIABLE_CREATED","VARIABLE_UPDATED","VARIABLE_DELETED","MEASUREMENT_AGENT_CREATED","MEASUREMENT_AGENT_UPDATED","MEASUREMENT_AGENT_DELETED","DOCUMENT_DEF_CREATED","DOCUMENT_DEF_UPDATED","PROJECT_TEMPLATE_CREATED","PROJECT_TEMPLATE_UPDATED","PROJECT_TEMPLATE_DELETED","ASSIGNMENT_RULES_UPDATED","PERSONA_CREATED","PERSONA_UPDATED","PERSONA_DELETED","ATTR_CREATED","ATTR_UPDATED","ATTR_DELETED","PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT","PROJECT_VERSION_PRIMARY_TAG_UPDATE","REPORT_DEFINITION_CREATED","REPORT_DEFINITION_UPDATED","REPORT_DEFINITION_DELETED","REPORT_LIBRARY_CREATED","REPORT_LIBRARY_UPDATED","REPORT_LIBRARY_DELETED","RUNTIME_HOST_CONNECTED","RUNTIME_HOST_DISCONNECTED","RUNTIME_HOST_CREATED","RUNTIME_HOST_DELETED","RUNTIME_HOST_DISCOVERED","RUNTIME_HOST_ENABLED","RUNTIME_HOST_DISABLED","RUNTIME_HOST_AUTH_RESET","ACCEPT_NEW_HOSTS_ENABLED","ACCEPT_NEW_HOSTS_DISABLED","DISABLED_HOST_CONNECTION","RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED","RUNTIME_CONFIGURATION_CREATED","RUNTIME_CONFIGURATION_UPDATED","RUNTIME_CONFIGURATION_DELETED","RUNTIME_CONFIGURATION_TEMPLATE_UPDATED","RUNTIME_EH_CREATED","RUNTIME_EH_UPDATED","RUNTIME_EH_DELETED","RUNTIME_SETTINGS_UPDATED","RUNTIME_RULEPACK_CONFIG_UPDATED","RUNTIME_EVENT_RECEIVED","RUNTIME_ALERT_RECEIVED","FEDERATION_CREATED","FEDERATION_UPDATED","FEDERATION_DELETED","RTAPP_CREATED","RTAPP_UPDATED","RTAPP_DELETED","RTAPP_ACCESS_ADDED","RTAPP_ACCESS_REMOVED","USERROLE_CREATED","USERROLE_UPDATED","USERROLE_DELETED","CLOUD_SCAN_POLLED","CLOUD_POOL_CREATED","CLOUD_POOL_UPDATED","CLOUD_POOL_DELETED","CLOUD_POOL_AVS_UPDATED","CLOUD_POOL_SENSORS_UPDATED","CLOUD_JOB_CANCELED","CLOUD_JOB_FPR_DOWNLOADED","CLOUD_JOB_LOG_DOWNLOADED","INDEX_MAINTENANCE_STARTED","INDEX_MAINTENANCE_COMPLETED","FULL_REINDEX_STARTED","FULL_REINDEX_COMPLETED","INDEX_NEW_ISSUES_STARTED","INDEX_NEW_ISSUES_COMPLETED","SSC_CONFIGURATION_UPDATED","LDAP_CONFIG_CREATED","LDAP_CONFIG_UPDATED","LDAP_CONFIG_DELETED","LDAP_CONFIG_DEFAULT_CHANGED","SEED_BUNDLE_UPLOAD_COMPLETED","SEED_BUNDLE_UPLOAD_FAILED","SEED_BUNDLE_COMPLETED","SEED_BUNDLE_FAILED"]},"eventTypeDesc":{"type":"string","description":"Description","readOnly":true},"id":{"type":"integer","format":"int64","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","readOnly":true},"userName":{"type":"string","readOnly":true}},"description":"Activity Feed DTO object"},"Alert History Entry":{"type":"object","properties":{"active":{"type":"boolean"},"alertCustomMessage":{"type":"string"},"alertDefinitionName":{"type":"string"},"alertMessage":{"type":"string"},"id":{"type":"integer","format":"int64","description":"alert history id","readOnly":true},"monitoredEntityType":{"type":"string"},"projectAndVersionLabel":{"type":"string"},"projectVersionId":{"type":"integer","format":"int64"},"triggeredDate":{"type":"string","format":"date-time"},"userName":{"type":"string"}},"description":"Alert history entry contains information about firede alert, like trigger date, user name for which alert was triggered, information abotu alert definition."},"AlertDefinitionDto":{"type":"object","required":["alertTriggers","customMessage","monitoredEntityType","name","recipientType"],"properties":{"alertAllChildren":{"type":"boolean"},"alertStakeholders":{"type":"boolean"},"alertTriggers":{"type":"array","items":{"$ref":"#/definitions/AlertTriggerDto"}},"createdBy":{"type":"string"},"creationDate":{"type":"string","format":"date-time"},"customMessage":{"type":"string","description":"Required field for Scheduled alerts, Optional for other types"},"description":{"type":"string"},"enabled":{"type":"boolean"},"endDate":{"type":"string","format":"date-time"},"id":{"type":"integer","format":"int64","readOnly":true},"monitorAllApps":{"type":"boolean"},"monitoredEntityName":{"type":"string"},"monitoredEntityType":{"type":"string","enum":["RT_INSTANCE","REQ_INSTANCE","ACTIVITY_INSTANCE","MEASUREMENT_AGENT","VARIABLE","RUNTIME_ALERT","EVENT","SCHEDULED_ALERT"]},"monitoredInstanceId":{"type":"integer","format":"int64"},"monitorsProjectVersions":{"type":"boolean"},"monitorsRuntimeApp":{"type":"boolean"},"name":{"type":"string"},"projectVersionIds":{"type":"array","items":{"type":"integer","format":"int64"}},"recipientType":{"type":"string","enum":["ME_ONLY","PROCESS_ENTITY_STAKEHOLDERS","ALL_USERS","ALL_SYSTEM_USERS"]},"remindPeriodically":{"type":"boolean"},"reminderPeriod":{"type":"integer","format":"int32"},"startAtDueDate":{"type":"boolean"},"startDate":{"type":"string","format":"date-time"},"triggerDescription":{"type":"string"},"triggerDescriptionName":{"type":"string"},"triggerDescriptionOperation":{"type":"string"},"triggerDescriptionValue":{"type":"string"},"userCanModify":{"type":"boolean"}},"description":"Alert definitions can include variable or performance indicator to determine when Software Security Center is\nto generate an alert notification in the Todo List on the Dashboard."},"AlertSetStatusRequest":{"type":"object","required":["alertHistoryIds","status"],"properties":{"alertHistoryIds":{"type":"array","description":"Alert history ids to set status","items":{"type":"integer","format":"int64"}},"status":{"type":"string","description":"Status of alerts, classified as read or unread"}},"description":"Request of setting status for alerts"},"AlertTriggerDto":{"type":"object","properties":{"alertDefinitionId":{"type":"integer","format":"int64"},"monitoredAttribute":{"type":"string","enum":["SIGN_OFF_STATE","VALUE_GT","VALUE_LT","VALUE_EQ","VALUE_GTE","VALUE_LTE","EVENT_TYPE","SCHEDULED_ALERT_TIME"]},"resetAfterTriggering":{"type":"boolean"},"triggeredValue":{"type":"string"}}},"AlertableEventType":{"type":"object","properties":{"category":{"type":"string","enum":["USER_ADMINISTRATION","PV_ADMINISTRATION","PV_ISSUES","REPORT","GENERAL_ADMINISTRATION","GOVERNANCE","RUNTIME_HOST","RUNTIME_FEDERATION","RUNTIME_CONFIGURATION","RUNTIME_APP_ADMINISTRATION","FULLTEXT","CLOUDSCAN"]},"displayName":{"type":"string"},"eventTypeConstant":{"type":"string"},"scope":{"type":"string","enum":["PROJECT_VERSION","RUNTIME_APP","NONE","ALL"]}}},"ApiActionResponse":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string","enum":["success","created","error"]},"values":{"type":"object"}}},"ApiBulkRequestItem":{"type":"object","properties":{"httpVerb":{"type":"string","enum":["GET","PUT","POST","DELETE"]},"postData":{"type":"object"},"uri":{"type":"string"}}},"ApiBulkResponseData":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"object"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiBulkResponseItemResponse":{"type":"object","properties":{"body":{"$ref":"#/definitions/ApiBulkResponseData"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"requestUrl":{"type":"string"}}},"ApiCollectionAction«long»":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer","format":"int64"}},"type":{"type":"string","enum":["create","login","approve","purge","revoke","cancel","review","assign","enable","disable","replace","delegate","update_issue_tag","set_issue_suppressed","assign_issue_to_user","audit_issue","set_status","file_bug","refresh","test","check_password_strength","copy_from_partial","copy_current_state","send_to_auditassistant","send_for_training","export_to_csv","export_issue_stats_to_csv","export_audit_to_csv"]},"values":{"type":"object"}}},"ApiCollectionAction«string»":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["create","login","approve","purge","revoke","cancel","review","assign","enable","disable","replace","delegate","update_issue_tag","set_issue_suppressed","assign_issue_to_user","audit_issue","set_status","file_bug","refresh","test","check_password_strength","copy_from_partial","copy_current_state","send_to_auditassistant","send_for_training","export_to_csv","export_issue_stats_to_csv","export_audit_to_csv"]},"values":{"type":"object"}}},"ApiResourceAction":{"type":"object","properties":{"type":{"type":"string","enum":["create","login","approve","purge","revoke","cancel","review","assign","enable","disable","replace","delegate","update_issue_tag","set_issue_suppressed","assign_issue_to_user","audit_issue","set_status","file_bug","refresh","test","check_password_strength","copy_from_partial","copy_current_state","send_to_auditassistant","send_for_training","export_to_csv","export_issue_stats_to_csv","export_audit_to_csv"]},"values":{"type":"object"}}},"ApiResult":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"object"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«AlertDefinitionDto»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/AlertDefinitionDto"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ApiActionResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ApiActionResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Application State»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Application State"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ApplicationNameTestResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ApplicationNameTestResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Array«string»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"type":"string"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Artifact»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Artifact"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Attribute Definition»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Attribute Definition"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Attribute»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Attribute"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Authentication Entity»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Authentication Entity"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Authentication Token»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Authentication Token"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«BugFilingRequirementsResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/BugFilingRequirementsResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«BugfieldTemplateGroupDto»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/BugfieldTemplateGroupDto"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudJob»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudJob"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudPoolMapping»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudPoolMapping"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudPoolProjectVersionActionResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudPoolProjectVersionActionResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudPoolWorkerActionResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudPoolWorkerActionResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudPool»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudPool"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudSystemMetrics»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudSystemMetrics"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudSystemPollStatus»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudSystemPollStatus"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudSystemSettings»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudSystemSettings"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«CloudWorker»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/CloudWorker"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ConfigProperties»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ConfigProperties"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ConfigProperty»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ConfigProperty"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Custom tag»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Custom tag"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«DynamicScanRequestTemplate»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/DynamicScanRequestTemplate"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«DynamicScanRequestsSummary»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/DynamicScanRequestsSummary"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«DynamicScanRequest»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/DynamicScanRequest"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Feature»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Feature"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«File token»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/File token"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Folder»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Folder"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IID Migration»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IID Migration"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Issue Assignment»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Issue Assignment"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Issue Attachment»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Issue Attachment"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Issue Audit Comment»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Issue Audit Comment"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Issue Template»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Issue Template"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueActionResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueActionResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueAgingPortlet»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueAgingPortlet"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueFileBugResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueFileBugResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueFilterSelectorSet»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueFilterSelectorSet"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueSearchOption»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueSearchOption"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«IssueViewTemplate»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/IssueViewTemplate"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Job»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Job"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«LDAP entity»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/LDAP entity"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«LdapRefreshResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/LdapRefreshResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«LdapServerDto»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/LdapServerDto"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«License»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/License"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«AATrainingStatus»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/AATrainingStatus"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Activity Feed»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Activity Feed"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Alert History Entry»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Alert History Entry"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«AlertDefinitionDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/AlertDefinitionDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«AlertableEventType»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/AlertableEventType"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Artifact»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Artifact"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Attribute Definition»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Attribute Definition"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Attribute»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Attribute"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«AuditAssistantStatus»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/AuditAssistantStatus"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Authentication Entity»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Authentication Entity"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Authentication Token»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Authentication Token"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Bug Tracker»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Bug Tracker"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«BugFilingRequirements»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/BugFilingRequirements"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«BugfieldTemplateGroupDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/BugfieldTemplateGroupDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Bulk Response Item»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Bulk Response Item"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«CloudJob»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/CloudJob"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«CloudPoolMapping»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/CloudPoolMapping"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«CloudPool»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/CloudPool"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«CloudWorker»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/CloudWorker"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Custom tag»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Custom tag"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Dashboard Version»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Dashboard Version"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Data Export»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Data Export"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«DynamicScanRequest»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/DynamicScanRequest"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Engine type»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Engine type"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«EventLog»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/EventLog"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Feature»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Feature"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Filter Set»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Filter Set"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Folder»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Folder"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IID Migration»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IID Migration"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Assignment»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Assignment"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Attachment»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Attachment"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Audit Comment»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Audit Comment"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Statistics»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Statistics"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Summary»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Summary"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Issue Template»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Issue Template"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IssueAgingDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IssueAgingDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IssueAgingGroupDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IssueAgingGroupDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IssueAuditHistoryDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IssueAuditHistoryDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IssueSearchOption»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IssueSearchOption"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«IssueViewTemplate»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/IssueViewTemplate"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«JobPriorityChangeCategoryWarning»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/JobPriorityChangeCategoryWarning"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Job»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Job"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«LDAP entity»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/LDAP entity"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«LdapServerDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/LdapServerDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Local User»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Local User"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Performance Indicator History»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Performance Indicator History"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«PerformanceIndicator»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/PerformanceIndicator"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Permission»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Permission"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Persona»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Persona"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Plugin Meta Data»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Plugin Meta Data"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project Version»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project Version"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project version bug tracker»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project version bug tracker"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project version issue details»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project version issue details"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project version issue group»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project version issue group"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project version issue»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project version issue"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Project»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Project"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Report Definition»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Report Definition"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Report Library»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Report Library"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Responsibility Assignment»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Responsibility Assignment"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Result processing rule»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Result processing rule"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Role»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Role"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Rulepack Core»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Rulepack Core"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«RulepacksBatchProcessStatus»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/RulepacksBatchProcessStatus"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Saved Report»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Saved Report"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Scan»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Scan"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«SourceFileDto»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/SourceFileDto"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«System Configuration»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/System Configuration"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Token Definition»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Token Definition"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«UserSessionState»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/UserSessionState"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Variable History»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Variable History"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«Variable»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/Variable"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«List«scan error»»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/definitions/scan error"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Local User»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Local User"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«PasswordStrengthCheckResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/PasswordStrengthCheckResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Performance Indicator History»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Performance Indicator History"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«PerformanceIndicator»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/PerformanceIndicator"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Permission»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Permission"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Persona»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Persona"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Plugin Localization»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"type":"object","additionalProperties":{"type":"object"}},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Plugin Meta Data»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Plugin Meta Data"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Project Version»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Project Version"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Project version issue details»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Project version issue details"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Project version issue»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Project version issue"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ProjectVersionRefreshResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ProjectVersionRefreshResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«ProjectVersionTestResponse»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/ProjectVersionTestResponse"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Project»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Project"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Report Definition»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Report Definition"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Report Library»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Report Library"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Responsibility Assignment»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Responsibility Assignment"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Role»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Role"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Saved Report»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Saved Report"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Scan»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Scan"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«SearchIndexStatus»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/SearchIndexStatus"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«SourceFileDto»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/SourceFileDto"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«System Configuration»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/System Configuration"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«User preferences»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/User preferences"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«User session information»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/User session information"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«UserIssueSearchOptions»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/UserIssueSearchOptions"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Validation Status»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Validation Status"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Variable History»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Variable History"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Variable»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"data":{"$ref":"#/definitions/Variable"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"ApiResult«Void»":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"errorCode":{"type":"integer","format":"int32"},"links":{"type":"object"},"message":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"stackTrace":{"type":"string"},"successCount":{"type":"integer","format":"int64"}}},"Application State":{"type":"object","properties":{"autoConfigurationMode":{"type":"boolean","example":false,"description":"Indicates whether SSC application is in auto configuration mode","readOnly":true},"configVisitRequired":{"type":"boolean","example":false,"description":"Indicates whether a config visit is needed","readOnly":true},"maintenanceMode":{"type":"boolean","example":false,"description":"Indicates whether SSC application is in maintenance mode"},"restartRequired":{"type":"boolean","example":false,"description":"Indicates whether a restart is needed","readOnly":true}},"description":"Application state DTO object"},"ApplicationNameTestRequest":{"type":"object","required":["applicationName"],"properties":{"applicationName":{"type":"string","description":"application name to test"}},"description":"Request of testing whether application with name, provided in ApplicationNameTestRequest, exists"},"ApplicationNameTestResponse":{"type":"object","properties":{"found":{"type":"boolean","example":false,"description":"If application founds","readOnly":true}},"description":"Response of testing whether application exists"},"Artifact":{"type":"object","properties":{"_embed":{"$ref":"#/definitions/EmbeddedScans"},"allowApprove":{"type":"boolean"},"allowDelete":{"type":"boolean"},"allowPurge":{"type":"boolean"},"approvalComment":{"type":"string"},"approvalDate":{"type":"string","format":"date-time"},"approvalUsername":{"type":"string"},"artifactType":{"type":"string","enum":["","Fpr","FprPreProcess","AnalysisArtifact","SourceArchive","RuntimeEventLog"]},"auditUpdated":{"type":"boolean"},"fileName":{"type":"string"},"fileSize":{"type":"integer","format":"int64"},"fileURL":{"type":"string"},"id":{"type":"integer","format":"int64","description":"Artifact id","readOnly":true},"inModifyingStatus":{"type":"boolean"},"indexed":{"type":"boolean"},"lastScanDate":{"type":"string","format":"date-time"},"messageCount":{"type":"integer","format":"int64"},"messages":{"type":"string"},"originalFileName":{"type":"string"},"otherStatus":{"type":"string","enum":["","NotExist","Ignored","Processed"]},"purged":{"type":"boolean"},"runtimeStatus":{"type":"string","enum":["","NotExist","Ignored","Processed"]},"scaStatus":{"type":"string","enum":["","NotExist","Ignored","Processed"]},"scanErrorsCount":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["NONE","SCHED_PROCESSING","PROCESSING","PROCESS_COMPLETE","ERROR_PROCESSING","REQUIRE_AUTH","DELETING","ERROR_DELETING","DELETED","PURGING","PURGED","ERROR_PURGING","DISPATCH_ANALYSIS","DISPATCH_REAUDIT","ERROR_DISPATCH","QUEUED_ANALYSIS","REQUEUED_ANALYSIS","ANALYZING","ANALYSIS_COMPLETE","ERROR_ANALYZING","UNKNOWN","AUDIT_FAILED"]},"uploadDate":{"type":"string","format":"date-time"},"uploadIP":{"type":"string"},"userName":{"type":"string"},"versionNumber":{"type":"integer","format":"int32"},"webInspectStatus":{"type":"string","enum":["","NotExist","Ignored","Processed"]}},"description":"Project version artifact that contains scan results."},"ArtifactApproveRequest":{"type":"object","required":["artifactIds","comment"],"properties":{"artifactIds":{"type":"array","description":"List containing single artifact ID to approve","items":{"type":"integer","format":"int64"}},"comment":{"type":"string","description":"Approval comments"}},"description":"Request of approving artifact"},"ArtifactPurgeRequest":{"type":"object","required":["artifactIds"],"properties":{"artifactIds":{"type":"array","description":"List containing single artifact ID to purge","items":{"type":"integer","format":"int64"}}},"description":"Request of purging artifacts"},"AssignedUser":{"type":"object","required":["hasAccess","userName"],"properties":{"hasAccess":{"type":"boolean","example":false,"description":"whether the assigned user currently has access to the project version in current context","readOnly":true},"userName":{"type":"string","description":"username assigned to issue","readOnly":true}},"description":"user assigned to issue"},"Attribute":{"type":"object","required":["attributeDefinitionId","value","values"],"properties":{"attributeDefinitionId":{"type":"integer","format":"int64","description":"ID required when referencing an existing Attribute Definition."},"id":{"type":"integer","format":"int64","description":"ID required when referencing an existing Attribute.","readOnly":true},"value":{"type":"string","description":"Attribute value - should be set if Attribute Definition type is NUMBER/STRING/BOOLEAN/DATE/FILE"},"values":{"type":"array","description":"Attribute Options associated with Attribute Definition with type=SINGLE/MULTIPLE","items":{"$ref":"#/definitions/Attribute Option"}}},"description":"Attribute DTO object."},"Attribute Definition":{"type":"object","required":["appEntityType","category","guid","hasDefault","name","required","systemUsage","type"],"properties":{"appEntityType":{"type":"string","description":"Application Entity Type","enum":["PROJECT_VERSION","RUNTIME_APP","NONE","ALL"]},"category":{"type":"string","description":"Attribute Definition Category","enum":["TECHNICAL","BUSINESS","DYNAMIC_SCAN_REQUEST","ORGANIZATION"]},"description":{"type":"string"},"guid":{"type":"string","description":"Unique string identifier for this Attribute Definition"},"hasDefault":{"type":"boolean","example":false,"description":"Set to true if this Attribute Definition should be the default"},"hidden":{"type":"boolean","example":false,"description":"Set to true if this Attribute Definition is hidden"},"id":{"type":"integer","format":"int64","description":"ID required when referencing an existing Attribute Definition","readOnly":true},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32"},"options":{"type":"array","description":"List of options (i.e. values) associated with this Attribute Definition","items":{"$ref":"#/definitions/Attribute Option"}},"publishVersion":{"type":"integer","format":"int32"},"required":{"type":"boolean","example":false,"description":"Set to true if this Attribute Definition is required"},"sequenceNumber":{"type":"integer","format":"int64"},"systemUsage":{"type":"string","description":"System Usage Type","enum":["HP_DEFINED_DELETABLE","HP_DEFINED_NON_DELETABLE","USER_DEFINED_DELETABLE","USER_DEFINED_NON_DELETABLE"]},"type":{"type":"string","description":"Attribute Definition Type","enum":["TEXT","SINGLE","MULTIPLE","LONG_TEXT","SENSITIVE_TEXT","BOOLEAN","INTEGER","DATE","FILE"]}},"description":"Attribute Definition DTO object."},"Attribute Option":{"type":"object","required":["guid","id","index","name","projectMetaDataDefId"],"properties":{"description":{"type":"string"},"guid":{"type":"string","description":"Unique string identifier for an Attribute Option"},"hidden":{"type":"boolean","example":false,"description":"Set to true if this option is to be hidden"},"id":{"type":"integer","format":"int64","description":"ID required with referencing an existing Attribute Option"},"inUse":{"type":"boolean","example":false,"description":"Set to true if this option is being used"},"index":{"type":"integer","format":"int32","description":"Index of this option in list of options"},"name":{"type":"string","description":"Name"},"objectVersion":{"type":"integer","format":"int32"},"projectMetaDataDefId":{"type":"integer","format":"int64","description":"ID of Attribute Definition this option is associated with"},"publishVersion":{"type":"integer","format":"int32"}},"description":"Attribute Option DTO object"},"AuditAssistantStatus":{"type":"object","properties":{"fprFilePath":{"type":"string"},"message":{"type":"string"},"projectVersionId":{"type":"integer","format":"int64"},"serverId":{"type":"integer","format":"int64"},"serverStatus":{"type":"integer","format":"int32"},"status":{"type":"string","enum":["NONE","PRE_PREDICT_FAILURE","PREDICT_QUEUED","PREDICT_PREP","PREDICT_SUBMITTED","PREDICT_COMPLETE","PREDICT_FAILED","PREDICTIONS_RETRIEVING","PREDICTIONS_RETRIEVED","PREDICTIONS_RETRIEVE_FAILED","UPLOAD_FPR_FAILED"]},"userName":{"type":"string"}},"description":"AuditAssistantStatus DTO object"},"AuthTokenRevokeRequest":{"type":"object","required":["tokens"],"properties":{"tokens":{"type":"array","description":"A list of tokens (atleast one) to revoke","items":{"type":"string"}}},"description":"Request for revoking tokens by value"},"Authentication Entity":{"type":"object","properties":{"_embed":{"$ref":"#/definitions/EmbeddedRoles"},"displayName":{"type":"string","description":"Display Name supports the use of wildcard matching. So, for example, \"L*\" will match Lando Calrissian and Lara Croft."},"email":{"type":"string"},"entityName":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"integer","format":"int64","description":"Authentication entity id","readOnly":true},"isLdap":{"type":"boolean"},"lastName":{"type":"string"},"ldapDn":{"type":"string","description":"Distinguished Name (DN) that is only set for LDAP user accounts"},"type":{"type":"string"},"userPhoto":{"$ref":"#/definitions/User photo"}},"description":"A user account that can be used to authenticate in SSC. There are currently two types of user accounts that fall into this category: SSC users and LDAP users registered with SSC."},"Authentication Token":{"type":"object","required":["type"],"properties":{"creationDate":{"type":"string","format":"date-time","example":"2017-09-22T19:08:42.000+0000","description":"Date and time the token was created (in ISO 8601 format)","readOnly":true},"description":{"type":"string","description":"Purpose for which the token was requested."},"id":{"type":"integer","format":"int64","description":"Unique identifier of token","readOnly":true},"remainingUsages":{"type":"integer","format":"int32","description":"The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls.","readOnly":true},"terminalDate":{"type":"string","format":"date-time","example":"2017-11-29T22:40:11.000+0000","description":"Date and time the token expires (in ISO 8601 format). If not specified, it will default to the maximum lifetime for this token type."},"token":{"type":"string","description":"String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.)","readOnly":true},"type":{"type":"string","example":"UnifiedLoginToken","description":"Token type","readOnly":true},"username":{"type":"string","description":"Username of token owner","readOnly":true}},"description":"Token to use for authentication"},"Bug Tracker":{"type":"object","required":["authenticationRequired","pluginClassName","pluginId","shortDisplayName"],"properties":{"authenticationRequired":{"type":"boolean","example":false,"description":"Authentication required"},"bugTrackerConfigs":{"type":"array","description":"Bug tracker configuration","items":{"$ref":"#/definitions/Bug Tracker Configuration"}},"id":{"type":"string","description":"Bug tracker identifier","readOnly":true},"longDisplayName":{"type":"string","description":"Long display name"},"pluginClassName":{"type":"string","description":"Class name"},"pluginId":{"type":"string","description":"Bug tracker plugin identifier"},"shortDisplayName":{"type":"string","description":"Short display name"}},"description":"Bug tracker DTO object"},"Bug Tracker Configuration":{"type":"object","required":["description","displayLabel","identifier","required","value"],"properties":{"description":{"type":"string","description":"Description"},"displayLabel":{"type":"string","description":"Configuration name"},"identifier":{"type":"string","description":"Identifier"},"required":{"type":"boolean","example":false,"description":"Set to true if configuration is required"},"value":{"type":"string","description":"Configuration value"}},"description":"Bug tracker Configuration DTO object"},"BugFilingRequirements":{"type":"object","properties":{"bugParams":{"type":"array","items":{"$ref":"#/definitions/BugParam"}},"bugTrackerLongDisplayName":{"type":"string"},"bugTrackerShortDisplayName":{"type":"string"},"requiresAuthentication":{"type":"boolean"}}},"BugFilingRequirementsRequest":{"type":"object","required":["password","username"],"properties":{"password":{"type":"string","description":"Password"},"username":{"type":"string","description":"Username"}},"description":"Request of credentials required to file the bug"},"BugFilingRequirementsResponse":{"type":"object","properties":{"bugFilingRequirements":{"description":"Requirements to file the bugs","readOnly":true,"$ref":"#/definitions/BugFilingRequirements"}},"description":"Response of validating connection credentials and returns bug filing requirements"},"BugParam":{"type":"object","properties":{"bugParamType":{"type":"string","enum":["BUGPARAM_TEXT","BUGPARAM_TEXTAREA","BUGPARAM_CHOICE"]},"choiceList":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"displayLabel":{"type":"string"},"hasDependentParams":{"type":"boolean"},"identifier":{"type":"string"},"maxLength":{"type":"integer","format":"int32"},"required":{"type":"boolean"},"value":{"type":"string"}}},"BugStateManagementCfg":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"password":{"type":"string"},"projectVersionId":{"type":"integer","format":"int64"},"username":{"type":"string"}}},"BugTrackerRequest":{"type":"object","required":["testPlugin"],"properties":{"testPlugin":{"description":"Bugtracker plugin information to test connection","$ref":"#/definitions/Project version bug tracker"}},"description":"Request of testing bugtracker plugin connection"},"BugfieldTemplateDto":{"type":"object","required":["fieldName"],"properties":{"fieldName":{"type":"string","description":"unique name of bugfield template."},"fieldValue":{"type":"string","description":"description for bugfield template ."},"id":{"type":"integer","format":"int64","description":"unique identifier of bugfield template.","readOnly":true}},"description":"Bugfield Template"},"BugfieldTemplateGroupDto":{"type":"object","required":["bugTrackerPluginId","deletable","name","objectVersion","valueList"],"properties":{"bugTrackerPluginId":{"type":"string","description":"Identifier of the bug tracker plugin associated with this template group.","readOnly":true},"deletable":{"type":"boolean","example":false,"description":"Flag that says if bugfield template group can be deleted.","readOnly":true},"description":{"type":"string","description":"description for bugfield template group."},"id":{"type":"integer","format":"int64","description":"unique identifier of bugfield template group.","readOnly":true},"name":{"type":"string","description":"short name of associated bug tracker plugin. (May be null if plugin is not currently enabled.)"},"objectVersion":{"type":"integer","format":"int32","description":"version of bugfield template group stored on the server. This value is used for optimistic locking to prevent concurrent modification by different users at the same time.","readOnly":true},"valueList":{"type":"array","description":"Collection of all templates belonging to this bugfield template group.","items":{"$ref":"#/definitions/BugfieldTemplateDto"}}},"description":"Bugfield Template Group"},"Bulk Request Data":{"type":"object","properties":{"requests":{"type":"array","description":"A list of bulk request items that represents requests that could have been issued independently (or use HATEOAS \"response\" scheme requests that map to individual requests).","items":{"$ref":"#/definitions/ApiBulkRequestItem"}}}},"Bulk Response Item":{"type":"object","properties":{"request":{"$ref":"#/definitions/ApiBulkRequestItem"},"responses":{"type":"array","items":{"$ref":"#/definitions/ApiBulkResponseItemResponse"}}}},"CloudJob":{"type":"object","properties":{"cloudPool":{"$ref":"#/definitions/CloudPool"},"cloudWorker":{"$ref":"#/definitions/CloudWorker"},"jobCancellable":{"type":"boolean"},"jobDuration":{"type":"integer","format":"int64"},"jobExpiryTime":{"type":"string","format":"date-time"},"jobFinishedTime":{"type":"string","format":"date-time"},"jobHasFpr":{"type":"boolean"},"jobHasLog":{"type":"boolean"},"jobQueuedTime":{"type":"string","format":"date-time"},"jobStartedTime":{"type":"string","format":"date-time"},"jobState":{"type":"string"},"jobToken":{"type":"string","readOnly":true},"projectId":{"type":"integer","format":"int64"},"projectName":{"type":"string"},"pvId":{"type":"integer","format":"int64"},"pvName":{"type":"string"},"queuedDuration":{"type":"integer","format":"int64"},"scaArgs":{"type":"string"},"scaBuildId":{"type":"string"},"scaVersion":{"type":"string"},"scanDuration":{"type":"integer","format":"int64"},"submitterEmail":{"type":"string"},"submitterIpAddress":{"type":"string"},"submitterUserName":{"type":"string"}},"description":"Cloudscan job"},"CloudJobCancelRequest":{"type":"object","required":["jobTokens"],"properties":{"jobTokens":{"type":"array","description":"List containing single cloud job token to cancel","items":{"type":"string"}}},"description":"Request of cancelling cloudscan jobs"},"CloudPool":{"type":"object","required":["name"],"properties":{"childOfGlobalPool":{"type":"boolean","example":false},"description":{"type":"string","description":"Cloudscan pool description"},"isDeletable":{"type":"boolean","example":false,"readOnly":true},"name":{"type":"string","description":"Cloudscan pool name"},"path":{"type":"string","description":"Cloudscan pool path","readOnly":true},"stats":{"readOnly":true,"$ref":"#/definitions/CloudPoolStats"},"uuid":{"type":"string","description":"Cloudscan pool UUID","readOnly":true}},"description":"Cloudscan worker pool"},"CloudPoolMapping":{"type":"object","properties":{"cloudPool":{"$ref":"#/definitions/CloudPool"},"projectVersionId":{"type":"integer","format":"int64"}},"description":"Project version to CloudScan pool mapping"},"CloudPoolProjectVersionActionResponse":{"type":"object","properties":{"projectVersionIds":{"type":"array","description":"List of project version ids","readOnly":true,"items":{"type":"integer","format":"int64"}}},"description":"Result of project version related to cloud pool actions"},"CloudPoolProjectVersionAssignRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List of project version ids to assign to cloud pool","items":{"type":"integer","format":"int64"}}},"description":"Request of assigning project version to the cloud pool"},"CloudPoolProjectVersionReplaceRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List of project version ids to replace in cloud pool","items":{"type":"integer","format":"int64"}}},"description":"Request of replacing project versions in the cloud pool"},"CloudPoolStats":{"type":"object","properties":{"activeWorkerCount":{"type":"integer","format":"int64"},"idleWorkerCount":{"type":"integer","format":"int64"},"inactiveWorkerCount":{"type":"integer","format":"int64"},"pendingJobCount":{"type":"integer","format":"int64"},"processingWorkerCount":{"type":"integer","format":"int64"},"projectVersionCount":{"type":"integer","format":"int64"},"runningJobCount":{"type":"integer","format":"int64"},"staleWorkerCount":{"type":"integer","format":"int64"},"totalWorkerCount":{"type":"integer","format":"int64"}},"description":"Cloudscan worker pool statistics"},"CloudPoolWorkerActionResponse":{"type":"object","properties":{"workerUuids":{"type":"array","description":"Cloud scan worker uuids","readOnly":true,"items":{"type":"string"}}},"description":"Result of cloud scan workers related actions"},"CloudPoolWorkerAssignRequest":{"type":"object","required":["workerUuids"],"properties":{"workerUuids":{"type":"array","description":"List of worker UUIds to assign to the cloud pool","items":{"type":"string"}}},"description":"Request of assigning cloud workers to cloud pool"},"CloudPoolWorkerDisableRequest":{"type":"object","required":["workerUuids"],"properties":{"workerUuids":{"type":"array","description":"List of worker UUIds to disable from the cloud pool","items":{"type":"string"}}},"description":"Request of disabling workers from the cloud pool"},"CloudPoolWorkerReplaceRequest":{"type":"object","required":["workerUuids"],"properties":{"workerUuids":{"type":"array","description":"List of worker UUIds to replace in the cloud pool","items":{"type":"string"}}},"description":"Request of replacing workers in the cloud pool"},"CloudScanConfig":{"type":"object","properties":{"cloudScanEnabled":{"type":"boolean"}},"description":"Cloud Scan Config DTO object"},"CloudSystemMetrics":{"type":"object","required":["controllerDiskFree","controllerDiskUsed","controllerStartTime"],"properties":{"controllerDiskFree":{"type":"integer","format":"int64","description":"Free disk space in controller's job directory [bytes]","readOnly":true},"controllerDiskUsed":{"type":"integer","format":"int64","description":"Disk space used by files in controller's job directory [bytes]","readOnly":true},"controllerStartTime":{"type":"string","format":"date-time","readOnly":true}},"description":"Cloudscan system metrics"},"CloudSystemPollStatus":{"type":"object","required":["lastPollSuccessful","lastPollTime","lastSuccessfulPollTime"],"properties":{"lastPollSuccessful":{"type":"boolean","example":false,"readOnly":true},"lastPollTime":{"type":"string","format":"date-time","readOnly":true},"lastSuccessfulPollTime":{"type":"string","format":"date-time","readOnly":true}},"description":"Cloudscan system poll status"},"CloudSystemSettings":{"type":"object","required":["cleanupPeriodSeconds","controllerMaxUploadSize","controllerSystemUrl","isSscLockdownMode","jobExpiryDelaySeconds","poolMappingMode","smtpFromAddress","smtpHost","smtpPort","sscUrl","workerExpiryDelaySeconds","workerInactiveDelaySeconds","workerStaleDelaySeconds"],"properties":{"cleanupPeriodSeconds":{"type":"integer","format":"int64","readOnly":true},"controllerMaxUploadSize":{"type":"integer","format":"int64","readOnly":true},"controllerSystemUrl":{"type":"string","readOnly":true},"isSscLockdownMode":{"type":"boolean","example":false,"readOnly":true},"jobExpiryDelaySeconds":{"type":"integer","format":"int64","readOnly":true},"poolMappingMode":{"type":"string","readOnly":true},"smtpFromAddress":{"type":"string","readOnly":true},"smtpHost":{"type":"string","readOnly":true},"smtpPort":{"type":"integer","format":"int32","readOnly":true},"sscUrl":{"type":"string","readOnly":true},"workerExpiryDelaySeconds":{"type":"integer","format":"int64","readOnly":true},"workerInactiveDelaySeconds":{"type":"integer","format":"int64","readOnly":true},"workerStaleDelaySeconds":{"type":"integer","format":"int64","readOnly":true}},"description":"Cloudscan system settings"},"CloudWorker":{"type":"object","required":["availableProcessors","cloudPool","hostName","ipAddress","lastActivity","lastSeen","osArchitecture","osName","osVersion","processUuid","scaVersion","state","totalPhysicalMemory","uuid","vmName","workerExpiryTime","workerStartTime"],"properties":{"availableProcessors":{"type":"integer","format":"int32","readOnly":true},"cloudPool":{"readOnly":true,"$ref":"#/definitions/CloudPool"},"hostName":{"type":"string","readOnly":true},"ipAddress":{"type":"string","readOnly":true},"lastActivity":{"type":"string","readOnly":true},"lastSeen":{"type":"string","format":"date-time","readOnly":true},"osArchitecture":{"type":"string","readOnly":true},"osName":{"type":"string","readOnly":true},"osVersion":{"type":"string","readOnly":true},"processUuid":{"type":"string","readOnly":true},"scaVersion":{"type":"string","readOnly":true},"state":{"type":"string","readOnly":true},"totalPhysicalMemory":{"type":"integer","format":"int64","readOnly":true},"uuid":{"type":"string","readOnly":true},"vmName":{"type":"string","readOnly":true},"workerExpiryTime":{"type":"string","format":"date-time","readOnly":true},"workerStartTime":{"type":"string","format":"date-time","readOnly":true}},"description":"Cloudscan worker"},"ConfigProperties":{"type":"object","properties":{"properties":{"type":"array","description":"Collection of configuration properties defined in the system","items":{"$ref":"#/definitions/ConfigProperty"}}},"description":"Collection of SSC application configuration properties"},"ConfigProperty":{"type":"object","required":["name","value","version"],"properties":{"appliedAfterRestarting":{"type":"boolean","example":false,"description":"Should the SSC server be restarted after changing value of the property to apply the changes.","readOnly":true},"configPropertyValueValidation":{"description":"Meta information about how the property's value should be validated on the client side.","readOnly":true,"$ref":"#/definitions/ConfigPropertyValueValidation"},"description":{"type":"string","description":"Property description.","readOnly":true},"group":{"type":"string","description":"Parent group name the property belongs to.","readOnly":true},"groupSwitchEnabled":{"type":"boolean","example":false,"description":"Flag is set to TRUE if property is allowed to be edited on UI.","readOnly":true},"name":{"type":"string","description":"Configuration property unique name.","readOnly":true},"propertyType":{"type":"string","description":"Property value type.","readOnly":true,"enum":["BOOLEAN","INTEGER","STRING","STRINGMULTILINE","OPTIONLIST","DYNAMIC_OPTIONLIST","ENCODED","ENCODEDHIDDEN","EMAIL","URL","HOSTNAME","MULTI_EMAIL","DISTINGUISHED_NAME","ENCODED_DISTINGUISHED_NAME","DISTINGUISHED_NAMES;"]},"protectedOption":{"type":"boolean","example":false,"description":"If special permission is required to get value of this property.","readOnly":true},"required":{"type":"boolean","example":false,"description":"Flag is set to TRUE if this property is required and always must have non empty value.","readOnly":true},"subGroup":{"type":"string","description":"Parent subgroup name the property belongs to.","readOnly":true},"value":{"type":"string","description":"Configuration property value.","enum":["Depends on property type. It can be number","string","URL","email or value from values list."]},"valuesList":{"type":"array","description":"List of allowed property values if property type is OPTIONLIST or DYNAMIC_OPTIONLIST.","readOnly":true,"items":{"$ref":"#/definitions/ConfigPropertyValueItem"}},"version":{"type":"integer","format":"int32","description":"Configuration property version stored on the server. This value is used for optimistic locking of the property object to prevent concurrent changes of the property value by different users at the same time.","readOnly":true}},"description":"SSC application configuration property"},"ConfigPropertyValueItem":{"type":"object","properties":{"displayName":{"type":"string","description":"Value display name. This string is displayed on UI in the option values list.","readOnly":true},"value":{"type":"string","description":"Value that is sent to server if this option is selected on UI.","readOnly":true}},"description":"Allowed values of the property which type is OPTIONLIST or DYNAMIC_OPTIONLIST."},"ConfigPropertyValueValidation":{"type":"object","properties":{"validationType":{"type":"string","enum":["NOT_SET","POSITIVE_INTEGER","MIXED_VALUES"]}},"description":"SSC configuration property value validation type"},"Custom Tag":{"type":"object","required":["customTagGuid","newCustomTagIndex"],"properties":{"autoApplied":{"type":"boolean","example":false,"description":"Flag equals true if custom tag values was applied automatically","readOnly":true},"customTagGuid":{"type":"string","description":"GUID of custom tag","readOnly":true},"dateValue":{"type":"string","format":"date-time"},"decimalValue":{"type":"number"},"newCustomTagIndex":{"type":"integer","format":"int32","description":"index of assigned tag value within the list of values for that custom tag","readOnly":true},"textValue":{"type":"string"}},"description":"A custom tag value being assigned to issues in the application"},"Custom tag":{"type":"object","required":["customTagType","extensible","guid","hidden","name","objectVersion","valueType"],"properties":{"customTagType":{"type":"string","description":"Custom tag type.","enum":["UNKNOWN","CUSTOM","HYBRID","METAGROUP","SYSTEM","AUDITASSISTANT"]},"defaultValue":{"type":"string","description":"Default value of the custom tag. Actual string value is presented here.","readOnly":true},"defaultValueIndex":{"type":"integer","format":"int32","description":"Index of default value of the custom tag. This is ordinal number of the item in CustomTagLookup collection."},"deletable":{"type":"boolean","example":false,"description":"Flag that says if custom tag can be deleted. Custom tag which values are currently in use cannot be deleted.","readOnly":true},"description":{"type":"string","description":"Custom tag description."},"extensible":{"type":"boolean","example":false,"description":"Flag that says if custom tag is extensible or not."},"guid":{"type":"string","description":"Custom tag GUID.","readOnly":true},"hidden":{"type":"boolean","example":false,"description":"Is custom tag hidden or not."},"id":{"type":"integer","format":"int64","description":"Custom tag id","readOnly":true},"inUse":{"type":"boolean","example":false,"description":"Is custom tag values are selected for any issues in the system.","readOnly":true},"name":{"type":"string","description":"Custom tag unique name."},"objectVersion":{"type":"integer","format":"int32","description":"Custom tag version stored on the server. This value is used for optimistic locking of the custom tag object to prevent concurrent modification of the custom tag by different users at the same time.","readOnly":true},"primaryTag":{"type":"boolean","example":false,"description":"If this custom tag is set as primary tag for a specific project version. This value is initialized only if custom tags for specific project version are requested.","readOnly":true},"restriction":{"type":"boolean","example":false,"description":"Flag is set to true if special permission is required to set values of this custom tag."},"restrictionType":{"type":"string","description":"Special permission type if restriction is set to TRUE.","enum":["NONE","RESTRICTED","READONLY"]},"valueList":{"type":"array","description":"Collection of all possible custom tag values.","items":{"$ref":"#/definitions/CustomTagLookup"}},"valueType":{"type":"string","description":"Custom tag value type.","enum":["LIST","DECIMAL","DATE","TEXT"]}}},"CustomTagLookup":{"type":"object","required":["lookupIndex","lookupValue","seqNumber"],"properties":{"consideredIssue":{"type":"boolean","example":false,"description":"Flag that should be used to mark values that mean \"not an issue\" or \"false positive\"."},"customTagGuid":{"type":"string","description":"GUID of the parent custom tag this value belongs to.","readOnly":true},"defaultValue":{"type":"boolean","example":false,"description":"Flag that says if this value is default custom tag value and should be selected automatically in the values list on issue audit screen."},"deletable":{"type":"boolean","example":false,"description":"Flag that says if this value can be removed from custom tag. Value cannot be removed if it is selected for some issue in the system.","readOnly":true},"description":{"type":"string","description":"Custom tag value description."},"hidden":{"type":"boolean","example":false,"description":"Flag that says that this value is hidden and cannot be selected in issue audit mode."},"lookupIndex":{"type":"integer","format":"int32","description":"Current value index in values list."},"lookupValue":{"type":"string","description":"Plain text custom tag value."},"relyingCustomTags":{"type":"array","description":"List of relying custom tags and their values this value depends on. This list should be set to automatically reflect relying custom tags values changes to this custom tag value","items":{"$ref":"#/definitions/customTagInfo"}},"seqNumber":{"type":"integer","format":"int32","description":"Custom tag value sequence number."}},"description":"Custom tag value"},"Dashboard Version":{"type":"object","additionalProperties":{"type":"object"}},"Data Export":{"type":"object","required":["datasetName","fileName"],"properties":{"appVersionId":{"type":"integer","format":"int64","description":"Application version id - required if DatasetName = \"Audit\""},"appVersionName":{"type":"string","description":"Application version name"},"datasetName":{"type":"string","description":"Dataset name - e.g. \"Audit\", \"Issue Stats\" - corresponds to page from which data is exported"},"documentInfoId":{"type":"integer","format":"int64","description":"Document Info id for file blob"},"expiration":{"type":"integer","format":"int32","description":"Data export file expiration in days"},"exportDate":{"type":"string","format":"date-time","description":"Export date"},"fileName":{"type":"string","description":"Name of data export file"},"fileType":{"type":"string","description":"File type, e.g. CSV"},"id":{"type":"integer","format":"int64","readOnly":true},"note":{"type":"string","description":"Note, i.e. comments or info related to data being exported"},"status":{"type":"string","description":"Data export status","enum":["EXPORT_PROCESS_STARTED","EXPORT_PROCESS_COMPLETED","EXPORT_PROCESS_FAILED"]},"userName":{"type":"string","description":"User name of user who initiated the data export"}},"description":"Data Export DTO object"},"DynamicScanRequest":{"type":"object","required":["id","parameters"],"properties":{"id":{"type":"integer","format":"int64","description":"Unique identifier of dynamic scan request"},"lastUpdateDate":{"type":"string","format":"date-time","description":"The date that the dynamic scan request was updated"},"objectVersion":{"type":"integer","format":"int32","description":"The object version of the dynamic scan request"},"parameters":{"type":"array","description":"Parameters that are needed for dynamic scan request","items":{"$ref":"#/definitions/DynamicScanRequestParameter"}},"requestedDate":{"type":"string","format":"date-time","description":"The date that the dynamic scan request was submitted"},"status":{"type":"string","description":"The status of the dynamic scan request","enum":["SUBMITTED","PICKED_UP","CANCELED","COMPLETED"]},"submitter":{"type":"string","description":"The id of the user who submitted the dynamic scan request"}},"description":"Dynamic Scan Request object"},"DynamicScanRequestParameter":{"type":"object","properties":{"fileValueDocumentInfoId":{"type":"integer","format":"int64","description":"The file value document info id for an upload file"},"fileValueName":{"type":"string","description":"The name of an uploaded file"},"id":{"type":"integer","format":"int64","description":"The id of the parameter"},"objectVersion":{"type":"integer","format":"int32","description":"The objecct version of this parameter"},"parameterDefinition":{"description":"The definition for this parameter","$ref":"#/definitions/DynamicScanRequestParameterDefinition"},"value":{"type":"string","description":"The value of the parameter"},"valueOptions":{"type":"array","description":"The name of the uploaded file","items":{"$ref":"#/definitions/DynamicScanRequestParameterOption"}},"values":{"type":"array","description":"A list of possible values for this parameter","items":{"$ref":"#/definitions/DynamicScanRequestParameterOption"}}},"description":"Dynamic Scan Request Parameter DTO object"},"DynamicScanRequestParameterDefinition":{"type":"object","required":["guid","name","required","type"],"properties":{"description":{"type":"string"},"guid":{"type":"string","description":"Unique string identifier for this parameter definition"},"id":{"type":"integer","format":"int64","description":"Unique id for this parameter definition","readOnly":true},"name":{"type":"string"},"required":{"type":"boolean","example":false,"description":"Set to true if required"},"sequenceNumber":{"type":"integer","format":"int64"},"type":{"type":"string","description":"Attribute Definition Type from which this parameter definition is based on","enum":["TEXT","SINGLE","MULTIPLE","LONG_TEXT","SENSITIVE_TEXT","BOOLEAN","INTEGER","DATE","FILE"]}},"description":"Attribute Definition DTO object."},"DynamicScanRequestParameterOption":{"type":"object","required":["id","index","name"],"properties":{"description":{"type":"string"},"guid":{"type":"string","description":"Unique string identifier for a Dynamic Scan Request Parameter Option"},"id":{"type":"integer","format":"int64","description":"Unique ID for this parameter option"},"index":{"type":"integer","format":"int32","description":"Index of this option in list of options"},"name":{"type":"string","description":"Name"}},"description":"Dynamic Scan Request Parameter Option DTO object"},"DynamicScanRequestTemplate":{"type":"object","required":["parameters"],"properties":{"parameters":{"type":"array","description":"Parameters that are needed for dynamic scan request","items":{"$ref":"#/definitions/DynamicScanRequestParameter"}}},"description":"Dynamic Scan Request Template object"},"DynamicScanRequestsSummary":{"type":"object","properties":{"canEditOrCancel":{"type":"boolean","example":false,"description":"Flag that indicates whether the user may edit or cancel the dynamic scan request"},"canSubmit":{"type":"boolean","example":false,"description":"Flag that indicates whether the user can submit dynamic scan requests"},"dynamicScanDisabled":{"type":"boolean","example":false,"description":"Flag that indicates whether dynamic scan request is disabled"},"dynamicScanDisabledMessage":{"type":"string","description":"A message indicating the reason for why dynamic scan is disabled"},"lastScanId":{"type":"integer","format":"int64","description":"The id of the last dynamic scan request"},"lastScanSummary":{"type":"string","description":"Holds information about the last dynamic scan request"}},"description":"Dynamic Scan Requests Summary object"},"EmbeddedReportDefinition":{"type":"object","properties":{"fieldsToNullWithExclusions":{"type":"array","items":{"type":"string"}},"reportDefinition":{"$ref":"#/definitions/Report Definition"}}},"EmbeddedRoles":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/definitions/Role"}}}},"EmbeddedScans":{"type":"object","properties":{"scans":{"type":"array","items":{"$ref":"#/definitions/Scan"}}}},"Engine type":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"servedByPlugin":{"type":"boolean","example":false,"readOnly":true}},"description":"Types of the analyzers (engines) that produces issues"},"EntityStateIdentifier":{"type":"object","required":["id","revision"],"properties":{"id":{"type":"integer","format":"int64","description":"API entity identifier.","readOnly":true},"revision":{"type":"integer","format":"int32","description":"API entity revision.","readOnly":true}},"description":"Simple API entity that contains only ID and revision."},"EventLog":{"type":"object","properties":{"detailedNote":{"type":"string","readOnly":true},"entityId":{"type":"integer","format":"int64","readOnly":true},"eventDate":{"type":"string","format":"date-time","readOnly":true},"eventType":{"type":"string","readOnly":true,"enum":["WEBUI_LOGIN_SUCCESS","WEBUI_LOGIN_FAILED","WEBUI_LOGOUT","WS_LOGIN_SUCCESS","WS_LOGIN_FAILED","LOCAL_USER_CREATED","LOCAL_USER_UPDATED","LOCAL_USER_DELETED","AGENT_CREDENTIAL_CREATED","AGENT_CREDENTIAL_UPDATED","AGENT_CREDENTIAL_DELETED","LDAP_ENTITY_CREATED","LDAP_ENTITY_UPDATED","LDAP_ENTITY_DELETED","LDAP_CACHE_REFRESH_REQUESTED","LDAP_CACHE_REFRESH_STARTED","LDAP_CACHE_REFRESH_COMPLETED","PROJECT_VERSION_CREATED","PROJECT_VERSION_CREATED_FROM_PREVIOUS","PROJECT_VERSION_UPDATED","PROJECT_VERSION_DELETED","PROJECT_VERSION_METADATA_UPDATED","PROJECT_VERSION_ACCESS_ADDED","PROJECT_VERSION_ACCESS_REMOVED","PROJECT_VERSION_BUG_TRACKER_UPDATED","SCA_RESULT_PROCESSED","RUNTIME_RESULT_PROCESSED","EXTERNAL_RESULT_PROCESSED","PTA_RESULT_PROCESSED","RTA_RESULT_PROCESSED","ARTIFACT_UPLOAD_REQUESTED","ARTIFACT_UPLOAD_STARTED","ARTIFACT_UPLOAD_COMPLETED","ARTIFACT_UPLOAD_FAILED","ARTIFACT_UPLOAD_CANCELLED","ARTIFACT_DELETE_REQUESTED","ARTIFACT_DELETE_STARTED","ARTIFACT_DELETE_COMPLETED","ARTIFACT_DELETE_FAILED","ARTIFACT_DELETE_CANCELLED","JOB_CANCELLED","ARTIFACT_PURGE_REQUESTED","ARTIFACT_PURGE_REQUEST_STARTED","ARTIFACT_PURGE_COMPLETED","ARTIFACT_PURGE_FAILED","ARTIFACT_PURGE_REQUEST_FINISHED","ARTIFACT_PURGE_CANCELLED","HISTORICAL_SNAPSHOT_COLLECTION_STARTED","HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED","HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED","HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES","AUDIT_PERFORMED","ARTIFACT_UPLOAD_REQUIRES_AUTH","SOURCE_CODE_UPLOADED","FILTERSET_FOLDER_REFRESH_REQUESTED","FILTERSET_FOLDER_REFRESH_COMPLETED","FILTERSET_FOLDER_REFRESH_FAILED","DYNAMIC_SCAN_CREATED","DYNAMIC_SCAN_EDITED","DYNAMIC_SCAN_CANCELED","DYNAMIC_SCAN_COMPLETED","DYNAMIC_SCAN_PICKED_UP","BATCH_BUG_FILING_REQUESTED","BATCH_BUG_FILING_REQUEST_FAILED","BATCH_BUG_FILING_STARTED","BATCH_BUG_FILING_ENDED","BATCH_BUG_FILING_FAILED","BUG_FILED","BUG_FAILED_TO_FILE","BUG_STATE_MANAGEMENT_STARTED","BUG_STATE_MANAGEMENT_ENDED","BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS","BUG_UPDATED","BUG_FAILED_TO_UPDATE","COMMENT_ADDED_TO_ISSUE","AUDIT_ASSISTANT_ISSUES_SUBMITTED","AUDIT_ASSISTANT_ISSUES_RETRIEVED","AUDIT_ASSISTANT_FPR_UPLOAD_STARTED","AUDIT_ASSISTANT_TRAINING_SENT","AUDIT_ASSISTANT_TEST_CONNECTION_FAILED","AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED","AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED","AUDIT_ASSISTANT_FPR_UPLOAD_FAILED","AUDIT_ASSISTANT_TRAINING_SENT_FAILED","REPORT_GENERATION_REQUESTED","REPORT_GENERATION_COMPLETED","REPORT_GENERATION_FAILED","REPORT_GENERATION_CANCELLED","REPORT_DELETED","RULEPACK_SERVER_UPDATE","RULEPACK_USER_UPLOAD","RULEPACK_DELETED","RULEPACK_DOWNLOAD","RULEPACK_CLIENT_UPDATE","DOCUMENT_ARTIFACT_CREATED","DOCUMENT_ARTIFACT_UPDATED","DOCUMENT_ARTIFACT_DELETED","TASK_INSTANCE_CREATED","TASK_INSTANCE_UPDATED","TASK_INSTANCE_DELETED","TASK_INSTANCE_SIGNOFF_UPDATED","ACTIVITY_INSTANCE_SIGNOFF_UPDATED","REQUIREMENT_INSTANCE_SIGNOFF_UPDATED","REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED","TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF","REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF","SDL_COMMENT_CREATED","PROJECT_PERSONA_ASSIGNMENT_UPDATED","PERSONA_ASSIGNMENT_UPDATED","WORK_OWNER_UPDATED","DUE_DATE_UPDATED","SESSION_TIMEOUT","REQ_TEMPLATE_CREATED","REQ_TEMPLATE_UPDATED","ACTIVITY_CREATED","ACTIVITY_UPDATED","VARIABLE_CREATED","VARIABLE_UPDATED","VARIABLE_DELETED","MEASUREMENT_AGENT_CREATED","MEASUREMENT_AGENT_UPDATED","MEASUREMENT_AGENT_DELETED","DOCUMENT_DEF_CREATED","DOCUMENT_DEF_UPDATED","PROJECT_TEMPLATE_CREATED","PROJECT_TEMPLATE_UPDATED","PROJECT_TEMPLATE_DELETED","ASSIGNMENT_RULES_UPDATED","PERSONA_CREATED","PERSONA_UPDATED","PERSONA_DELETED","ATTR_CREATED","ATTR_UPDATED","ATTR_DELETED","PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT","PROJECT_VERSION_PRIMARY_TAG_UPDATE","REPORT_DEFINITION_CREATED","REPORT_DEFINITION_UPDATED","REPORT_DEFINITION_DELETED","REPORT_LIBRARY_CREATED","REPORT_LIBRARY_UPDATED","REPORT_LIBRARY_DELETED","RUNTIME_HOST_CONNECTED","RUNTIME_HOST_DISCONNECTED","RUNTIME_HOST_CREATED","RUNTIME_HOST_DELETED","RUNTIME_HOST_DISCOVERED","RUNTIME_HOST_ENABLED","RUNTIME_HOST_DISABLED","RUNTIME_HOST_AUTH_RESET","ACCEPT_NEW_HOSTS_ENABLED","ACCEPT_NEW_HOSTS_DISABLED","DISABLED_HOST_CONNECTION","RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED","REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED","RUNTIME_CONFIGURATION_CREATED","RUNTIME_CONFIGURATION_UPDATED","RUNTIME_CONFIGURATION_DELETED","RUNTIME_CONFIGURATION_TEMPLATE_UPDATED","RUNTIME_EH_CREATED","RUNTIME_EH_UPDATED","RUNTIME_EH_DELETED","RUNTIME_SETTINGS_UPDATED","RUNTIME_RULEPACK_CONFIG_UPDATED","RUNTIME_EVENT_RECEIVED","RUNTIME_ALERT_RECEIVED","FEDERATION_CREATED","FEDERATION_UPDATED","FEDERATION_DELETED","RTAPP_CREATED","RTAPP_UPDATED","RTAPP_DELETED","RTAPP_ACCESS_ADDED","RTAPP_ACCESS_REMOVED","USERROLE_CREATED","USERROLE_UPDATED","USERROLE_DELETED","CLOUD_SCAN_POLLED","CLOUD_POOL_CREATED","CLOUD_POOL_UPDATED","CLOUD_POOL_DELETED","CLOUD_POOL_AVS_UPDATED","CLOUD_POOL_SENSORS_UPDATED","CLOUD_JOB_CANCELED","CLOUD_JOB_FPR_DOWNLOADED","CLOUD_JOB_LOG_DOWNLOADED","INDEX_MAINTENANCE_STARTED","INDEX_MAINTENANCE_COMPLETED","FULL_REINDEX_STARTED","FULL_REINDEX_COMPLETED","INDEX_NEW_ISSUES_STARTED","INDEX_NEW_ISSUES_COMPLETED","SSC_CONFIGURATION_UPDATED","LDAP_CONFIG_CREATED","LDAP_CONFIG_UPDATED","LDAP_CONFIG_DELETED","LDAP_CONFIG_DEFAULT_CHANGED","SEED_BUNDLE_UPLOAD_COMPLETED","SEED_BUNDLE_UPLOAD_FAILED","SEED_BUNDLE_COMPLETED","SEED_BUNDLE_FAILED"]},"id":{"type":"integer","format":"int64","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","readOnly":true},"userName":{"type":"string","readOnly":true}},"description":"Event Log DTO object"},"ExportAuditToCSVRequest":{"type":"object","required":["datasetName","fileName","filterSet","orderBy","projectVersionId"],"properties":{"aggregateBy":{"type":"string","description":"Aggregateby"},"collapseIssues":{"type":"boolean","example":false,"description":"Will collapse issues in exported files"},"datasetName":{"type":"string","description":"Dataset name (Audit)"},"fileName":{"type":"string","description":"File name to save"},"filter":{"type":"string","description":"Filter"},"filterBy":{"type":"string","description":"Filterby"},"filterSet":{"type":"string","description":"Filterset"},"includeCommentsInHistory":{"type":"boolean","example":false,"description":"Will include comments in history"},"includeHidden":{"type":"boolean","example":false,"description":"Will include hidden issues"},"includeRemoved":{"type":"boolean","example":false,"description":"Will include removed issues"},"includeSuppressed":{"type":"boolean","example":false,"description":"Will include suppressed issues"},"issueSearch":{"type":"string","description":"Search issue query"},"limit":{"type":"integer","format":"int32","description":"Limit"},"note":{"type":"string","description":"Note"},"orderBy":{"type":"string","description":"Orderby"},"projectVersionId":{"type":"integer","format":"int64","description":"ProjectVersion id to export audit data"},"restrictToUsersIssues":{"type":"boolean","example":false,"description":"will restrict to user issues"},"start":{"type":"integer","format":"int32","description":"Start"},"useShortFileNames":{"type":"boolean","example":false,"description":"Will use short file names"}},"description":"Request of exporting audit information to CSV file"},"ExportIssueStatsToCSVRequest":{"type":"object","required":["datasetName","fileName"],"properties":{"datasetName":{"type":"string","description":"Dataset name (Issue Stat)"},"fileName":{"type":"string","description":"Csv file name"},"limit":{"type":"integer","format":"int32","description":"Limit"},"note":{"type":"string","description":"Note for csv export"},"start":{"type":"integer","format":"int32","description":"Start"}},"description":"Request of exporting issue stats to CSV file"},"External Bug Info":{"type":"object","required":["externalBugDeepLink","externalBugId","fileBugForSelectAll","issueCount","issueInstanceIds"],"properties":{"externalBugDeepLink":{"type":"string","description":"Link to a bug the user can navigate to by clicking the link"},"externalBugId":{"type":"string","description":"ID of the bug"},"fileBugForSelectAll":{"type":"boolean","example":false,"description":"True if user wants to file a bug for all selected issues in UI"},"issueCount":{"type":"integer","format":"int64","description":"Count of issues for which a bug is filed"},"issueInstanceIds":{"type":"array","description":"List of Issue Instance IDs","items":{"type":"string"}}},"description":"External Bug Info DTO object"},"Feature":{"type":"object","required":["description","id","name"],"properties":{"description":{"type":"string","description":"Feature description","readOnly":true},"id":{"type":"string","description":"Feature id","readOnly":true},"name":{"type":"string","description":"Feature name","readOnly":true}},"description":"A feature that is available on the server instance"},"File token":{"type":"object","required":["fileTokenType"],"properties":{"fileTokenType":{"type":"string","example":"DOWNLOAD","description":"Type of single-use file token","enum":["UPLOAD","DOWNLOAD","PREVIEW_FILE","REPORT_FILE"]},"token":{"type":"string","description":"Value of single-use token to be used as the 'mat' URL parameter during a file operation","readOnly":true}},"description":"Token to upload or download files"},"Filter Set":{"type":"object","required":["defaultFilterSet","description","folders","guid","title"],"properties":{"defaultFilterSet":{"type":"boolean","example":false,"description":"whether this filter set is the default within its issue template","readOnly":true},"description":{"type":"string","readOnly":true},"folders":{"type":"array","description":"List of folders defined in filter set","readOnly":true,"items":{"$ref":"#/definitions/FolderDto"}},"guid":{"type":"string","description":"GUID of filter set","readOnly":true},"title":{"type":"string","description":"name of filter set","readOnly":true}},"description":"basic info on a filter set (does not include filters)"},"Folder":{"type":"object","properties":{"color":{"type":"string","description":"Color that should be used to represent folder on UI","readOnly":true},"description":{"type":"string","description":"Folder description","readOnly":true},"editable":{"type":"boolean","example":false,"description":"Is folder editable","readOnly":true},"guid":{"type":"string","description":"Folder GUID. Guid is unique across all the folders defined for a project version","readOnly":true},"id":{"type":"integer","format":"int64","description":"Folder id","readOnly":true},"name":{"type":"string","description":"Folder name","readOnly":true},"orderIndex":{"type":"integer","format":"int32","description":"Numeric value used for ordering folder from the most important to the least important","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","description":"ID of the project version for which folder is defined","readOnly":true}}},"FolderDto":{"type":"object","properties":{"color":{"type":"string","description":"Folder color. Folder will be marked by this color on UI","readOnly":true},"guid":{"type":"string","description":"Folder GUID.","readOnly":true},"id":{"type":"integer","format":"int64","description":"Unique identifier of the folder.","readOnly":true},"name":{"type":"string","description":"Folder unique name.","readOnly":true}},"description":"Issues folder. This is a readonly object, it cannot be created using SSC API."},"Fortify job":{"type":"object","required":["id","invokingUserName","jobState","jobType"],"properties":{"id":{"type":"string","readOnly":true},"invokingUserName":{"type":"string","description":"SSC username which initiated the job","readOnly":true},"jobState":{"type":"integer","format":"int32","example":"0=normal, 2=complete, 3=error","readOnly":true},"jobType":{"type":"integer","format":"int32","example":"20 represents HISTORICAL_SNAPSHOT job","readOnly":true}},"description":"Fortify job DTO object, carries less information than the main Job DTO. Used primarily for the snapshot refresh which be initiated by a non-admin user"},"IID Migration":{"type":"object","properties":{"artifactId":{"type":"integer","format":"int64"},"id":{"type":"integer","format":"int64","description":"IID migration id","readOnly":true},"mappings":{"type":"array","items":{"$ref":"#/definitions/IidMapping"}},"processingDate":{"type":"string","format":"date-time"},"projectVersionId":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["NONE","SCHED_PROCESSING","PROCESSING","PROCESS_COMPLETE","ERROR_PROCESSING","REQUIRE_AUTH","DELETING","ERROR_DELETING","DELETED","PURGING","PURGED","ERROR_PURGING","DISPATCH_ANALYSIS","DISPATCH_REAUDIT","ERROR_DISPATCH","QUEUED_ANALYSIS","REQUEUED_ANALYSIS","ANALYZING","ANALYSIS_COMPLETE","ERROR_ANALYZING","UNKNOWN","AUDIT_FAILED"]}}},"IidMapping":{"type":"object","properties":{"fromIid":{"type":"string"},"toIid":{"type":"string"}}},"Input Report Parameter":{"type":"object","required":["identifier","name","paramValue","type"],"properties":{"identifier":{"type":"string"},"name":{"type":"string"},"paramValue":{"type":"object","description":"Value of this parameter"},"type":{"type":"string","enum":["SINGLE_PROJECT","SINGLE_RUNTIME_APP","SINGLE_SSA_PROJECT","MULTI_PROJECT","MULTI_RUNTIME_APP","MULTI_SSA_PROJECT","PROJECT_ATTRIBUTE","STRING","BOOLEAN","DATE","SINGLE_SELECT_DEFAULT","METADEF_GUID"]}},"description":"InputReportParameter DTO object"},"InputStream":{"type":"object"},"Issue Assignment":{"type":"object","required":["issueCountAllProjectVer","issueCountCertainProjectVer","projectVersionId","userName"],"properties":{"issueCountAllProjectVer":{"type":"integer","format":"int32","description":"total number of issues assigned to user across all project versions","readOnly":true},"issueCountCertainProjectVer":{"type":"integer","format":"int32","description":"number of issues assigned to user in current project version","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","readOnly":true},"userName":{"type":"string","readOnly":true}},"description":"counts of issues assigned to user"},"Issue Attachment":{"type":"object","required":["description","fileDocId","id","updateTime"],"properties":{"description":{"type":"string","readOnly":true},"fileDocId":{"type":"integer","format":"int64","description":"document ID referencing the attachment","readOnly":true},"id":{"type":"integer","format":"int64","readOnly":true},"image":{"type":"string","format":"byte"},"originalFileName":{"type":"string"},"updateTime":{"type":"string","format":"date-time","readOnly":true}},"description":"attachment (such as screenshot) associated with issue"},"Issue Audit Comment":{"type":"object","required":["auditTime","comment","issueId","seqNumber","userName"],"properties":{"auditTime":{"type":"string","format":"date-time","readOnly":true},"comment":{"type":"string","readOnly":true},"issueId":{"type":"integer","format":"int64","readOnly":true},"issueInstanceId":{"type":"string","readOnly":true},"issueName":{"type":"string","readOnly":true},"projectName":{"type":"string","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","readOnly":true},"projectVersionName":{"type":"string","readOnly":true},"seqNumber":{"type":"integer","format":"int32","readOnly":true},"userName":{"type":"string","readOnly":true}},"description":"An audit comment associated with an issue"},"Issue Primary Tag":{"type":"object","properties":{"tagGuid":{"type":"string"},"tagId":{"type":"integer","format":"int64"},"tagName":{"type":"string"},"tagValue":{"type":"string"}},"description":"Store the information about issue primary custom tag"},"Issue Statistics":{"type":"object","required":["filterSetId","hiddenCount","hiddenDisplayableCount","projectVersionId","removedCount","suppressedCount"],"properties":{"filterSetId":{"type":"integer","format":"int64","description":"Filter set identifier"},"hiddenCount":{"type":"integer","format":"int32","description":"Total number of hidden issues in the project version"},"hiddenDisplayableCount":{"type":"integer","format":"int32","description":"Number of displayable hidden issues in the project version","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","description":"Project version identifier"},"removedCount":{"type":"integer","format":"int32","description":"Total number of removed issues "},"removedDisplayableCount":{"type":"integer","format":"int32","description":"Number of displayable removed issues in the project version","readOnly":true},"suppressedCount":{"type":"integer","format":"int32","description":"Total number of suppressed issues in the project version"},"suppressedDisplayableCount":{"type":"integer","format":"int32","description":"Number of displayable suppressed issues in the project version","readOnly":true}},"description":"Issue Statistics DTO object"},"Issue Summary":{"type":"object","properties":{"name":{"type":"string","description":"Name","readOnly":true},"series":{"type":"array","readOnly":true,"items":{"type":"object"}},"totalIssueCount":{"type":"integer","format":"int64","readOnly":true}},"description":"Used to chart variable and performance indicators of project version's issues."},"Issue Template":{"type":"object","required":["name","originalFileName"],"properties":{"customTagIds":{"type":"array","items":{"type":"integer","format":"int64"}},"defaultTemplate":{"type":"boolean"},"description":{"type":"string"},"id":{"type":"string","description":"Issue template id","readOnly":true},"inUse":{"type":"boolean","example":false,"description":"Is the template in use"},"masterAttrGuid":{"type":"string"},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32"},"obsolete":{"type":"boolean"},"originalFileName":{"type":"string"},"publishVersion":{"type":"integer","format":"int32"}},"description":"Issue Template DTO object."},"Issue selector":{"type":"object","required":["description","displayName","entityType","guid","value"],"properties":{"description":{"type":"string","description":"Description"},"displayName":{"type":"string","description":"Display name for issue selector"},"entityType":{"type":"string","description":"Issue selector entity type","enum":["UNDEFINED","ISSUE","EXTERNALLIST","CUSTOMTAG","HYBRIDTAG","FOLDER"]},"guid":{"type":"string","description":"Issue selector global unique identifier"},"value":{"type":"string","description":"Issue selector value"}},"description":"Issue selector DTO object"},"IssueActionResponse":{"type":"object","properties":{"data":{"type":"array","description":"Result of issue audit","readOnly":true,"items":{"$ref":"#/definitions/IssueAuditResult"}}},"description":"Result of issue audit action"},"IssueAgingDto":{"type":"object","properties":{"averageDaysToRemediate":{"type":"integer","format":"int32","description":"Average number of days to fix issues in application versions.","readOnly":true},"averageDaysToReview":{"type":"integer","format":"int32","description":"Average number of days to review issues in application versions.","readOnly":true},"bugDensity":{"type":"number","format":"double","description":"Bug density per 10 000 of scanned lines of code.","readOnly":true},"filesScanned":{"type":"integer","format":"int64","description":"Number of files that were scanned in all application versions.","readOnly":true},"id":{"type":"string","description":"This is dynamic attribute which value depend of the aggregation attribute. It can be application ID, application version ID or application version attribute GUID.","readOnly":true},"issuesPendingReview":{"type":"integer","format":"int64","description":"Number of issues that are pending review in all application versions.","readOnly":true},"linesOfCode":{"type":"integer","format":"int64","description":"Number of lines of code that were scanned by scans which results are stored in the application versions.","readOnly":true},"name":{"type":"string","description":"This is dynamic attribute which value depend of the aggregation attribute. It can be application name, application version name or application version attribute name.","readOnly":true},"numberOfApplicationVersions":{"type":"integer","format":"int32","description":"Number of application versions in the application.","readOnly":true},"oldestScanDate":{"type":"string","format":"date-time","description":"Issue audites that have been done after this date have been taken into account for average days to review calculation.","readOnly":true},"openIssues":{"type":"integer","format":"int64","description":"Number of not remediated issues in all application versions.","readOnly":true},"snapshotOutOfDate":{"type":"boolean","example":false,"description":"Flag that indicates that application metrics state was changed and it metrics are going to be recalculated.","readOnly":true}},"description":"Issue aging object contains application metrics."},"IssueAgingGroupDto":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"ID of issue aging table grouping attribute. This ID should be passed to issue aging endpoint to return issue aging items that belongs only to this group","readOnly":true},"name":{"type":"string","description":"Name of the group to display it on UI.","readOnly":true}},"description":"Issue aging group object contains definition of project version attribute that can be used for issue aging table grouping."},"IssueAgingPortlet":{"type":"object","properties":{"applicationVersions":{"type":"integer","format":"int32"},"averageDaysToRemediate":{"type":"integer","format":"int32"},"averageDaysToReview":{"type":"integer","format":"int32"},"filesScanned":{"type":"integer","format":"int64"},"issuesPendingReview":{"type":"integer","format":"int64"},"issuesRemediated":{"type":"integer","format":"int64"},"linesOfCode":{"type":"integer","format":"int64"},"openIssues":{"type":"integer","format":"int64"},"openIssuesReviewed":{"type":"integer","format":"int64"}},"description":"Issue aging portlet object contains application and issue metrics."},"IssueAssignUserRequest":{"type":"object","required":["issues","user"],"properties":{"issues":{"type":"array","description":"Issues to audit","items":{"$ref":"#/definitions/EntityStateIdentifier"}},"user":{"type":"string","description":"Username to assign"}},"description":"Request of assigning user to the issues"},"IssueAuditHistoryDto":{"type":"object","required":["attributeName","auditDateTime","conflict","issueId","newValue","oldValue","sequenceNumber","userName"],"properties":{"attributeName":{"type":"string","description":"Changed attribute name.","readOnly":true},"auditDateTime":{"type":"string","format":"date-time","description":"Date and time when audit was performed.","readOnly":true},"conflict":{"type":"boolean","example":false,"description":"Flag that indicates if there were any conflicts when audit information was merged.","readOnly":true},"issueId":{"type":"integer","format":"int64","description":"ID of the issue the history record belongs to","readOnly":true},"newValue":{"type":"string","description":"Attribute value after audit.","readOnly":true},"oldValue":{"type":"string","description":"Attribute value before audit.","readOnly":true},"sequenceNumber":{"type":"integer","format":"int32","description":"Sequence number of the history record in the list of all audit history records for the issue.","readOnly":true},"userName":{"type":"string","description":"Name of the user who performed the audit.","readOnly":true}},"description":"Issue audit history record."},"IssueAuditRequest":{"type":"object","required":["issues"],"properties":{"comment":{"type":"string","description":"Comment"},"customTagAudit":{"type":"array","description":"Custom tag values that are set for the issue.","items":{"$ref":"#/definitions/Custom Tag"}},"issues":{"type":"array","description":"Issues to audit","items":{"$ref":"#/definitions/EntityStateIdentifier"}},"suppressed":{"type":"boolean","example":false,"description":"Will suppress the issue"},"user":{"type":"string","description":"Username to assign"}},"description":"Request of auditing issues"},"IssueAuditResult":{"type":"object","required":["customTagValues","id","issueInstanceId","projectVersionId","revision","suppressed","userName"],"properties":{"customTagValues":{"type":"array","description":"Custom tag values that are set for the issue.","readOnly":true,"items":{"$ref":"#/definitions/Custom Tag"}},"id":{"type":"integer","format":"int64","description":"Audited issue ID.","readOnly":true},"issueInstanceId":{"type":"string","description":"Issue instance ID.","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","description":"ID of the project version the audited issue belongs to.","readOnly":true},"revision":{"type":"integer","format":"int32","description":"Audited issue revision.","readOnly":true},"suppressed":{"type":"boolean","example":false,"description":"Is issue suppressed.","readOnly":true},"userName":{"type":"string","description":"User assigned to the audited issue.","readOnly":true}},"description":"Issue audit result contains the most rescent issue audit information after performing issue audit."},"IssueFileBugRequest":{"type":"object","required":["bugParams","filterBy","filterSet","issueInstanceIds"],"properties":{"bugParams":{"type":"array","description":"Bug param to file the bug","items":{"$ref":"#/definitions/BugParam"}},"filterBy":{"type":"array","description":"Filter by property","items":{"type":"string"}},"filterSet":{"type":"string","description":"Filterset"},"issueInstanceIds":{"type":"array","description":"Instance id of issues that need to be filed as bugs","items":{"type":"string"}}},"description":"Request of filing the bug from the issues"},"IssueFileBugResponse":{"type":"object","properties":{"data":{"description":"Filed bugs","readOnly":true,"$ref":"#/definitions/External Bug Info"}},"description":"Result of field bug action"},"IssueFilterSelector":{"type":"object","required":["description","displayName","entityType","filterSelectorType","guid","selectorOptions","value"],"properties":{"description":{"type":"string","description":"Selector set's description.","readOnly":true},"displayName":{"type":"string","description":"Selector set's display name.","readOnly":true},"entityType":{"type":"string","description":"Type of the issue attriute that can be used for ordering or filtering.","readOnly":true,"enum":["UNDEFINED","ISSUE","EXTERNALLIST","CUSTOMTAG","HYBRIDTAG","FOLDER"]},"filterSelectorType":{"type":"string","description":"If value of the selector can be chose from the list of predefined values, or if it can contain any value defined by user.","readOnly":true,"enum":["LIST","DECIMAL","DATE","TEXT"]},"guid":{"type":"string","description":"Selector set's GUID.","readOnly":true},"selectorOptions":{"type":"array","description":"Selector set's options.","readOnly":true,"items":{"$ref":"#/definitions/SelectorOption"}},"value":{"type":"string","description":"Selector set's value that must be sent to backend when this option is selected.","readOnly":true}},"description":"DTO object that holds the information about specific issue attribute that can be used for filtering issues list."},"IssueFilterSelectorSet":{"type":"object","required":["filterBySet","groupBySet"],"properties":{"filterBySet":{"type":"array","description":"List of all possible issues filterring attributes.","readOnly":true,"items":{"$ref":"#/definitions/IssueFilterSelector"}},"groupBySet":{"type":"array","description":"List of all possible issues grouping attributes.","readOnly":true,"items":{"$ref":"#/definitions/Issue selector"}}},"description":"Composite object that holds information about issue attributes that can be used for issue list filtering and grouping."},"IssueSearchOption":{"type":"object","required":["optionValue"],"properties":{"optionType":{"type":"string","description":"Option type.","readOnly":true,"enum":["INCLUDE_COMMENTS_IN_HISTORY","HIDDEN","REMOVED","SUPPRESSED","SHORT_FILE_NAMES"]},"optionValue":{"type":"boolean","example":false,"description":"If this option is enabled.","readOnly":true}},"description":"Options that can be used for customizing issue search result."},"IssueSuppressRequest":{"type":"object","required":["issues","suppressed"],"properties":{"issues":{"type":"array","description":"Issues to suppress","items":{"$ref":"#/definitions/EntityStateIdentifier"}},"suppressed":{"type":"boolean","example":false,"description":"Will suppress the issue"}},"description":"Request of suppressing issues"},"IssueUpdateTagRequest":{"type":"object","required":["customTagAudit","issues"],"properties":{"customTagAudit":{"description":"Custom tag values that are set for the issue.","$ref":"#/definitions/Custom Tag"},"issues":{"type":"array","description":"Issues to audit","items":{"$ref":"#/definitions/EntityStateIdentifier"}}},"description":"Request of updating custom tag from the issues"},"IssueViewTemplate":{"type":"object","required":["objectVersion"],"properties":{"dataVersion":{"type":"integer","format":"int64","description":"Issue data version for which template is created."},"description":{"type":"string","description":"Template description."},"engineType":{"type":"string","description":"Engine type for which template is created."},"id":{"type":"integer","format":"int64","description":"Unique identifier of the issue view template.","readOnly":true},"metadataId":{"type":"integer","format":"int64","description":"Id of the plugin meta data for which template is created."},"objectVersion":{"type":"integer","format":"int32","description":"Object version."},"templateData":{"type":"array","description":"Actual template JSON data.","items":{"type":"array","items":{"$ref":"#/definitions/TemplateItem"}}}},"description":"Issue view template DTO object."},"Job":{"type":"object","required":["artifactName","cancellable","executionOrder","finishTime","jobClass","jobData","jobGroup","priority","projectName","projectVersionId","projectVersionName","startTime","state","userName"],"properties":{"artifactName":{"type":"string","description":"Artifact name related to this job"},"cancellable":{"type":"boolean","example":false,"description":"Set to true if job is cancelable"},"executionOrder":{"type":"number","format":"double","description":"Job execution order"},"finishTime":{"type":"string","format":"date-time","description":"End time of job"},"jobClass":{"type":"string","description":"Job class"},"jobData":{"type":"object","description":"Job data"},"jobGroup":{"type":"string","description":"Job group"},"jobName":{"type":"string","description":"identifier of job","readOnly":true},"priority":{"type":"integer","format":"int32","description":"Job priority"},"projectName":{"type":"string","description":"Project name related to this job"},"projectVersionId":{"type":"integer","format":"int64","description":"Project version identifier related to this job"},"projectVersionName":{"type":"string","description":"Project version name related to this job"},"startTime":{"type":"string","format":"date-time","description":"Start time of job"},"state":{"type":"string","description":"Job State","enum":["PREPARED","FINISHED","RUNNING","WAITING_FOR_WORKER","FAILED","CANCELLED"]},"userName":{"type":"string","description":"Name of user this job was created by"}},"description":"Job DTO object"},"JobCancelRequest":{"type":"object","required":["jobIds"],"properties":{"jobIds":{"type":"array","description":"List containing single job ID to cancel","items":{"type":"string"}}},"description":"Request of cancelling jobs"},"JobPriorityChangeCategoryWarning":{"type":"object","required":["warningCategory","warningList"],"properties":{"warningCategory":{"type":"string","description":"Job priority change warning category.","readOnly":true},"warningList":{"type":"array","description":"Detailed information about job priority change.","readOnly":true,"items":{"$ref":"#/definitions/JobPriorityChangeInfo"}}},"description":"Job priority change warning"},"JobPriorityChangeInfo":{"type":"object","required":["count","jobClassName"],"properties":{"count":{"type":"integer","format":"int32","description":"Number of the warnings of for the specific job class.","readOnly":true},"jobClassName":{"type":"string","description":"Job class name.","readOnly":true}},"description":"Job priority change information"},"LDAP entity":{"type":"object","required":["distinguishedName","email","firstName","lastName","ldapType","name","roles"],"properties":{"distinguishedName":{"type":"string","description":"Distinguished name of LDAP entity"},"email":{"type":"string","description":"Email of LDAP entity"},"firstName":{"type":"string","description":"First name of LDAP entity"},"id":{"type":"integer","format":"int64","description":"LDAP entity identifier","readOnly":true},"lastName":{"type":"string","description":"Last name of LDAP entity"},"ldapType":{"type":"string","description":"Type of LDAP entity.","enum":["NONE","GROUP","USER","ORG_UNIT"]},"name":{"type":"string","description":"LDAP entity name"},"roles":{"type":"array","description":"List of roles pertaining to this LDAP entity","items":{"$ref":"#/definitions/Role"}},"userPhoto":{"description":"Photo object if LDAP entity is user","$ref":"#/definitions/User photo"}},"description":"An LDAP entity like user, group or organization"},"LdapRefreshResponse":{"type":"object","properties":{"data":{"description":"LDAP refresh job information","readOnly":true,"$ref":"#/definitions/Job"}},"description":"Result of refreshing ldap server"},"LdapServerDto":{"type":"object","required":["attributeDistinguishedName","attributeEmail","attributeFirstName","attributeGroupname","attributeLastName","attributeMember","attributeMemberOf","attributeObjectClass","attributeOrgunitName","attributePassword","attributeUserName","authenticatorType","baseDn","cacheEnabled","cacheEvictionTime","cacheExecutorPoolSize","cacheExecutorPoolSizeMax","cacheMaxThreadsPerCache","checkSslHostname","checkSslTrust","classGroup","classOrgunit","classUser","defaultServer","enabled","id","ignorePartialResultException","nestedGroupsEnabled","objectVersion","pageSize","pagingEnabled","passwordEncoderType","referralsProcessingStrategy","serverName","url","userDn","userPassword","userPhotoEnabled","validationIdleTime","validationTimeLimit"],"properties":{"attributeDistinguishedName":{"type":"string"},"attributeEmail":{"type":"string"},"attributeFirstName":{"type":"string"},"attributeGroupname":{"type":"string"},"attributeLastName":{"type":"string"},"attributeMember":{"type":"string"},"attributeMemberOf":{"type":"string"},"attributeObjectClass":{"type":"string"},"attributeObjectSid":{"type":"string"},"attributeOrgunitName":{"type":"string"},"attributePassword":{"type":"string"},"attributeThumbnailMimeDefault":{"type":"string"},"attributeThumbnailPhoto":{"type":"string"},"attributeUserName":{"type":"string"},"authenticatorType":{"type":"string","enum":["BIND_AUTHENTICATOR","PASSWORD_COMPARISON_AUTHENTICATOR"]},"baseDn":{"type":"string","description":"Distinguished name (DN) of root (base) LDAP entity SSC has access to. If value is set to not empty entity's DN, SSC has access only to this entity and all its children. If value of this attribute is an empty string, SSC has access to whole LDAP entities tree"},"baseObjectSid":{"type":"string"},"cacheEnabled":{"type":"boolean","example":false},"cacheEvictionTime":{"type":"integer","format":"int32"},"cacheExecutorPoolSize":{"type":"integer","format":"int32"},"cacheExecutorPoolSizeMax":{"type":"integer","format":"int32"},"cacheMaxThreadsPerCache":{"type":"integer","format":"int32"},"checkSslHostname":{"type":"boolean","example":false},"checkSslTrust":{"type":"boolean","example":false},"classGroup":{"type":"string"},"classOrgunit":{"type":"string"},"classUser":{"type":"string"},"defaultServer":{"type":"boolean","example":false,"description":"Boolean flag that marks LDAP server as default. Default means the server which configuration was imported from ldap.properties legacy configuration file"},"enabled":{"type":"boolean","example":false,"description":"Flag that marks server as enabled. All enabled servers are used by SSC. Server can be temporary disabled if it is temporary down."},"id":{"type":"integer","format":"int64","description":"LDAP Server id","readOnly":true},"ignorePartialResultException":{"type":"boolean","example":false},"nestedGroupsEnabled":{"type":"boolean","example":false},"objectVersion":{"type":"integer","format":"int32","description":"Version of the LDAP server entity to support editing LDAP server entity by multiply administrators","readOnly":true},"pageSize":{"type":"integer","format":"int32"},"pagingEnabled":{"type":"boolean","example":false},"passwordEncoderType":{"type":"string","enum":["NOT_SET","LDAP_SHA_PASSWORD_ENCODER","MD4_PASSWORD_ENCODER","MD5_PASSWORD_ENCODER","SHA_PASSWORD_ENCODER"]},"referralsProcessingStrategy":{"type":"string","enum":["ignore","follow"]},"saveWithoutValidation":{"type":"boolean"},"searchDns":{"type":"string"},"serverName":{"type":"string","description":"Name of the LDAP server to distinguish it from other servers"},"url":{"type":"string"},"userDn":{"type":"string"},"userPassword":{"type":"string"},"userPhotoEnabled":{"type":"boolean","example":false},"validationIdleTime":{"type":"integer","format":"int32"},"validationTimeLimit":{"type":"integer","format":"int32"}}},"LdapServerTestRequest":{"type":"object","required":["ldapConfig"],"properties":{"ldapConfig":{"description":"LDAP server information","$ref":"#/definitions/LdapServerDto"}},"description":"Request of testing ldap server"},"License":{"type":"object","properties":{"capabilities":{"type":"array","description":"List of all license capabilities","readOnly":true,"items":{"$ref":"#/definitions/License capability"}},"creationDate":{"type":"string","format":"date-time","description":"Date when license was created","readOnly":true},"description":{"type":"string","description":"License description","readOnly":true},"expirationDate":{"type":"string","format":"date-time","description":"Date when license is going to be expired","readOnly":true},"ownerName":{"type":"string","description":"Name of the license owner","readOnly":true}}},"License capability":{"type":"object","required":["expirationDate","key","value"],"properties":{"expirationDate":{"type":"string","format":"date-time","description":"License capability expiration date"},"key":{"type":"string","description":"License capability identifier"},"value":{"type":"string","description":"License capability value"}},"description":"License capability"},"Local User":{"type":"object","required":["dateFrozen","email","failedLoginAttempts","firstName","lastName","passwordNeverExpire","requirePasswordChange","roles","suspended","userName"],"properties":{"adminPassword":{"type":"string"},"clearPassword":{"type":"string"},"dateFrozen":{"type":"string","format":"date-time","description":"Date user's account was frozen"},"email":{"type":"string"},"failedLoginAttempts":{"type":"integer","format":"int32","description":"Number of failed login attempts"},"firstName":{"type":"string"},"id":{"type":"integer","format":"int64","description":"ID required when referencing an existing Local User","readOnly":true},"lastName":{"type":"string"},"passwordNeverExpire":{"type":"boolean","example":false,"description":"True if user's password never expires"},"requirePasswordChange":{"type":"boolean","example":false,"description":"Is user required to change password on first login?"},"roles":{"type":"array","description":"List of Roles assigned to user","items":{"$ref":"#/definitions/Role"}},"suspended":{"type":"boolean","example":false,"description":"True if user's account is locked"},"userName":{"type":"string"}},"description":"Local User DTO object"},"PasswordStrengthCheckRequest":{"type":"object","required":["password"],"properties":{"extraDictionary":{"type":"array","description":"Get additional words to add to dictionary. If null, current user data will be added (for example: username, first name, last name, email).","items":{"type":"string"}},"password":{"type":"string","description":"Get password or it's part from input"}},"description":"Password strength check request"},"PasswordStrengthCheckResponse":{"type":"object","properties":{"score":{"type":"integer","format":"int32","description":"Password strength score","readOnly":true}},"description":"Result of checking strength of password"},"Performance Indicator History":{"type":"object","required":["value"],"properties":{"description":{"type":"string"},"id":{"type":"string","description":"ID required when referencing an existing Performance Indicator History object","readOnly":true},"name":{"type":"string"},"range":{"type":"string","description":"Range of values"},"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","format":"float","description":"Required if referencing an existing Performance Indicator History object"}},"description":"Performance Indicator History DTO object."},"PerformanceIndicator":{"type":"object","required":["equation","name","range"],"properties":{"description":{"type":"string"},"equation":{"type":"string"},"guid":{"type":"string"},"id":{"type":"integer","format":"int64","readOnly":true},"inUse":{"type":"boolean"},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32"},"publishVersion":{"type":"integer","format":"int32"},"range":{"type":"string","enum":["Integer","Percent"]},"type":{"type":"string","enum":["SYSTEM_DEFINED","USER_DEFINED"]},"variables":{"type":"array","items":{"$ref":"#/definitions/Variable"}}},"description":"Performance indicators enable you to combine variables into metrics that are\nnormalized across project version boundaries"},"Permission":{"type":"object","required":["dependsOnPermission","description","name","permittedActions","userOnly"],"properties":{"assignByDefault":{"type":"boolean"},"dependsOnPermission":{"type":"array","description":"Set of permissions this permission requires","readOnly":true,"items":{"$ref":"#/definitions/Permission"}},"description":{"type":"string","description":"Permission description","readOnly":true},"id":{"type":"string","description":"Permission id","readOnly":true},"name":{"type":"string","description":"Permission name","readOnly":true},"permittedActions":{"type":"array","description":"Actions this permission is allowed to perform","readOnly":true,"items":{"type":"string"}},"userOnly":{"type":"boolean","example":false,"description":"Flag is true if this permission can only be assigned to users, and not groups or organizations","readOnly":true}},"description":"A permission in the server"},"Persona":{"type":"object","required":["description","guid","name","objectVersion","publishVersion","superuser"],"properties":{"description":{"type":"string","description":"Persona description"},"guid":{"type":"string","description":"Persona global unique identifier"},"id":{"type":"integer","format":"int64","description":"Identifier","readOnly":true},"name":{"type":"string","description":"Persona name"},"objectVersion":{"type":"integer","format":"int32","description":"Object version"},"publishVersion":{"type":"integer","format":"int32","description":"Publish version"},"superuser":{"type":"boolean","example":false,"description":"Set to true if persona is super user"}},"description":"A personality like project manager or developer"},"Plugin Localization":{"type":"object","additionalProperties":{"type":"object"}},"Plugin Meta Data":{"type":"object","required":["apiVersion","dataVersion","lastUsedOfKind","pluginConfiguration","pluginId","pluginName","pluginState","pluginType","pluginVersion","systemInstalled"],"properties":{"apiVersion":{"type":"string","description":"Version string of the SSC plugin api used to develop the plugin"},"dataVersion":{"type":"integer","format":"int32","description":"An integer used to tag the set of issue attributes provided by this plugin."},"description":{"type":"string","description":"Plugin description","readOnly":true},"engineType":{"type":"string","description":"Name of the scan engine supported by the plugin. Value is defined for parser plugins only","readOnly":true},"id":{"type":"integer","format":"int64","description":"Plugin unique identifier","readOnly":true},"lastUsedOfKind":{"type":"boolean","example":false,"description":"Tracks whether this plugin instance was the most recently used of its kind"},"pluginConfiguration":{"type":"array","description":"Additional configuration properties used by the plugin","items":{"$ref":"#/definitions/PluginConfiguration"}},"pluginId":{"type":"string","description":"Identifier of the plugin, usually a fully-qualified classname. Non-unique when multiple versions of same plugin exist"},"pluginName":{"type":"string","description":"A string name for the plugin"},"pluginState":{"type":"string","description":"State of the plugin instance","enum":["STOPPED","STARTING","STARTED","STOPPING","FAILED_TO_START","FAILED_TO_STOP","UNKNOWN"]},"pluginType":{"type":"string","description":"Denotes functionality of the plugin instance, such as scan parsing, bugtracker integration.","enum":["SCAN_PARSER","BUG_TRACKER","LEGACY_BUG_TRACKER"]},"pluginVersion":{"type":"string","description":"A version string of the implementation code of the plugin"},"supportedEngineVersions":{"type":"string","description":"Versions of the scan engine results supported by the plugin. Value is defined for parser plugins only","readOnly":true},"systemInstalled":{"type":"boolean","example":false,"description":"whether the plugin instance was installed by adding the jar to a special system folder"},"vendorName":{"type":"string","description":"Name of the company / organization that developed the plugin","readOnly":true},"vendorUrl":{"type":"string","description":"Plugin vendor's web site URL","readOnly":true}},"description":"plugin meta data holds attributes of the plugins installed in the application."},"PluginConfiguration":{"type":"object","properties":{"parameterName":{"type":"string"},"parameterType":{"type":"string"}},"description":"additional configuration needed for a plugin."},"PluginDisableRequest":{"type":"object","required":["pluginIds"],"properties":{"pluginIds":{"type":"array","description":"List containing single plugin ID to disable","items":{"type":"integer","format":"int64"}}},"description":"Request of disabling plugin"},"PluginEnableRequest":{"type":"object","required":["pluginIds"],"properties":{"pluginIds":{"type":"array","description":"List containing single plugin ID to enable","items":{"type":"integer","format":"int64"}}},"description":"Request of enabling plugin"},"Project":{"type":"object","required":["createdBy","creationDate","issueTemplateId","name"],"properties":{"createdBy":{"type":"string","description":"User that created this project"},"creationDate":{"type":"string","format":"date-time","description":"Date created","readOnly":true},"description":{"type":"string","description":"Description"},"id":{"type":"integer","format":"int64","description":"Id","readOnly":true},"issueTemplateId":{"type":"string","description":"Id of the Issue Template used"},"name":{"type":"string","description":"Name"}},"description":"A project or application on the server"},"Project Version":{"type":"object","required":["active","bugTrackerEnabled","bugTrackerPluginId","committed","createdBy","creationDate","description","issueTemplateId","issueTemplateModifiedTime","issueTemplateName","latestScanId","masterAttrGuid","name","owner","serverVersion","snapshotOutOfDate","staleIssueTemplate"],"properties":{"active":{"type":"boolean","example":false,"description":"True if this version is active"},"assignedIssuesCount":{"type":"integer","format":"int64"},"attachmentsOutOfDate":{"type":"boolean"},"autoPredict":{"type":"boolean","example":false,"description":"true if auto-prediction is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission."},"bugTrackerEnabled":{"type":"boolean","example":false,"description":"true if the bug tracker plugin assigned to the application version is currently enabled in the system"},"bugTrackerPluginId":{"type":"string","description":"identifier of the bug tracker plugin (if any) assigned to this application version"},"committed":{"type":"boolean","example":false,"description":"True if this version is committed and ready to be used"},"createdBy":{"type":"string","description":"User that created this version"},"creationDate":{"type":"string","format":"date-time","description":"Date this version was created"},"currentState":{"$ref":"#/definitions/Project Version State"},"customTagValuesAutoApply":{"type":"boolean","example":false,"description":"true if custom tag values auto-apply is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission."},"description":{"type":"string","description":"Description"},"id":{"type":"integer","format":"int64","description":"Id","readOnly":true},"issueTemplateId":{"type":"string","description":"Id of the Issue Template used by this version"},"issueTemplateModifiedTime":{"type":"integer","format":"int64","description":"Last time the Issue Template was modified"},"issueTemplateName":{"type":"string","description":"Name of the Issue Template used by this version"},"latestScanId":{"type":"integer","format":"int64","description":"id of the latest scan uploaded to application version"},"loadProperties":{"type":"string"},"masterAttrGuid":{"type":"string","description":"Guid of the primary custom tag for this version"},"migrationVersion":{"type":"number","format":"float"},"mode":{"type":"string","enum":["NONE","ASSESSMENT","BASIC","FULL"]},"name":{"type":"string","description":"Name"},"obfuscatedId":{"type":"string"},"owner":{"type":"string","description":"Owner of this version"},"project":{"$ref":"#/definitions/Project"},"refreshRequired":{"type":"boolean"},"securityGroup":{"type":"string"},"serverVersion":{"type":"number","format":"float","description":"Server version this version's data supports"},"siteId":{"type":"string"},"snapshotOutOfDate":{"type":"boolean","example":false,"description":"True if the most recent snapshot is not accurate"},"sourceBasePath":{"type":"string"},"staleIssueTemplate":{"type":"boolean","example":false,"description":"True if this version's Issue Template has changed or been modified"},"status":{"type":"string","enum":["ACTIVE","DELETING","ARCHIVED","COPYING_ISSUES"]},"tracesOutOfDate":{"type":"boolean"}},"description":"A version of a project or application on the server"},"Project Version State":{"type":"object","required":["analysisResultsExist","analysisUploadEnabled","attentionRequired","auditEnabled","batchBugSubmissionExists","committed","criticalPriorityIssueCountDelta","deltaPeriod","extraMessage","hasCustomIssues","id","issueCountDelta","lastFprUploadDate","metricEvaluationDate","percentAuditedDelta","percentCriticalPriorityIssuesAuditedDelta"],"properties":{"analysisResultsExist":{"type":"boolean","example":false},"analysisUploadEnabled":{"type":"boolean","example":false},"attentionRequired":{"type":"boolean","example":false},"auditEnabled":{"type":"boolean","example":false},"batchBugSubmissionExists":{"type":"boolean","example":false},"committed":{"type":"boolean","example":false,"description":"False if Project Version is in an incomplete state"},"criticalPriorityIssueCountDelta":{"type":"integer","format":"int32"},"deltaPeriod":{"type":"integer","format":"int32"},"extraMessage":{"type":"string"},"hasCustomIssues":{"type":"boolean","example":false},"id":{"type":"integer","format":"int64"},"issueCountDelta":{"type":"integer","format":"int32"},"lastFprUploadDate":{"type":"string","format":"date-time"},"metricEvaluationDate":{"type":"string","format":"date-time"},"percentAuditedDelta":{"type":"number","format":"float"},"percentCriticalPriorityIssuesAuditedDelta":{"type":"number","format":"float"}},"description":"Project Version State DTO object"},"Project version bug tracker":{"type":"object","required":["assignedBugtrackerShortNameIfKnown","assignedPluginId","bugStateManagementConfig","bugTracker","bugtrackerIsAssigned"],"properties":{"assignedBugtrackerShortNameIfKnown":{"type":"string","description":"the short display name of the bug tracker. (will be null if no bugtracker is assigned or if there is no currently installed plugin matching the assigned pluginId.)"},"assignedPluginId":{"type":"string","description":"identifier of the bug tracker plugin assigned to the application version. (Bug tracker integration will be active only if the plugin is also enabled in the system.)"},"bugStateManagementConfig":{"description":"Bug state management configuration","$ref":"#/definitions/BugStateManagementCfg"},"bugTracker":{"description":"Bug tracker (note that this field will be null if the assigned bug tracker is not enabled in the SSC plugin framework.)","$ref":"#/definitions/Bug Tracker"},"bugtrackerIsAssigned":{"type":"boolean","example":false,"description":"indicates whether a bug tracker is assigned to the application version"},"clearAppVersionBugs":{"type":"boolean"}},"description":"Object containing project version and bug tracker related data"},"Project version issue":{"type":"object","required":["analyzer","bugURL","confidence","displayEngineType","engineCategory","engineType","folderGuid","folderId","foundDate","friority","fullFileName","hasAttachments","hasCorrelatedIssues","hidden","impact","issueInstanceId","issueName","kingdom","likelihood","lineNumber","primaryLocation","primaryRuleGuid","primaryTag","projectName","projectVersionId","projectVersionName","removed","removedDate","reviewed","revision","scanStatus","severity","suppressed"],"properties":{"analyzer":{"type":"string","description":"Analyzer"},"audited":{"type":"boolean","example":false,"description":"Flag is set for issues that has been audited and primary tag value was set for this issue."},"bugURL":{"type":"string","description":"Bug url"},"confidence":{"type":"number","format":"float","description":"Issue confidence"},"displayEngineType":{"type":"string","description":"Display name for engine type"},"engineCategory":{"type":"string","description":"Engine category","enum":["STATIC","DYNAMIC"]},"engineType":{"type":"string","description":"Engine type"},"folderGuid":{"type":"string","description":"Issue folder globally unique identifier"},"folderId":{"type":"integer","format":"int64","description":"Deprecated - Issue folder identifier. This may be incorrect or invalid. Please use folderGuid instead."},"foundDate":{"type":"string","format":"date-time","description":"Date when issue found"},"friority":{"type":"string","description":"Friority"},"fullFileName":{"type":"string","description":"Full file name where issue found"},"hasAttachments":{"type":"boolean","example":false,"description":"Set to true if issue has attachments"},"hasCorrelatedIssues":{"type":"boolean","example":false,"description":"Set to true if issue has other correlated issues"},"hidden":{"type":"boolean","example":false,"description":"Set to true if issue is hidden"},"id":{"type":"integer","format":"int64","description":"Project version issue identifier","readOnly":true},"impact":{"type":"number","format":"float","description":"Issue impact"},"issueInstanceId":{"type":"string","description":"Issue instance identifier"},"issueName":{"type":"string","description":"Issue name"},"issueStatus":{"type":"string","description":"Flag represents issue review status and can have 3 types of values: Unreviewed, Under Review, Reviewed."},"kingdom":{"type":"string","description":"Kingdom"},"lastScanId":{"type":"integer","format":"int64","description":"ID of the latest scan that found the issue"},"likelihood":{"type":"number","format":"float","description":"Likelihood of issue"},"lineNumber":{"type":"integer","format":"int32","description":"Line number where issue found"},"primaryLocation":{"type":"string","description":"Issue primary location"},"primaryRuleGuid":{"type":"string","description":"Primary rule global unique identifier"},"primaryTag":{"type":"string","description":"Issue primary tag"},"primaryTagValueAutoApplied":{"type":"boolean","example":false,"description":"Flag equals true if value of custom tag was applied automatically"},"projectName":{"type":"string","description":"Project name"},"projectVersionId":{"type":"integer","format":"int64","description":"Project version identifier"},"projectVersionName":{"type":"string","description":"Project version name"},"removed":{"type":"boolean","example":false,"description":"Set to true if issue is suppressed"},"removedDate":{"type":"string","format":"date-time","description":"Date when issue removed"},"reviewed":{"type":"string","description":"Issue reviewer"},"revision":{"type":"integer","format":"int32","description":"Project version revision"},"scanStatus":{"type":"string","description":"Scan status"},"severity":{"type":"number","format":"float","description":"Issue severity"},"suppressed":{"type":"boolean","example":false,"description":"Set to true if issue is suppressed"}},"description":"Project version issue DTO object"},"Project version issue details":{"type":"object","required":["analyzer","assignedUser","attackPayload","attackType","audited","brief","confidence","cookie","customTagValues","detail","displayEngineType","downloadRequest","downloadResponse","engineCategory","engineType","foundDate","friority","fullFileName","hidden","impact","issueInstanceId","issueName","issueState","kingdom","likelihood","method","primaryRuleGuid","projectVersionId","recommendation","references","removedDate","requestBody","requestHeader","requestParameter","response","responseHeader","revision","scanStatus","severity","shortFileName","suppressed","tips","traceNodes","triggerString","url","vulnerableParameter"],"properties":{"accuracy":{"type":"number","format":"float","description":"Vulnerability accuracy","readOnly":true},"analyzer":{"type":"string","description":"Analyzer"},"assignedUser":{"description":"User assigned to issue","$ref":"#/definitions/AssignedUser"},"attackPayload":{"type":"string","description":"Attack payload"},"attackType":{"type":"string","description":"Attack type","enum":["URL","REQUEST_HEADER","REQUEST_COOKIE","PARAMETER","MULTIPLE"]},"audited":{"type":"boolean","example":false,"description":"Attribute is set to true if issue is audited (primary tag values is set for this issue)"},"brief":{"type":"string","description":"Issue brief"},"className":{"type":"string","description":"Name of class where the vulnerability has been found","readOnly":true},"confidence":{"type":"number","format":"float","description":"Issue confidence"},"cookie":{"type":"string","description":"Cookie"},"customAttributes":{"type":"object","description":"All the additional custom attributes defined for the issue by parser plugin","readOnly":true},"customTagValues":{"type":"array","description":"Custom tag values","items":{"$ref":"#/definitions/Custom Tag"}},"dataVersion":{"type":"integer","format":"int32","description":"Version of the issue data. This attribute is initialized only for issues parsed by 3rd party parsers and is not set for the issues parsed by standard parsers included in SSC installation.","readOnly":true},"detail":{"type":"string","description":"Issue detail"},"displayEngineType":{"type":"string","description":"Display engine type"},"downloadRequest":{"type":"boolean","example":false,"description":"Request contains binary or large data"},"downloadResponse":{"type":"boolean","example":false,"description":"Response contains binary or large data\""},"engineCategory":{"type":"string","description":"Engine category","enum":["STATIC","DYNAMIC"]},"engineType":{"type":"string","description":"Engine type"},"foundDate":{"type":"string","format":"date-time","description":"Issue found date"},"friority":{"type":"string","description":"Fortify priority order (Friority)"},"fullFileName":{"type":"string","description":"Full file name where issue found"},"functionName":{"type":"string","description":"Name of function located in the file where the vulnerability has been found","readOnly":true},"hasViewTemplate":{"type":"boolean","example":false,"description":"Flag that indicates if there is a view template that should be used to display issue details on UI.","readOnly":true},"hidden":{"type":"boolean","example":false,"description":"Set to true if issue is hidden"},"id":{"type":"integer","format":"int64","description":"Identifier","readOnly":true},"impact":{"type":"number","format":"float","description":"Issue impact"},"issueInstanceId":{"type":"string","description":"Issue instance identifier"},"issueName":{"type":"string","description":"Name of the issue category"},"issueState":{"type":"string","description":"Flag represents issue state and says if issue is not an issue or open issue. Rule to calculate value of thi flag is defined in issue template."},"issueStatus":{"type":"string","description":"Flag represents issue review status","enum":["Unreviewed","Under Review","Reviewed"]},"kingdom":{"type":"string","description":"Issue kingdom"},"lastScanId":{"type":"integer","format":"int64","description":"ID of the latest scan that found the issue"},"likelihood":{"type":"number","format":"float","description":"Issue likelihood"},"lineNumber":{"type":"integer","format":"int32","description":"Line number in the file where the vulnerability has been found","readOnly":true},"mappedCategory":{"type":"string","description":"Name of the Fortify category of the vulnerability","readOnly":true},"method":{"type":"string","description":"Method where issue found"},"minVirtualCallConfidence":{"type":"number","format":"float","description":"Confidence level which estimates that vulnerability found in virtual (overridden) function will be executed by tainted source","readOnly":true},"packageName":{"type":"string","description":"Name of package where the vulnerability has been found","readOnly":true},"primaryRuleGuid":{"type":"string","description":"Primary rule global unique identifier"},"primaryTag":{"description":"Identifier, name and value of the custom tag that is selected as a primary tag for the project version the issue belongs to.","$ref":"#/definitions/Issue Primary Tag"},"probability":{"type":"number","format":"float","description":"Vulnerability probability","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","description":"Project version identifier"},"recommendation":{"type":"string","description":"Issue recommendation"},"references":{"type":"string","description":"References"},"remediationConstant":{"type":"number","format":"float","description":"Level of complexity to fix this vulnerability","readOnly":true},"removedDate":{"type":"string","format":"date-time","description":"Issue removed date"},"requestBody":{"type":"string","description":"Request body"},"requestHeader":{"type":"string","description":"Request header"},"requestParameter":{"type":"string","description":"Request parameter"},"requestTriggers":{"type":"array","description":"Triggers in the request","readOnly":true,"items":{"$ref":"#/definitions/Trigger"}},"response":{"type":"string","description":"Response"},"responseHeader":{"type":"string","description":"Response header"},"responseTriggers":{"type":"array","description":"Triggers in the response","readOnly":true,"items":{"$ref":"#/definitions/Trigger"}},"revision":{"type":"integer","format":"int32","description":"Revision number"},"scanStatus":{"type":"string","description":"Scan status"},"severity":{"type":"number","format":"float","description":"Issue severity"},"shortFileName":{"type":"string","description":"Short file name where issue found"},"sink":{"type":"string","description":"Taint sink name","readOnly":true},"sinkContext":{"type":"string","description":"Name of the context that contains vulnerability sink","readOnly":true},"source":{"type":"string","description":"Name of the a program point where tainted data enter the program","readOnly":true},"sourceContext":{"type":"string","description":"Name of the context that contains vulnerability sources","readOnly":true},"sourceFile":{"type":"string","description":"File name where vulnerability source is located.","readOnly":true},"sourceLine":{"type":"integer","format":"int32","description":"Line number in the source file where vulnerability source is located","readOnly":true},"suppressed":{"type":"boolean","example":false,"description":"Set to true if issue is suppressed"},"taintFlag":{"type":"string","description":"An attribute of tainted data that enables the data flow analyzer to discriminate between different types of taint","readOnly":true},"tips":{"type":"string","description":"Issue tips"},"traceNodes":{"type":"array","description":"Issue trace nodes","items":{"type":"array","items":{"$ref":"#/definitions/TraceNodeDto"}}},"triggerString":{"type":"string","description":"Trigger string"},"url":{"type":"string","description":"Issue url"},"vulnerableParameter":{"type":"string","description":"Vulnerable parameter"}},"description":"Project version issue details DTO object"},"Project version issue group":{"type":"object","required":["auditedCount","cleanName","id","name","totalCount","visibleCount"],"properties":{"auditedCount":{"type":"integer","format":"int32","description":"Audited issue count"},"cleanName":{"type":"string","description":"Issue group name not containing count, dashes etc"},"id":{"type":"string","description":"Identifier"},"name":{"type":"string","description":"Issue group name"},"totalCount":{"type":"integer","format":"int32","description":"Issue total count"},"visibleCount":{"type":"integer","format":"int32","description":"Visible issues count"}},"description":"Project version issue group DTO object"},"ProjectVersionAuditByAssistantRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List containing single project version ID to send audit assistant","items":{"type":"integer","format":"int64"}}},"description":"Request of sending the project versions to audit assistant"},"ProjectVersionAuthEntityAssignRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"Project version ids to assign auth entity","items":{"type":"integer","format":"int64"}}},"description":"Request of assigning auth entity to project version"},"ProjectVersionCopyCurrentStateRequest":{"type":"object","required":["copyCurrentStateFpr","previousProjectVersionId","projectVersionId"],"properties":{"copyCurrentStateFpr":{"type":"boolean","example":false,"description":"Will copy current state fpr"},"previousProjectVersionId":{"type":"integer","format":"int64","description":"Previous project version id"},"projectVersionId":{"type":"integer","format":"int64","description":"Project version id"}},"description":"Request of copying current state of the project version"},"ProjectVersionCopyPartialRequest":{"type":"object","required":["copyAnalysisProcessingRules","copyBugTrackerConfiguration","copyCurrentStateFpr","copyCustomTags","previousProjectVersionId","projectVersionId"],"properties":{"copyAnalysisProcessingRules":{"type":"boolean","example":false,"description":"Will copy analysis processing rules"},"copyBugTrackerConfiguration":{"type":"boolean","example":false,"description":"Will copy bugtracker configuration"},"copyCurrentStateFpr":{"type":"boolean","example":false,"description":"Will copy current state fpr"},"copyCustomTags":{"type":"boolean","example":false,"description":"Will copy custom tags"},"previousProjectVersionId":{"type":"integer","format":"int64","description":"Previous project version id"},"projectVersionId":{"type":"integer","format":"int64","description":"Project version id"}},"description":"Request of copying partially from the project version"},"ProjectVersionPurgeRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List containing single project version ID to purge","items":{"type":"integer","format":"int64"}}},"description":"Request of purging the artifacts in project versions"},"ProjectVersionRefreshRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List containing single project version ID to refresh","items":{"type":"integer","format":"int64"}}},"description":"Request of refreshing the project versions and triggering the historical snapshot job"},"ProjectVersionRefreshResponse":{"type":"object","properties":{"data":{"description":"Triggered history snapshot job information","readOnly":true,"$ref":"#/definitions/Fortify job"}},"description":"Response of refreshing application version and triggered history snapshot job"},"ProjectVersionTestRequest":{"type":"object","required":["projectName","projectVersionName"],"properties":{"projectName":{"type":"string","description":"Project name to search"},"projectVersionName":{"type":"string","description":"Project version name to search"}},"description":"Request of testing project versions by searching the project requested"},"ProjectVersionTestResponse":{"type":"object","properties":{"found":{"type":"boolean","example":false,"description":"If the application version founds","readOnly":true}},"description":"Response of testing whether application version with name and exists in specified application"},"ProjectVersionTrainAuditAssistantRequest":{"type":"object","required":["projectVersionIds"],"properties":{"projectVersionIds":{"type":"array","description":"List containing single project version ID to send training for audit assistant","items":{"type":"integer","format":"int64"}}},"description":"Request of sending the project versions training for audit assistant"},"Report Auth Entity":{"type":"object","required":["userName"],"properties":{"firstName":{"type":"string","description":"First name"},"id":{"type":"integer","format":"int64"},"lastName":{"type":"string","description":"Last name"},"userName":{"type":"string","description":"User name"}},"description":"The Fortify User or Ldap User associated with a report"},"Report Definition":{"type":"object","required":["id","name","type"],"properties":{"crossApp":{"type":"boolean","example":false,"description":"True if report applies to multiple project versions"},"description":{"type":"string","description":"Report description"},"fileName":{"type":"string","description":"The name of the report definition file"},"guid":{"type":"string","description":"Report definition GUID"},"id":{"type":"integer","format":"int64","description":"Report definition identifier"},"inUse":{"type":"boolean","example":false,"description":"Indicates whether the report definition is in use"},"name":{"type":"string","description":"Report name"},"objectVersion":{"type":"integer","format":"int32","description":"Object version"},"parameters":{"type":"array","description":"List of report parameters","items":{"$ref":"#/definitions/Report Parameter"}},"publishVersion":{"type":"integer","format":"int32","description":"Publish version"},"renderingEngine":{"type":"string","description":"The engine used to render the report, e.g. BIRT"},"templateDocId":{"type":"integer","format":"int64","description":"Template doc identifier"},"type":{"type":"string","description":"Type of report","enum":["Application Reports","SSA Application Reports","SSA Portfolio Reports","Portfolio Reports","Compliance Reports","Issue Reports","Runtime Application Reports"]},"typeDefaultText":{"type":"string","description":"Report type default text"}},"description":"Report Definition DTO object"},"Report Library":{"type":"object","required":["guid"],"properties":{"description":{"type":"string"},"fileDocId":{"type":"integer","format":"int64","description":"Report library file doc identifier"},"guid":{"type":"string","description":"Report library unique identifier"},"id":{"type":"integer","format":"int64","readOnly":true},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32","description":"Object version"},"publishVersion":{"type":"integer","format":"int32","description":"Publish version"}},"description":"Report Library DTO object"},"Report Parameter":{"type":"object","required":["identifier","reportDefinitionId","type"],"properties":{"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"identifier":{"type":"string","description":"Report parameter identifier"},"name":{"type":"string"},"paramOrder":{"type":"integer","format":"int32","description":"Order in which the parameter should appear"},"reportDefinitionId":{"type":"integer","format":"int64","description":"Report definition identifier"},"reportParameterOptions":{"type":"array","description":"Report parameter options","items":{"$ref":"#/definitions/Report Parameter Option"}},"type":{"type":"string","description":"Report parameter type","enum":["SINGLE_PROJECT","SINGLE_RUNTIME_APP","SINGLE_SSA_PROJECT","MULTI_PROJECT","MULTI_RUNTIME_APP","MULTI_SSA_PROJECT","PROJECT_ATTRIBUTE","STRING","BOOLEAN","DATE","SINGLE_SELECT_DEFAULT","METADEF_GUID"]}},"description":"Report Parameter DTO object"},"Report Parameter Option":{"type":"object","required":["displayValue","reportValue"],"properties":{"defaultValue":{"type":"boolean","example":false,"description":"Indicates whether option is the default value"},"description":{"type":"string"},"displayValue":{"type":"string","description":"Report parameter option display value"},"id":{"type":"integer","format":"int64"},"order":{"type":"integer","format":"int32","description":"Order in which the parameter option should appear"},"reportValue":{"type":"string","description":"Report parameter option report value"}},"description":"Report Parameter Option DTO object"},"Report Project":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"projectVersionsCount":{"type":"integer","format":"int32","description":"Count of project versions"},"versions":{"type":"array","description":"List of report project versions","items":{"$ref":"#/definitions/Report Project Version"}}},"description":"Report Project DTO object"},"Report Project Version":{"type":"object","required":["developmentPhase"],"properties":{"developmentPhase":{"type":"string","description":"Report project version development phase"},"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"description":"The project version that is associated to a report"},"Responsibility Assignment":{"type":"object","required":["email","firstName","lastName","responsibilityDescription","responsibilityGuid","responsibilityName","userId","userName"],"properties":{"email":{"type":"string","description":"Email of user assigned to responsibility"},"firstName":{"type":"string","description":"First name of user assigned to responsibility"},"lastName":{"type":"string","description":"Last name of user assigned to responsibility"},"responsibilityDescription":{"type":"string","description":"Responsibility description"},"responsibilityGuid":{"type":"string","description":"Responsibility global unique identifier"},"responsibilityName":{"type":"string","description":"Responsibility name"},"userId":{"type":"integer","format":"int64","description":"ID of user assigned to responsibility"},"userName":{"type":"string","description":"Name of user assigned to responsibility"}},"description":"A Responsibility that a user in SSC is assigned to. There are currently a few responsibilities like Project Manager, Security Manager, Developer etc per Application."},"Result processing rule":{"type":"object","required":["displayName","displayable","enabled","identifier"],"properties":{"displayName":{"type":"string","readOnly":true},"displayable":{"type":"boolean","example":false,"readOnly":true},"enabled":{"type":"boolean","example":false,"readOnly":true},"identifier":{"type":"string","readOnly":true}},"description":"Rule to be checked when processing an FPR"},"Role":{"type":"object","required":["allApplicationRole","assignedToNonUsers","builtIn","permissionIds","userOnly"],"properties":{"allApplicationRole":{"type":"boolean","example":false,"description":"True if a user with this Role has access to all Application Versions"},"assignedToNonUsers":{"type":"boolean","example":false,"description":"True if this Role is currently assigned to entities that are not users(groups, organizations, etc.)"},"builtIn":{"type":"boolean","example":false,"description":"True if this Role is a default Fortify Role"},"default":{"type":"boolean"},"deletable":{"type":"boolean"},"description":{"type":"string"},"id":{"type":"string","readOnly":true},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32"},"permissionIds":{"type":"array","description":"Ids of the permissions this Role has","items":{"type":"string"}},"publishVersion":{"type":"integer","format":"int32"},"userOnly":{"type":"boolean","example":false,"description":"True if this Role can only be assigned to entities that are users"}},"description":"Role used by the server to determine user permissions"},"Rulepack Core":{"type":"object","required":["id","language","name","rulepackGUID","rulepackType","sku","version"],"properties":{"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"language":{"type":"string"},"locale":{"type":"string"},"name":{"type":"string"},"rulepackGUID":{"type":"string"},"rulepackType":{"type":"string","enum":["SCA","RTA","CATPACK"]},"sku":{"type":"string"},"version":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/definitions/Rulepack Core"}}},"description":"Rulepack Core DTO object"},"RulepacksBatchProcessStatus":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"Numeric processing code.","readOnly":true},"message":{"type":"string","description":"Processing message.","readOnly":true},"statuses":{"type":"array","description":"Child rulepacks processing statuses.","readOnly":true,"items":{"$ref":"#/definitions/RulepacksBatchProcessStatus"}}},"description":"Object represents rulepack processing status. This is readonly object."},"Saved Report":{"type":"object","required":["format","projects","reportDefinitionId","type"],"properties":{"_embed":{"$ref":"#/definitions/EmbeddedReportDefinition"},"authEntity":{"description":"The Fortify User or Ldap User associated with the report","$ref":"#/definitions/Report Auth Entity"},"format":{"type":"string","description":"Saved report output format","enum":["PDF","DOC","XLS"]},"formatDefaultText":{"type":"string","description":"Saved report output format default text"},"generationDate":{"type":"string","format":"date-time","description":"Generation date"},"id":{"type":"integer","format":"int64","readOnly":true},"inputReportParameters":{"type":"array","description":"List of report parameters","items":{"$ref":"#/definitions/Input Report Parameter"}},"isPublished":{"type":"boolean","example":false,"description":"Indicates whether saved report is published"},"name":{"type":"string"},"note":{"type":"string","description":"Saved report notes"},"projects":{"type":"array","description":"List of project versions","items":{"$ref":"#/definitions/Report Project"}},"published":{"type":"boolean"},"reportDefinitionId":{"type":"integer","format":"int64","description":"Report definition identifier"},"reportProjectsCount":{"type":"integer","format":"int32","description":"Count of report projects"},"status":{"type":"string","description":"Saved report status","enum":["Scheduled for Processing","Processing","Processing Complete","Error Processing"]},"statusDefaultText":{"type":"string","description":"Saved report status default text"},"type":{"type":"string","description":"Saved report type","enum":["Application Reports","SSA Application Reports","SSA Portfolio Reports","Portfolio Reports","Compliance Reports","Issue Reports","Runtime Application Reports"]},"typeDefaultText":{"type":"string","description":"Saved report type default text"}},"description":"Saved Report DTO object"},"Scan":{"type":"object","required":["artifactId","buildLabel","certification","elapsedTime","engineVersion","execLOC","fortifyAnnotationsLOC","guid","hostname","noOfFiles","totalLOC","type","uploadDate"],"properties":{"artifactId":{"type":"integer","format":"int64","description":"identifier of parent artifact object which contains this scan object","readOnly":true},"buildLabel":{"type":"string","description":"optional string identifier provided by the user when scanning","readOnly":true},"certification":{"type":"string","description":"indicates whether the checksum on the analysis result is valid","readOnly":true},"elapsedTime":{"type":"string","description":"analysis duration","readOnly":true},"engineVersion":{"type":"string","description":"version of analysis engine","readOnly":true},"execLOC":{"type":"integer","format":"int32","description":"total executable lines of code included in sources (excluding comments etc.)","readOnly":true},"fortifyAnnotationsLOC":{"type":"integer","format":"int32","description":"lines of code with annotations","readOnly":true},"guid":{"type":"string","description":"globally unique id of scan object","readOnly":true},"hostname":{"type":"string","readOnly":true},"id":{"type":"integer","format":"int64","readOnly":true},"noOfFiles":{"type":"integer","format":"int32","description":"number of source files included in scan","readOnly":true},"totalLOC":{"type":"integer","format":"int32","description":"total lines of code included in sources (includes comments etc.)","readOnly":true},"type":{"type":"string","description":"indicates the type of analyzer that produced it, such as SCA or WEBINSPECT","readOnly":true},"uploadDate":{"type":"string","format":"date-time","readOnly":true}},"description":"provides high-level information on the result of a single Fortify analysis, usually embedded inside an Artifact object"},"SearchIndexStatus":{"type":"object","properties":{"configured":{"type":"boolean","example":false,"description":"Is index configured","readOnly":true},"healthyIndex":{"type":"boolean","example":false,"description":"Is the index Healthy","readOnly":true},"indexingJobRunning":{"type":"boolean","example":false,"description":"Is the indexing job running","readOnly":true}},"description":"Status of search index"},"SelectorOption":{"type":"object","required":["displayName","guid","value"],"properties":{"displayName":{"type":"string","description":"Option's display name.","readOnly":true},"guid":{"type":"string","description":"Option's unique GUID.","readOnly":true},"value":{"type":"string","description":"Option's value that must be sent to backend when this option is selected.","readOnly":true}},"description":"Single option of IssueFilterSelector. Every filtering option is associated with some specific issue attribute's value."},"SourceFileDto":{"type":"object","required":["checksum","encoding","fileContent","filePath","languageName","projectVersionId"],"properties":{"checksum":{"type":"string","description":"Source file checksum.","readOnly":true},"encoding":{"type":"string","description":"Source file encoding.","readOnly":true},"fileContent":{"type":"string","description":"Scanned source file content.","readOnly":true},"filePath":{"type":"string","description":"Full path to source file on the machine where scan was performed.","readOnly":true},"languageName":{"type":"string","description":"Source file programming language name.","readOnly":true},"projectVersionId":{"type":"integer","format":"int64","description":"Project version identifier that contains this source file.","readOnly":true}},"description":"Source file content where vulnerabilities were found."},"System Configuration":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"Configuration name"},"value":{"type":"string","description":"Configuration value"}},"description":"System Configuration defined by key and values"},"TemplateItem":{"type":"object","additionalProperties":{"type":"object"}},"Token Definition":{"type":"object","properties":{"capabilityDescription":{"type":"string","description":"Describes what tokens generated from this token specification can be used for. Note that these capabilities are subordinate to the actual roles/permissions granted to the owner of the token","readOnly":true},"maxDaysToLive":{"type":"integer","format":"int32","description":"Maximum allowable lifetime (in days) of token","readOnly":true},"maxUsages":{"type":"integer","format":"int32","description":"Maximum number of api calls that can be made using this token type. A value of -1 denotes unlimited number of calls.","readOnly":true},"type":{"type":"string","description":"Token type","readOnly":true}},"description":"Metadata of a Software Security Center token"},"TraceNodeDto":{"type":"object","required":["childNodes","detail","evidence","file","fullPath","line","nodeType","primary","text","toolTip"],"properties":{"childNodes":{"type":"array","description":"Child nodes of the current node.","readOnly":true,"items":{"$ref":"#/definitions/TraceNodeDto"}},"detail":{"type":"boolean","example":false,"description":"Detail node marker.","readOnly":true},"evidence":{"type":"string","description":"Node evidence text.","readOnly":true},"file":{"type":"string","description":"Name of the file associated with this node.","readOnly":true},"fullPath":{"type":"string","description":"Full path to source file associated with this node.","readOnly":true},"line":{"type":"integer","format":"int32","description":"Source file line number where issue was found.","readOnly":true},"nodeType":{"type":"string","description":"Type of the trace node.","readOnly":true,"enum":["IN_CALL","OUT_CALL","IN_OUT_CALL","READ","READ_GLOBAL","ASSIGN","ASSIGN_GLOBAL","ALIAS","COMPARE","RETURN","REF","DEREF","END_SCOPE","JUMP","BRANCH_TAKEN","BRANCH_NOT_TAKEN","EXTERNAL_ENTRY","RUNTIME_SINK","RUNTIME_SOURCE","RUNTIME_VALIDATION","RUNTIME_TRACE","TRACE_RUNTIME_SOURCE","TRACE_RUNTIME_SINK","TAINT_CHANGE","GENERIC"]},"primary":{"type":"boolean","example":false,"description":"Primry node marker.","readOnly":true},"text":{"type":"string","description":"Node display text.","readOnly":true},"toolTip":{"type":"string","description":"Node description/tooltip.","readOnly":true}},"description":"Issue analysis trace node DTO."},"Trigger":{"type":"object","properties":{"length":{"type":"integer","format":"int32"},"location":{"type":"integer","format":"int32"},"triggerString":{"type":"string"}},"description":"Trigger in a request or response that identifies a vulnerability"},"User photo":{"type":"object","required":["photo","photoMimeType"],"properties":{"photo":{"type":"string","format":"byte","description":"Photo in byte array"},"photoMimeType":{"type":"string","description":"Mime type of user photo. Eg .bmp, .jpg etc"}},"description":"User photo object"},"User preferences":{"type":"object","required":["dateFormat","email","emailAlerts","monitorAllRuntimeApps","projectVersionListMode","receiveRuntimeAlerts","runtimeAlertDefinitionId","timeFormat","username"],"properties":{"dateFormat":{"type":"string","description":"Preferred date format"},"email":{"type":"string","description":"User email"},"emailAlerts":{"type":"boolean","example":false,"description":"Receive email alerts if set to true"},"monitorAllRuntimeApps":{"type":"boolean","example":false,"description":"Monitors all runtime applications if set to true"},"projectVersionListMode":{"type":"string","description":"Enum for ProjectVersionListMode with values DEFAULT, CUSTOM, ALL"},"receiveRuntimeAlerts":{"type":"boolean","example":false,"description":"Receive runtime alerts if set to true"},"runtimeAlertDefinitionId":{"type":"integer","format":"int64","description":"Runtime alert definition identifier"},"timeFormat":{"type":"string","description":"Preferred time format"},"username":{"type":"string","description":"User name"}},"description":"Object containing user preferences such as date/time format"},"User session information":{"type":"object","required":["applicationContextPath","cloudScanConfig","collabModuleEnabled","displayUserDetails","email","firstName","fortifyUserType","lastName","licenseCapabilities","onDemandMode","permissions","preferences","roles","sessionId","userPhoto","userType","username","webappVersion","wieConfig"],"properties":{"applicationContextPath":{"type":"string","description":"Application context path"},"cloudScanConfig":{"description":"Cloud scan configuration","$ref":"#/definitions/CloudScanConfig"},"collabModuleEnabled":{"type":"boolean","example":false,"description":"Set to true if collaboration module is enabled"},"displayUserDetails":{"type":"boolean","example":false,"description":"Display user details if set to true"},"email":{"type":"string","description":"User email"},"firstName":{"type":"string","description":"User first name"},"fortifyUserType":{"type":"string","description":"Fortify user type eg. LOCAL"},"lastName":{"type":"string","description":"User last name"},"licenseCapabilities":{"type":"array","description":"List of license capabilities","items":{"$ref":"#/definitions/License capability"}},"onDemandMode":{"type":"boolean","example":false,"description":"Set to true if on demand mode is enabled"},"permissions":{"type":"array","description":"User permissions","items":{"type":"string"}},"preferences":{"description":"User preferences","$ref":"#/definitions/User preferences"},"roles":{"type":"array","description":"User roles","items":{"$ref":"#/definitions/Role"}},"sessionId":{"type":"string","description":"User session id"},"userPhoto":{"description":"User Photo","$ref":"#/definitions/User photo"},"userType":{"type":"integer","format":"int32","description":"User Type integer eg. 0 for Local"},"username":{"type":"string","description":"User name"},"webappVersion":{"type":"string","description":"Web application version"},"wieConfig":{"description":"WebInspect enterprise configuration","$ref":"#/definitions/WIE Configuration"}},"description":"Object containing user session information"},"UserIssueSearchOptions":{"type":"object","properties":{"includeCommentsInHistory":{"type":"boolean","example":false,"description":"If 'true', comments are included in issue audit history. Used only by flex UI."},"projectVersionId":{"type":"integer","format":"int64","description":"Application version ID the option values belong to. Value is empty for default options that can be applied to any project version user has access to if project version specific options are not defined."},"showHidden":{"type":"boolean","example":false,"description":"If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option."},"showRemoved":{"type":"boolean","example":false,"description":"If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option."},"showShortFileNames":{"type":"boolean","example":false,"description":"If 'true', only short file names will be displayed in issues list."},"showSuppressed":{"type":"boolean","example":false,"description":"If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option."}},"description":"User specific options that can be used for customizing issue search result."},"UserSessionState":{"type":"object","required":["category","name","username"],"properties":{"category":{"type":"string"},"id":{"type":"integer","format":"int64","readOnly":true},"name":{"type":"string"},"projectVersionId":{"type":"integer","format":"int64"},"username":{"type":"string"},"value":{"type":"string"}},"description":"User session state is used to persist UI state"},"Validation Request":{"type":"object","required":["stringToValidate"],"properties":{"stringToValidate":{"type":"string","description":"String to validate"}},"description":"Validation Request DTO object"},"Validation Status":{"type":"object","required":["msg","valid"],"properties":{"msg":{"type":"string","description":"Validation status message"},"valid":{"type":"boolean","example":false,"description":"Indicates whether validation was successful"}},"description":"Validation Status DTO object"},"Variable":{"type":"object","required":["folderName","name","searchString"],"properties":{"attributeForOperation":{"type":"string"},"description":{"type":"string"},"folderName":{"type":"string","description":"Select a folder from the default filter set to associate with the variable."},"guid":{"type":"string"},"id":{"type":"integer","format":"int64","readOnly":true},"inUse":{"type":"boolean"},"name":{"type":"string"},"objectVersion":{"type":"integer","format":"int32"},"operation":{"type":"string","enum":["COUNT","SUM"]},"publishVersion":{"type":"integer","format":"int32"},"searchString":{"type":"string","example":"[Fortify Priority Order]:critical audited:false"},"variableType":{"type":"string","enum":["SYSTEM_DEFINED","USER_DEFINED"]}},"description":"Variables count issues, conditions, and other categories of numeric data."},"Variable History":{"type":"object","required":["name","timestamp","value"],"properties":{"id":{"type":"string","description":"Variable id","readOnly":true},"name":{"type":"string","description":"Variable Name"},"timestamp":{"type":"string","format":"date-time","description":"The Date the variable value was taken"},"value":{"type":"integer","format":"int32","description":"Variable value"}},"description":"An instance of a variable in an Application Version's snapshot."},"WIE Configuration":{"type":"object","required":["wieInstanceUrl","wieRegistered"],"properties":{"wieInstanceUrl":{"type":"string","description":"WebInspect Enterprise url"},"wieRegistered":{"type":"boolean","example":false,"description":"Set to true if WebInspect Enterprise is registered"}},"description":"WebInspect enterprise configuration object"},"customTagInfo":{"type":"object","required":["id"],"properties":{"guid":{"type":"string","description":"Custom tag GUID","readOnly":true},"id":{"type":"integer","format":"int64","description":"Custom tag id"},"name":{"type":"string","description":"Custom tag unique name","readOnly":true},"valueList":{"type":"array","description":"Collection of custom tag values","items":{"$ref":"#/definitions/customTagLookupInfo"}}},"description":"Holds the details about existed custom tag that is assigned or linked with some other entity"},"customTagLookupInfo":{"type":"object","required":["lookupIndex"],"properties":{"lookupIndex":{"type":"integer","format":"int32","description":"Current value index in values list"},"lookupValue":{"type":"string","description":"Plain text custom tag value","readOnly":true}},"description":"Holds the details about existed list custom tag value that is assigned or linked with some other entity"},"scan error":{"type":"object","required":["errorCode","errorDescription","id","scanId"],"properties":{"errorCode":{"type":"string","readOnly":true},"errorDescription":{"type":"string","readOnly":true},"id":{"type":"integer","format":"int64","readOnly":true},"scanId":{"type":"integer","format":"int64","description":"id of scan associated with the error","readOnly":true}},"description":"error reported by SCA during the scan"}}} \ No newline at end of file diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml new file mode 100644 index 0000000..9fc21b3 --- /dev/null +++ b/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/src/main/java/com/fortify/ssc/restclient/ApiCallback.java b/src/main/java/com/fortify/ssc/restclient/ApiCallback.java new file mode 100644 index 0000000..ea853d6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ApiCallback.java @@ -0,0 +1,62 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import java.io.IOException; + +import java.util.Map; +import java.util.List; + +/** + * Callback for asynchronous API call. + * + * @param The return type + */ +public interface ApiCallback { + /** + * This is called when the API call fails. + * + * @param e The exception causing the failure + * @param statusCode Status code of the response if available, otherwise it would be 0 + * @param responseHeaders Headers of the response if available, otherwise it would be null + */ + void onFailure(ApiException e, int statusCode, Map> responseHeaders); + + /** + * This is called when the API call succeeded. + * + * @param result The result deserialized from response + * @param statusCode Status code of the response + * @param responseHeaders Headers of the response + */ + void onSuccess(T result, int statusCode, Map> responseHeaders); + + /** + * This is called when the API upload processing. + * + * @param bytesWritten bytes Written + * @param contentLength content length of request body + * @param done write end + */ + void onUploadProgress(long bytesWritten, long contentLength, boolean done); + + /** + * This is called when the API downlond processing. + * + * @param bytesRead bytes Read + * @param contentLength content lenngth of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); +} diff --git a/src/main/java/com/fortify/ssc/restclient/ApiClient.java b/src/main/java/com/fortify/ssc/restclient/ApiClient.java new file mode 100644 index 0000000..9141a85 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ApiClient.java @@ -0,0 +1,1207 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import com.squareup.okhttp.*; +import com.squareup.okhttp.internal.http.HttpMethod; +import com.squareup.okhttp.logging.HttpLoggingInterceptor; +import com.squareup.okhttp.logging.HttpLoggingInterceptor.Level; +import okio.BufferedSink; +import okio.Okio; +import org.threeten.bp.LocalDate; +import org.threeten.bp.OffsetDateTime; +import org.threeten.bp.format.DateTimeFormatter; + +import javax.net.ssl.*; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; +import java.lang.reflect.Type; +import java.net.URLConnection; +import java.net.URLEncoder; +import java.security.GeneralSecurityException; +import java.security.KeyStore; +import java.security.SecureRandom; +import java.security.cert.Certificate; +import java.security.cert.CertificateException; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; +import java.text.DateFormat; +import java.util.*; +import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import com.fortify.ssc.restclient.auth.Authentication; +import com.fortify.ssc.restclient.auth.HttpBasicAuth; +import com.fortify.ssc.restclient.auth.ApiKeyAuth; +import com.fortify.ssc.restclient.auth.OAuth; + +public class ApiClient { + + private String basePath = "https://16.40.6.107:8080/ssc/api/v1"; + private boolean debugging = false; + private Map defaultHeaderMap = new HashMap(); + private String tempFolderPath = null; + + private Map authentications; + + private DateFormat dateFormat; + private DateFormat datetimeFormat; + private boolean lenientDatetimeFormat; + private int dateLength; + + private InputStream sslCaCert; + private boolean verifyingSsl; + private KeyManager[] keyManagers; + + private OkHttpClient httpClient; + private JSON json; + + private HttpLoggingInterceptor loggingInterceptor; + + /* + * Constructor for ApiClient + */ + public ApiClient() { + httpClient = new OkHttpClient(); + + + verifyingSsl = true; + + json = new JSON(); + + // Set default User-Agent. + setUserAgent("Swagger-Codegen/2.0/java"); + + // Setup authentications (key: authentication name, value: authentication). + authentications = new HashMap(); + authentications.put("Basic", new HttpBasicAuth()); + authentications.put("FortifyToken", new ApiKeyAuth("header", "Authorization")); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Get base path + * + * @return Baes path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g https://16.40.6.107:8080/ssc/api/v1 + * @return An instance of OkHttpClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client + * + * @param httpClient An instance of OkHttpClient + * @return Api Client + */ + public ApiClient setHttpClient(OkHttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /** + * Get JSON + * + * @return JSON object + */ + public JSON getJSON() { + return json; + } + + /** + * Set JSON + * + * @param json JSON object + * @return Api client + */ + public ApiClient setJSON(JSON json) { + this.json = json; + return this; + } + + /** + * True if isVerifyingSsl flag is on + * + * @return True if isVerifySsl flag is on + */ + public boolean isVerifyingSsl() { + return verifyingSsl; + } + + /** + * Configure whether to verify certificate and hostname when making https requests. + * Default to true. + * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * + * @param verifyingSsl True to verify TLS/SSL connection + * @return ApiClient + */ + public ApiClient setVerifyingSsl(boolean verifyingSsl) { + this.verifyingSsl = verifyingSsl; + applySslSettings(); + return this; + } + + /** + * Get SSL CA cert. + * + * @return Input stream to the SSL CA cert + */ + public InputStream getSslCaCert() { + return sslCaCert; + } + + /** + * Configure the CA certificate to be trusted when making https requests. + * Use null to reset to default. + * + * @param sslCaCert input stream for SSL CA cert + * @return ApiClient + */ + public ApiClient setSslCaCert(InputStream sslCaCert) { + this.sslCaCert = sslCaCert; + applySslSettings(); + return this; + } + + public KeyManager[] getKeyManagers() { + return keyManagers; + } + + /** + * Configure client keys to use for authorization in an SSL session. + * Use null to reset to default. + * + * @param managers The KeyManagers to use + * @return ApiClient + */ + public ApiClient setKeyManagers(KeyManager[] managers) { + this.keyManagers = managers; + applySslSettings(); + return this; + } + + public DateFormat getDateFormat() { + return dateFormat; + } + + public ApiClient setDateFormat(DateFormat dateFormat) { + this.json.setDateFormat(dateFormat); + return this; + } + + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + this.json.setSqlDateFormat(dateFormat); + return this; + } + + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + this.json.setOffsetDateTimeFormat(dateFormat); + return this; + } + + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + this.json.setLocalDateFormat(dateFormat); + return this; + } + + public ApiClient setLenientOnJson(boolean lenientOnJson) { + this.json.setLenientOnJson(lenientOnJson); + return this; + } + + /** + * Get authentications (key: authentication name, value: authentication). + * + * @return Map of authentication objects + */ + public Map getAuthentications() { + return authentications; + } + + /** + * Get authentication for the given name. + * + * @param authName The authentication name + * @return The authentication, null if not found + */ + public Authentication getAuthentication(String authName) { + return authentications.get(authName); + } + + /** + * Helper method to set username for the first HTTP basic authentication. + * + * @param username Username + */ + public void setUsername(String username) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setUsername(username); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set password for the first HTTP basic authentication. + * + * @param password Password + */ + public void setPassword(String password) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setPassword(password); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set API key value for the first API key authentication. + * + * @param apiKey API key + */ + public void setApiKey(String apiKey) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKey(apiKey); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set API key prefix for the first API key authentication. + * + * @param apiKeyPrefix API key prefix + */ + public void setApiKeyPrefix(String apiKeyPrefix) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set access token for the first OAuth2 authentication. + * + * @param accessToken Access token + */ + public void setAccessToken(String accessToken) { + for (Authentication auth : authentications.values()) { + if (auth instanceof OAuth) { + ((OAuth) auth).setAccessToken(accessToken); + return; + } + } + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Set the User-Agent header's value (by adding to the default header map). + * + * @param userAgent HTTP request's user agent + * @return ApiClient + */ + public ApiClient setUserAgent(String userAgent) { + addDefaultHeader("User-Agent", userAgent); + return this; + } + + /** + * Add a default header. + * + * @param key The header's key + * @param value The header's value + * @return ApiClient + */ + public ApiClient addDefaultHeader(String key, String value) { + defaultHeaderMap.put(key, value); + return this; + } + + /** + * Check that whether debugging is enabled for this API client. + * + * @return True if debugging is enabled, false otherwise. + */ + public boolean isDebugging() { + return debugging; + } + + /** + * Enable/disable debugging for this API client. + * + * @param debugging To enable (true) or disable (false) debugging + * @return ApiClient + */ + public ApiClient setDebugging(boolean debugging) { + if (debugging != this.debugging) { + if (debugging) { + loggingInterceptor = new HttpLoggingInterceptor(); + loggingInterceptor.setLevel(Level.BODY); + httpClient.interceptors().add(loggingInterceptor); + } else { + httpClient.interceptors().remove(loggingInterceptor); + loggingInterceptor = null; + } + } + this.debugging = debugging; + return this; + } + + /** + * The path of temporary folder used to store downloaded files from endpoints + * with file response. The default value is null, i.e. using + * the system's default tempopary folder. + * + * @see createTempFile + * @return Temporary folder path + */ + public String getTempFolderPath() { + return tempFolderPath; + } + + /** + * Set the temporary folder path (for downloading files) + * + * @param tempFolderPath Temporary folder path + * @return ApiClient + */ + public ApiClient setTempFolderPath(String tempFolderPath) { + this.tempFolderPath = tempFolderPath; + return this; + } + + /** + * Get connection timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getConnectTimeout() { + return httpClient.getConnectTimeout(); + } + + /** + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient.setConnectTimeout(connectionTimeout, TimeUnit.MILLISECONDS); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.getReadTimeout(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient.setReadTimeout(readTimeout, TimeUnit.MILLISECONDS); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.getWriteTimeout(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient.setWriteTimeout(writeTimeout, TimeUnit.MILLISECONDS); + return this; + } + + /** + * Format the given parameter object into string. + * + * @param param Parameter + * @return String representation of the parameter + */ + public String parameterToString(Object param) { + if (param == null) { + return ""; + } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { + //Serialize to json string and remove the " enclosing characters + String jsonStr = json.serialize(param); + return jsonStr.substring(1, jsonStr.length() - 1); + } else if (param instanceof Collection) { + StringBuilder b = new StringBuilder(); + for (Object o : (Collection)param) { + if (b.length() > 0) { + b.append(","); + } + b.append(String.valueOf(o)); + } + return b.toString(); + } else { + return String.valueOf(param); + } + } + + /** + * Formats the specified query parameter to a list containing a single {@code Pair} object. + * + * Note that {@code value} must not be a collection. + * + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list containing a single {@code Pair} object. + */ + public List parameterToPair(String name, Object value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value instanceof Collection) return params; + + params.add(new Pair(name, parameterToString(value))); + return params; + } + + /** + * Formats the specified collection query parameters to a list of {@code Pair} objects. + * + * Note that the values of each of the returned Pair objects are percent-encoded. + * + * @param collectionFormat The collection format of the parameter. + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list of {@code Pair} objects. + */ + public List parameterToPairs(String collectionFormat, String name, Collection value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value.isEmpty()) { + return params; + } + + // create the params based on the collection format + if ("multi".equals(collectionFormat)) { + for (Object item : value) { + params.add(new Pair(name, escapeString(parameterToString(item)))); + } + return params; + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + // escape all delimiters except commas, which are URI reserved + // characters + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : value) { + sb.append(delimiter); + sb.append(escapeString(parameterToString(item))); + } + + params.add(new Pair(name, sb.substring(delimiter.length()))); + + return params; + } + + /** + * Sanitize filename by removing path. + * e.g. ../../sun.gif becomes sun.gif + * + * @param filename The filename to be sanitized + * @return The sanitized filename + */ + public String sanitizeFilename(String filename) { + return filename.replaceAll(".*[/\\\\]", ""); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * "* / *" is also default to JSON + * @param mime MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public boolean isJsonMime(String mime) { + String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; + return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); + } + + /** + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) + * + * @param accepts The accepts array to select from + * @return The Accept header to use. If the given array is empty, + * null will be returned (not to set the Accept header explicitly). + */ + public String selectHeaderAccept(String[] accepts) { + if (accepts.length == 0) { + return null; + } + for (String accept : accepts) { + if (isJsonMime(accept)) { + return accept; + } + } + return StringUtil.join(accepts, ","); + } + + /** + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. + * + * @param contentTypes The Content-Type array to select from + * @return The Content-Type header to use. If the given array is empty, + * or matches "any", JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { + return "application/json"; + } + for (String contentType : contentTypes) { + if (isJsonMime(contentType)) { + return contentType; + } + } + return contentTypes[0]; + } + + /** + * Escape the given string to be used as URL query value. + * + * @param str String to be escaped + * @return Escaped string + */ + public String escapeString(String str) { + try { + return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); + } catch (UnsupportedEncodingException e) { + return str; + } + } + + /** + * Deserialize response body to Java object, according to the return type and + * the Content-Type response header. + * + * @param Type + * @param response HTTP response + * @param returnType The type of the Java object + * @return The deserialized Java object + * @throws ApiException If fail to deserialize response body, i.e. cannot read response body + * or the Content-Type of the response is not supported. + */ + @SuppressWarnings("unchecked") + public T deserialize(Response response, Type returnType) throws ApiException { + if (response == null || returnType == null) { + return null; + } + + if ("byte[]".equals(returnType.toString())) { + // Handle binary response (byte array). + try { + return (T) response.body().bytes(); + } catch (IOException e) { + throw new ApiException(e); + } + } else if (returnType.equals(File.class)) { + // Handle file downloading. + return (T) downloadFileFromResponse(response); + } + + String respBody; + try { + if (response.body() != null) + respBody = response.body().string(); + else + respBody = null; + } catch (IOException e) { + throw new ApiException(e); + } + + if (respBody == null || "".equals(respBody)) { + return null; + } + + String contentType = response.headers().get("Content-Type"); + if (contentType == null) { + // ensuring a default content type + contentType = "application/json"; + } + if (isJsonMime(contentType)) { + return json.deserialize(respBody, returnType); + } else if (returnType.equals(String.class)) { + // Expecting string, return the raw response body. + return (T) respBody; + } else { + throw new ApiException( + "Content type \"" + contentType + "\" is not supported for type: " + returnType, + response.code(), + response.headers().toMultimap(), + respBody); + } + } + + /** + * Serialize the given Java object into request body according to the object's + * class and the request Content-Type. + * + * @param obj The Java object + * @param contentType The request Content-Type + * @return The serialized request body + * @throws ApiException If fail to serialize the given object + */ + public RequestBody serialize(Object obj, String contentType) throws ApiException { + if (obj instanceof byte[]) { + // Binary (byte array) body parameter support. + return RequestBody.create(MediaType.parse(contentType), (byte[]) obj); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create(MediaType.parse(contentType), (File) obj); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = json.serialize(obj); + } else { + content = null; + } + return RequestBody.create(MediaType.parse(contentType), content); + } else { + throw new ApiException("Content type \"" + contentType + "\" is not supported"); + } + } + + /** + * Download file from the given response. + * + * @param response An instance of the Response object + * @throws ApiException If fail to read file content from response and write to disk + * @return Downloaded file + */ + public File downloadFileFromResponse(Response response) throws ApiException { + try { + File file = prepareDownloadFile(response); + BufferedSink sink = Okio.buffer(Okio.sink(file)); + sink.writeAll(response.body().source()); + sink.close(); + return file; + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * Prepare file for download + * + * @param response An instance of the Response object + * @throws IOException If fail to prepare file for download + * @return Prepared file for the download + */ + public File prepareDownloadFile(Response response) throws IOException { + String filename = null; + String contentDisposition = response.header("Content-Disposition"); + if (contentDisposition != null && !"".equals(contentDisposition)) { + // Get filename from the Content-Disposition header. + Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); + Matcher matcher = pattern.matcher(contentDisposition); + if (matcher.find()) { + filename = sanitizeFilename(matcher.group(1)); + } + } + + String prefix = null; + String suffix = null; + if (filename == null) { + prefix = "download-"; + suffix = ""; + } else { + int pos = filename.lastIndexOf("."); + if (pos == -1) { + prefix = filename + "-"; + } else { + prefix = filename.substring(0, pos) + "-"; + suffix = filename.substring(pos); + } + // File.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return File.createTempFile(prefix, suffix); + else + return File.createTempFile(prefix, suffix, new File(tempFolderPath)); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @throws ApiException If fail to execute the call + * @return ApiResponse<T> + */ + public ApiResponse execute(Call call) throws ApiException { + return execute(call, null); + } + + /** + * Execute HTTP call and deserialize the HTTP response body into the given return type. + * + * @param returnType The return type used to deserialize HTTP response body + * @param The return type corresponding to (same with) returnType + * @param call Call + * @return ApiResponse object containing response status, headers and + * data, which is a Java object deserialized from response body and would be null + * when returnType is null. + * @throws ApiException If fail to execute the call + */ + public ApiResponse execute(Call call, Type returnType) throws ApiException { + try { + Response response = call.execute(); + T data = handleResponse(response, returnType); + return new ApiResponse(response.code(), response.headers().toMultimap(), data); + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * {@link #executeAsync(Call, Type, ApiCallback)} + * + * @param Type + * @param call An instance of the Call object + * @param callback ApiCallback<T> + */ + public void executeAsync(Call call, ApiCallback callback) { + executeAsync(call, null, callback); + } + + /** + * Execute HTTP call asynchronously. + * + * @see #execute(Call, Type) + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Request request, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Response response) throws IOException { + T result; + try { + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } + callback.onSuccess(result, response.code(), response.headers().toMultimap()); + } + }); + } + + /** + * Handle the given response, return the deserialized object when the response is successful. + * + * @param Type + * @param response Response + * @param returnType Return type + * @throws ApiException If the response has a unsuccessful status code or + * fail to deserialize the response body + * @return Type + */ + public T handleResponse(Response response, Type returnType) throws ApiException { + if (response.isSuccessful()) { + if (returnType == null || response.code() == 204) { + // returning null if the returnType is not defined, + // or the status code is 204 (No Content) + if (response.body() != null) { + try { + response.body().close(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + return null; + } else { + return deserialize(response, returnType); + } + } else { + String respBody = null; + if (response.body() != null) { + try { + respBody = response.body().string(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); + } + } + + /** + * Build HTTP call with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param progressRequestListener Progress request listener + * @return The HTTP call + * @throws ApiException If fail to serialize the request body object + */ + public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, formParams, authNames, progressRequestListener); + + return httpClient.newCall(request); + } + + /** + * Build an HTTP request with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param progressRequestListener Progress request listener + * @return The HTTP request + * @throws ApiException If fail to serialize the request body object + */ + public Request buildRequest(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + updateParamsForAuth(authNames, queryParams, headerParams); + + final String url = buildUrl(path, queryParams, collectionQueryParams); + final Request.Builder reqBuilder = new Request.Builder().url(url); + processHeaderParams(headerParams, reqBuilder); + + String contentType = (String) headerParams.get("Content-Type"); + // ensuring a default content type + if (contentType == null) { + contentType = "application/json"; + } + + RequestBody reqBody; + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentType)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentType)) { + reqBody = buildRequestBodyMultipart(formParams); + } else if (body == null) { + if ("DELETE".equals(method)) { + // allow calling DELETE without sending a request body + reqBody = null; + } else { + // use an empty request body (for POST, PUT and PATCH) + reqBody = RequestBody.create(MediaType.parse(contentType), ""); + } + } else { + reqBody = serialize(body, contentType); + } + + Request request = null; + + if(progressRequestListener != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener); + request = reqBuilder.method(method, progressRequestBody).build(); + } else { + request = reqBuilder.method(method, reqBody).build(); + } + + return request; + } + + /** + * Build full URL by concatenating base path, the given sub path and query parameters. + * + * @param path The sub path + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @return The full URL + */ + public String buildUrl(String path, List queryParams, List collectionQueryParams) { + final StringBuilder url = new StringBuilder(); + url.append(basePath).append(path); + + if (queryParams != null && !queryParams.isEmpty()) { + // support (constant) query string in `path`, e.g. "/posts?draft=1" + String prefix = path.contains("?") ? "&" : "?"; + for (Pair param : queryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + url.append(escapeString(param.getName())).append("=").append(escapeString(value)); + } + } + } + + if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { + String prefix = url.toString().contains("?") ? "&" : "?"; + for (Pair param : collectionQueryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + // collection query parameter value already escaped as part of parameterToPairs + url.append(escapeString(param.getName())).append("=").append(value); + } + } + } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the ofrm of Map + * @param reqBuilder Reqeust.Builder + */ + public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { + for (Entry param : headerParams.entrySet()) { + reqBuilder.header(param.getKey(), parameterToString(param.getValue())); + } + for (Entry header : defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(header.getKey())) { + reqBuilder.header(header.getKey(), parameterToString(header.getValue())); + } + } + } + + /** + * Update query and header parameters based on authentication settings. + * + * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + */ + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) throw new RuntimeException("Authentication undefined: " + authName); + auth.applyToParams(queryParams, headerParams); + } + } + + /** + * Build a form-encoding request body with the given form parameters. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyFormEncoding(Map formParams) { + FormEncodingBuilder formBuilder = new FormEncodingBuilder(); + for (Entry param : formParams.entrySet()) { + formBuilder.add(param.getKey(), parameterToString(param.getValue())); + } + return formBuilder.build(); + } + + /** + * Build a multipart (file uploading) request body with the given form parameters, + * which could contain text fields and file fields. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyMultipart(Map formParams) { + MultipartBuilder mpBuilder = new MultipartBuilder().type(MultipartBuilder.FORM); + for (Entry param : formParams.entrySet()) { + if (param.getValue() instanceof File) { + File file = (File) param.getValue(); + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(mediaType, file)); + } else { + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); + mpBuilder.addPart(partHeaders, RequestBody.create(null, parameterToString(param.getValue()))); + } + } + return mpBuilder.build(); + } + + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + public String guessContentTypeFromFile(File file) { + String contentType = URLConnection.guessContentTypeFromName(file.getName()); + if (contentType == null) { + return "application/octet-stream"; + } else { + return contentType; + } + } + + /** + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. + */ + private void applySslSettings() { + try { + TrustManager[] trustManagers = null; + HostnameVerifier hostnameVerifier = null; + if (!verifyingSsl) { + TrustManager trustAll = new X509TrustManager() { + @Override + public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {} + @Override + public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {} + @Override + public X509Certificate[] getAcceptedIssuers() { return null; } + }; + SSLContext sslContext = SSLContext.getInstance("TLS"); + trustManagers = new TrustManager[]{ trustAll }; + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { return true; } + }; + } else if (sslCaCert != null) { + char[] password = null; // Any password will work. + CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); + Collection certificates = certificateFactory.generateCertificates(sslCaCert); + if (certificates.isEmpty()) { + throw new IllegalArgumentException("expected non-empty set of trusted certificates"); + } + KeyStore caKeyStore = newEmptyKeyStore(password); + int index = 0; + for (Certificate certificate : certificates) { + String certificateAlias = "ca" + Integer.toString(index++); + caKeyStore.setCertificateEntry(certificateAlias, certificate); + } + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + trustManagerFactory.init(caKeyStore); + trustManagers = trustManagerFactory.getTrustManagers(); + } + + if (keyManagers != null || trustManagers != null) { + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient.setSslSocketFactory(sslContext.getSocketFactory()); + } else { + httpClient.setSslSocketFactory(null); + } + httpClient.setHostnameVerifier(hostnameVerifier); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + try { + KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + keyStore.load(null, password); + return keyStore; + } catch (IOException e) { + throw new AssertionError(e); + } + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/ApiException.java b/src/main/java/com/fortify/ssc/restclient/ApiException.java new file mode 100644 index 0000000..a65aa81 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ApiException.java @@ -0,0 +1,91 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiException extends Exception { + private int code = 0; + private Map> responseHeaders = null; + private String responseBody = null; + + public ApiException() {} + + public ApiException(Throwable throwable) { + super(throwable); + } + + public ApiException(String message) { + super(message); + } + + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { + super(message, throwable); + this.code = code; + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + public ApiException(String message, int code, Map> responseHeaders, String responseBody) { + this(message, (Throwable) null, code, responseHeaders, responseBody); + } + + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { + this(message, throwable, code, responseHeaders, null); + } + + public ApiException(int code, Map> responseHeaders, String responseBody) { + this((String) null, (Throwable) null, code, responseHeaders, responseBody); + } + + public ApiException(int code, String message) { + super(message); + this.code = code; + } + + public ApiException(int code, String message, Map> responseHeaders, String responseBody) { + this(code, message); + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + * Get the HTTP status code. + * + * @return HTTP status code + */ + public int getCode() { + return code; + } + + /** + * Get the HTTP response headers. + * + * @return A map of list of string + */ + public Map> getResponseHeaders() { + return responseHeaders; + } + + /** + * Get the HTTP response body. + * + * @return Response body in the form of string + */ + public String getResponseBody() { + return responseBody; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/ApiResponse.java b/src/main/java/com/fortify/ssc/restclient/ApiResponse.java new file mode 100644 index 0000000..dcf076f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ApiResponse.java @@ -0,0 +1,59 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import java.util.List; +import java.util.Map; + +/** + * API response returned by API call. + * + * @param The type of data that is deserialized from response body + */ +public class ApiResponse { + final private int statusCode; + final private Map> headers; + final private T data; + + /** + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + */ + public ApiResponse(int statusCode, Map> headers) { + this(statusCode, headers, null); + } + + /** + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + * @param data The object deserialized from response bod + */ + public ApiResponse(int statusCode, Map> headers, T data) { + this.statusCode = statusCode; + this.headers = headers; + this.data = data; + } + + public int getStatusCode() { + return statusCode; + } + + public Map> getHeaders() { + return headers; + } + + public T getData() { + return data; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/Configuration.java b/src/main/java/com/fortify/ssc/restclient/Configuration.java new file mode 100644 index 0000000..12805b2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/Configuration.java @@ -0,0 +1,39 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Configuration { + private static ApiClient defaultApiClient = new ApiClient(); + + /** + * Get the default API client, which would be used when creating API + * instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + return defaultApiClient; + } + + /** + * Set the default API client, which would be used when creating API + * instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient = apiClient; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/GzipRequestInterceptor.java b/src/main/java/com/fortify/ssc/restclient/GzipRequestInterceptor.java new file mode 100644 index 0000000..f8025ff --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/GzipRequestInterceptor.java @@ -0,0 +1,81 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import com.squareup.okhttp.*; +import okio.Buffer; +import okio.BufferedSink; +import okio.GzipSink; +import okio.Okio; + +import java.io.IOException; + +/** + * Encodes request bodies using gzip. + * + * Taken from https://github.com/square/okhttp/issues/350 + */ +class GzipRequestInterceptor implements Interceptor { + @Override public Response intercept(Chain chain) throws IOException { + Request originalRequest = chain.request(); + if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { + return chain.proceed(originalRequest); + } + + Request compressedRequest = originalRequest.newBuilder() + .header("Content-Encoding", "gzip") + .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) + .build(); + return chain.proceed(compressedRequest); + } + + private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return new RequestBody() { + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() { + return buffer.size(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + sink.write(buffer.snapshot()); + } + }; + } + + private RequestBody gzip(final RequestBody body) { + return new RequestBody() { + @Override public MediaType contentType() { + return body.contentType(); + } + + @Override public long contentLength() { + return -1; // We don't know the compressed length in advance! + } + + @Override public void writeTo(BufferedSink sink) throws IOException { + BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); + body.writeTo(gzipSink); + gzipSink.close(); + } + }; + } +} \ No newline at end of file diff --git a/src/main/java/com/fortify/ssc/restclient/JSON.java b/src/main/java/com/fortify/ssc/restclient/JSON.java new file mode 100644 index 0000000..0fdd2fc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/JSON.java @@ -0,0 +1,362 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; +import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; +import org.threeten.bp.LocalDate; +import org.threeten.bp.OffsetDateTime; +import org.threeten.bp.format.DateTimeFormatter; + +import com.fortify.ssc.restclient.model.*; + +import java.io.IOException; +import java.io.StringReader; +import java.lang.reflect.Type; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.ParsePosition; +import java.util.Date; +import java.util.Map; +import java.util.HashMap; + +public class JSON { + private Gson gson; + private boolean isLenientOnJson = false; + private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; + return fireBuilder.createGsonBuilder(); + } + + private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { + JsonElement element = readElement.getAsJsonObject().get(discriminatorField); + if(null == element) { + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); + } + return element.getAsString(); + } + + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue.toUpperCase()); + if(null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; + } + + public JSON() { + gson = createGson() + .registerTypeAdapter(Date.class, dateTypeAdapter) + .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) + .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) + .create(); + } + + /** + * Get Gson. + * + * @return Gson + */ + public Gson getGson() { + return gson; + } + + /** + * Set Gson. + * + * @param gson Gson + * @return JSON + */ + public JSON setGson(Gson gson) { + this.gson = gson; + return this; + } + + public JSON setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + return this; + } + + /** + * Serialize the given Java object into JSON string. + * + * @param obj Object + * @return String representation of the JSON + */ + public String serialize(Object obj) { + return gson.toJson(obj); + } + + /** + * Deserialize the given JSON string to Java object. + * + * @param Type + * @param body The JSON string + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public T deserialize(String body, Type returnType) { + try { + if (isLenientOnJson) { + JsonReader jsonReader = new JsonReader(new StringReader(body)); + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(body, returnType); + } + } catch (JsonParseException e) { + // Fallback processing when failed to parse JSON form response body: + // return the response body string directly for the String return type; + if (returnType.equals(String.class)) + return (T) body; + else throw (e); + } + } + + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } + + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, OffsetDateTime date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public OffsetDateTime read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + if (date.endsWith("+0000")) { + date = date.substring(0, date.length()-5) + "Z"; + } + return OffsetDateTime.parse(date, formatter); + } + } + } + + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ + public class LocalDateTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); + } + + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, LocalDate date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public LocalDate read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return LocalDate.parse(date, formatter); + } + } + } + + public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + return this; + } + + /** + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). + */ + public static class SqlDateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public SqlDateTypeAdapter() { + } + + public SqlDateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, java.sql.Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = date.toString(); + } + out.value(value); + } + } + + @Override + public java.sql.Date read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return new java.sql.Date(dateFormat.parse(date).getTime()); + } + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } + } + + /** + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. + */ + public static class DateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public DateTypeAdapter() { + } + + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = ISO8601Utils.format(date, true); + } + out.value(value); + } + } + + @Override + public Date read(JsonReader in) throws IOException { + try { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return dateFormat.parse(date); + } + return ISO8601Utils.parse(date, new ParsePosition(0)); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } catch (IllegalArgumentException e) { + throw new JsonParseException(e); + } + } + } + + public JSON setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + return this; + } + +} diff --git a/src/main/java/com/fortify/ssc/restclient/Pair.java b/src/main/java/com/fortify/ssc/restclient/Pair.java new file mode 100644 index 0000000..fbf5260 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/Pair.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Pair { + private String name = ""; + private String value = ""; + + public Pair (String name, String value) { + setName(name); + setValue(value); + } + + private void setName(String name) { + if (!isValidString(name)) return; + + this.name = name; + } + + private void setValue(String value) { + if (!isValidString(value)) return; + + this.value = value; + } + + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + private boolean isValidString(String arg) { + if (arg == null) return false; + if (arg.trim().isEmpty()) return false; + + return true; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/ProgressRequestBody.java b/src/main/java/com/fortify/ssc/restclient/ProgressRequestBody.java new file mode 100644 index 0000000..074c075 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ProgressRequestBody.java @@ -0,0 +1,77 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import com.squareup.okhttp.MediaType; +import com.squareup.okhttp.RequestBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSink; +import okio.ForwardingSink; +import okio.Okio; +import okio.Sink; + +public class ProgressRequestBody extends RequestBody { + + public interface ProgressRequestListener { + void onRequestProgress(long bytesWritten, long contentLength, boolean done); + } + + private final RequestBody requestBody; + + private final ProgressRequestListener progressListener; + + public ProgressRequestBody(RequestBody requestBody, ProgressRequestListener progressListener) { + this.requestBody = requestBody; + this.progressListener = progressListener; + } + + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() throws IOException { + return requestBody.contentLength(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink bufferedSink = Okio.buffer(sink(sink)); + requestBody.writeTo(bufferedSink); + bufferedSink.flush(); + } + + private Sink sink(Sink sink) { + return new ForwardingSink(sink) { + + long bytesWritten = 0L; + long contentLength = 0L; + + @Override + public void write(Buffer source, long byteCount) throws IOException { + super.write(source, byteCount); + if (contentLength == 0) { + contentLength = contentLength(); + } + + bytesWritten += byteCount; + progressListener.onRequestProgress(bytesWritten, contentLength, bytesWritten == contentLength); + } + }; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/ProgressResponseBody.java b/src/main/java/com/fortify/ssc/restclient/ProgressResponseBody.java new file mode 100644 index 0000000..0fb28e2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/ProgressResponseBody.java @@ -0,0 +1,76 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +import com.squareup.okhttp.MediaType; +import com.squareup.okhttp.ResponseBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSource; +import okio.ForwardingSource; +import okio.Okio; +import okio.Source; + +public class ProgressResponseBody extends ResponseBody { + + public interface ProgressListener { + void update(long bytesRead, long contentLength, boolean done); + } + + private final ResponseBody responseBody; + private final ProgressListener progressListener; + private BufferedSource bufferedSource; + + public ProgressResponseBody(ResponseBody responseBody, ProgressListener progressListener) { + this.responseBody = responseBody; + this.progressListener = progressListener; + } + + @Override + public MediaType contentType() { + return responseBody.contentType(); + } + + @Override + public long contentLength() throws IOException { + return responseBody.contentLength(); + } + + @Override + public BufferedSource source() throws IOException { + if (bufferedSource == null) { + bufferedSource = Okio.buffer(source(responseBody.source())); + } + return bufferedSource; + } + + private Source source(Source source) { + return new ForwardingSource(source) { + long totalBytesRead = 0L; + + @Override + public long read(Buffer sink, long byteCount) throws IOException { + long bytesRead = super.read(sink, byteCount); + // read() returns the number of bytes read, or -1 if this source is exhausted. + totalBytesRead += bytesRead != -1 ? bytesRead : 0; + progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + return bytesRead; + } + }; + } +} + + diff --git a/src/main/java/com/fortify/ssc/restclient/StringUtil.java b/src/main/java/com/fortify/ssc/restclient/StringUtil.java new file mode 100644 index 0000000..fe00ab7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/StringUtil.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) return true; + if (value != null && value.equalsIgnoreCase(str)) return true; + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) return ""; + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApi.java new file mode 100644 index 0000000..e296f42 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAATrainingStatus; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AaTrainingStatusOfProjectVersionControllerApi { + private ApiClient apiClient; + + public AaTrainingStatusOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AaTrainingStatusOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAaTrainingStatusOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAaTrainingStatusOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/auditAssistantTrainingStatus" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAaTrainingStatusOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAaTrainingStatusOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listAaTrainingStatusOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListAATrainingStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAATrainingStatus listAaTrainingStatusOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listAaTrainingStatusOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListAATrainingStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAaTrainingStatusOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listAaTrainingStatusOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAaTrainingStatusOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAaTrainingStatusOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApi.java new file mode 100644 index 0000000..abc50b3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApi.java @@ -0,0 +1,189 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListActivityFeed; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ActivityFeedControllerApi { + private ApiClient apiClient; + + public ActivityFeedControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ActivityFeedControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listActivityFeed + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listActivityFeedCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/activityFeedEvents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listActivityFeedValidateBeforeCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listActivityFeedCall(fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListActivityFeed + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListActivityFeed listActivityFeed(String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listActivityFeedWithHttpInfo(fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListActivityFeed> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listActivityFeedWithHttpInfo(String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listActivityFeedValidateBeforeCall(fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listActivityFeedAsync(String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listActivityFeedValidateBeforeCall(fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApi.java new file mode 100644 index 0000000..52a08a4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApi.java @@ -0,0 +1,834 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.AlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResultListAlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AlertDefinitionControllerApi { + private ApiClient apiClient; + + public AlertDefinitionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AlertDefinitionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createAlertDefinition + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createAlertDefinitionCall(AlertDefinitionDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/alertDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createAlertDefinitionValidateBeforeCall(AlertDefinitionDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = createAlertDefinitionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultAlertDefinitionDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAlertDefinitionDto createAlertDefinition(AlertDefinitionDto resource) throws ApiException { + ApiResponse resp = createAlertDefinitionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultAlertDefinitionDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createAlertDefinitionWithHttpInfo(AlertDefinitionDto resource) throws ApiException { + com.squareup.okhttp.Call call = createAlertDefinitionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createAlertDefinitionAsync(AlertDefinitionDto resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createAlertDefinitionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteAlertDefinition + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteAlertDefinitionCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteAlertDefinitionValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = deleteAlertDefinitionCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteAlertDefinition(Long id) throws ApiException { + ApiResponse resp = deleteAlertDefinitionWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteAlertDefinitionWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteAlertDefinitionValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteAlertDefinitionAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteAlertDefinitionValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAlertDefinition + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAlertDefinitionCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAlertDefinitionValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAlertDefinitionCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListAlertDefinitionDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAlertDefinitionDto listAlertDefinition(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listAlertDefinitionWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListAlertDefinitionDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAlertDefinitionWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listAlertDefinitionValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAlertDefinitionAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAlertDefinitionValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteAlertDefinition + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteAlertDefinitionCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteAlertDefinitionValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteAlertDefinitionCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteAlertDefinition(String ids) throws ApiException { + ApiResponse resp = multiDeleteAlertDefinitionWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteAlertDefinitionWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteAlertDefinitionValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteAlertDefinitionAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteAlertDefinitionValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAlertDefinition + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAlertDefinitionCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAlertDefinitionValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = readAlertDefinitionCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultAlertDefinitionDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAlertDefinitionDto readAlertDefinition(Long id, String fields) throws ApiException { + ApiResponse resp = readAlertDefinitionWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultAlertDefinitionDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAlertDefinitionWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readAlertDefinitionValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAlertDefinitionAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAlertDefinitionValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateAlertDefinition + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateAlertDefinitionCall(Long id, AlertDefinitionDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/alertDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateAlertDefinitionValidateBeforeCall(Long id, AlertDefinitionDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateAlertDefinition(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = updateAlertDefinitionCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultAlertDefinitionDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAlertDefinitionDto updateAlertDefinition(Long id, AlertDefinitionDto resource) throws ApiException { + ApiResponse resp = updateAlertDefinitionWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultAlertDefinitionDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateAlertDefinitionWithHttpInfo(Long id, AlertDefinitionDto resource) throws ApiException { + com.squareup.okhttp.Call call = updateAlertDefinitionValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateAlertDefinitionAsync(Long id, AlertDefinitionDto resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateAlertDefinitionValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApi.java new file mode 100644 index 0000000..4672299 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApi.java @@ -0,0 +1,443 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.AlertSetStatusRequest; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListAlertHistoryEntry; +import com.fortify.ssc.restclient.model.ApiResultVoid; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AlertHistoryControllerApi { + private ApiClient apiClient; + + public AlertHistoryControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AlertHistoryControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doActionAlertHistory + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionAlertHistoryCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/alerts/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionAlertHistoryValidateBeforeCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionAlertHistory(Async)"); + } + + + com.squareup.okhttp.Call call = doActionAlertHistoryCall(collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionAlertHistory(ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doActionAlertHistoryWithHttpInfo(collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionAlertHistoryWithHttpInfo(ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionAlertHistoryValidateBeforeCall(collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionAlertHistoryAsync(ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionAlertHistoryValidateBeforeCall(collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAlertHistory + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAlertHistoryCall(Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alerts"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAlertHistoryValidateBeforeCall(Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAlertHistoryCall(start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListAlertHistoryEntry + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAlertHistoryEntry listAlertHistory(Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listAlertHistoryWithHttpInfo(start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListAlertHistoryEntry> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAlertHistoryWithHttpInfo(Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listAlertHistoryValidateBeforeCall(start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAlertHistoryAsync(Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAlertHistoryValidateBeforeCall(start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setStatusForAlertHistory + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setStatusForAlertHistoryCall(AlertSetStatusRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/alerts/action/setStatus"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setStatusForAlertHistoryValidateBeforeCall(AlertSetStatusRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling setStatusForAlertHistory(Async)"); + } + + + com.squareup.okhttp.Call call = setStatusForAlertHistoryCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * setStatusFor + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid setStatusForAlertHistory(AlertSetStatusRequest resource) throws ApiException { + ApiResponse resp = setStatusForAlertHistoryWithHttpInfo(resource); + return resp.getData(); + } + + /** + * setStatusFor + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setStatusForAlertHistoryWithHttpInfo(AlertSetStatusRequest resource) throws ApiException { + com.squareup.okhttp.Call call = setStatusForAlertHistoryValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * setStatusFor (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setStatusForAlertHistoryAsync(AlertSetStatusRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setStatusForAlertHistoryValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApi.java new file mode 100644 index 0000000..5ee1c7e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApi.java @@ -0,0 +1,177 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAlertableEventType; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AlertableEventTypeControllerApi { + private ApiClient apiClient; + + public AlertableEventTypeControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AlertableEventTypeControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAlertableEventType + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAlertableEventTypeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertableEventTypes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAlertableEventTypeValidateBeforeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAlertableEventTypeCall(fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResultListAlertableEventType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAlertableEventType listAlertableEventType(String fields) throws ApiException { + ApiResponse resp = listAlertableEventTypeWithHttpInfo(fields); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListAlertableEventType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAlertableEventTypeWithHttpInfo(String fields) throws ApiException { + com.squareup.okhttp.Call call = listAlertableEventTypeValidateBeforeCall(fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAlertableEventTypeAsync(String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAlertableEventTypeValidateBeforeCall(fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApi.java new file mode 100644 index 0000000..4ef5ef5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApi.java @@ -0,0 +1,294 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApplicationState; +import com.fortify.ssc.restclient.model.ApplicationState; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ApplicationStateControllerApi { + private ApiClient apiClient; + + public ApplicationStateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ApplicationStateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getApplicationState + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getApplicationStateCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/applicationState"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getApplicationStateValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getApplicationStateCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultApplicationState + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApplicationState getApplicationState() throws ApiException { + ApiResponse resp = getApplicationStateWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultApplicationState> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getApplicationStateWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getApplicationStateValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getApplicationStateAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getApplicationStateValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for putApplicationState + * @param applicationState applicationState (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call putApplicationStateCall(ApplicationState applicationState, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = applicationState; + + // create path and map variables + String localVarPath = "/applicationState"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putApplicationStateValidateBeforeCall(ApplicationState applicationState, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'applicationState' is set + if (applicationState == null) { + throw new ApiException("Missing the required parameter 'applicationState' when calling putApplicationState(Async)"); + } + + + com.squareup.okhttp.Call call = putApplicationStateCall(applicationState, progressListener, progressRequestListener); + return call; + + } + + /** + * put + * + * @param applicationState applicationState (required) + * @return ApiResultApplicationState + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApplicationState putApplicationState(ApplicationState applicationState) throws ApiException { + ApiResponse resp = putApplicationStateWithHttpInfo(applicationState); + return resp.getData(); + } + + /** + * put + * + * @param applicationState applicationState (required) + * @return ApiResponse<ApiResultApplicationState> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putApplicationStateWithHttpInfo(ApplicationState applicationState) throws ApiException { + com.squareup.okhttp.Call call = putApplicationStateValidateBeforeCall(applicationState, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * put (asynchronously) + * + * @param applicationState applicationState (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call putApplicationStateAsync(ApplicationState applicationState, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = putApplicationStateValidateBeforeCall(applicationState, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ArtifactControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ArtifactControllerApi.java new file mode 100644 index 0000000..dae071d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ArtifactControllerApi.java @@ -0,0 +1,697 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultArtifact; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ArtifactApproveRequest; +import com.fortify.ssc.restclient.model.ArtifactPurgeRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ArtifactControllerApi { + private ApiClient apiClient; + + public ArtifactControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ArtifactControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for approveArtifact + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call approveArtifactCall(ArtifactApproveRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/artifacts/action/approve"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call approveArtifactValidateBeforeCall(ArtifactApproveRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling approveArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = approveArtifactCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * approve + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid approveArtifact(ArtifactApproveRequest resource) throws ApiException { + ApiResponse resp = approveArtifactWithHttpInfo(resource); + return resp.getData(); + } + + /** + * approve + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse approveArtifactWithHttpInfo(ArtifactApproveRequest resource) throws ApiException { + com.squareup.okhttp.Call call = approveArtifactValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * approve (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call approveArtifactAsync(ArtifactApproveRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = approveArtifactValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteArtifact + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteArtifactCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/artifacts/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteArtifactValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = deleteArtifactCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteArtifact(Long id) throws ApiException { + ApiResponse resp = deleteArtifactWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteArtifactWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteArtifactValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteArtifactAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteArtifactValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionArtifact + * @param id id (required) + * @param resourceAction resourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionArtifactCall(Long id, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resourceAction; + + // create path and map variables + String localVarPath = "/artifacts/{id}/action" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionArtifactValidateBeforeCall(Long id, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling doActionArtifact(Async)"); + } + + // verify the required parameter 'resourceAction' is set + if (resourceAction == null) { + throw new ApiException("Missing the required parameter 'resourceAction' when calling doActionArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = doActionArtifactCall(id, resourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionArtifact(Long id, ApiResourceAction resourceAction) throws ApiException { + ApiResponse resp = doActionArtifactWithHttpInfo(id, resourceAction); + return resp.getData(); + } + + /** + * doAction + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionArtifactWithHttpInfo(Long id, ApiResourceAction resourceAction) throws ApiException { + com.squareup.okhttp.Call call = doActionArtifactValidateBeforeCall(id, resourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionArtifactAsync(Long id, ApiResourceAction resourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionArtifactValidateBeforeCall(id, resourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for purgeArtifact + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call purgeArtifactCall(ArtifactPurgeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/artifacts/action/purge"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call purgeArtifactValidateBeforeCall(ArtifactPurgeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling purgeArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = purgeArtifactCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * purge + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid purgeArtifact(ArtifactPurgeRequest resource) throws ApiException { + ApiResponse resp = purgeArtifactWithHttpInfo(resource); + return resp.getData(); + } + + /** + * purge + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse purgeArtifactWithHttpInfo(ArtifactPurgeRequest resource) throws ApiException { + com.squareup.okhttp.Call call = purgeArtifactValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * purge (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call purgeArtifactAsync(ArtifactPurgeRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = purgeArtifactValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readArtifact + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readArtifactCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/artifacts/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readArtifactValidateBeforeCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = readArtifactCall(id, fields, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResultArtifact + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultArtifact readArtifact(Long id, String fields, String embed) throws ApiException { + ApiResponse resp = readArtifactWithHttpInfo(id, fields, embed); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultArtifact> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readArtifactWithHttpInfo(Long id, String fields, String embed) throws ApiException { + com.squareup.okhttp.Call call = readArtifactValidateBeforeCall(id, fields, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readArtifactAsync(Long id, String fields, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readArtifactValidateBeforeCall(id, fields, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApi.java new file mode 100644 index 0000000..34c1a83 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApi.java @@ -0,0 +1,353 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultArtifact; +import com.fortify.ssc.restclient.model.ApiResultListArtifact; +import java.io.File; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ArtifactOfProjectVersionControllerApi { + private ApiClient apiClient; + + public ArtifactOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ArtifactOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listArtifactOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listArtifactOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String q, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/artifacts" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listArtifactOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listArtifactOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listArtifactOfProjectVersionCall(parentId, fields, start, limit, q, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @return ApiResultListArtifact + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListArtifact listArtifactOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String q, String embed) throws ApiException { + ApiResponse resp = listArtifactOfProjectVersionWithHttpInfo(parentId, fields, start, limit, q, embed); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultListArtifact> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listArtifactOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q, String embed) throws ApiException { + com.squareup.okhttp.Call call = listArtifactOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listArtifactOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String q, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listArtifactOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for uploadArtifactOfProjectVersion + * @param parentId parentId (required) + * @param file file (required) + * @param engineType engineType (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call uploadArtifactOfProjectVersionCall(Long parentId, File file, String engineType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/artifacts" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (engineType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("engineType", engineType)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + if (file != null) + localVarFormParams.put("file", file); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call uploadArtifactOfProjectVersionValidateBeforeCall(Long parentId, File file, String engineType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling uploadArtifactOfProjectVersion(Async)"); + } + + // verify the required parameter 'file' is set + if (file == null) { + throw new ApiException("Missing the required parameter 'file' when calling uploadArtifactOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = uploadArtifactOfProjectVersionCall(parentId, file, engineType, progressListener, progressRequestListener); + return call; + + } + + /** + * upload + * + * @param parentId parentId (required) + * @param file file (required) + * @param engineType engineType (optional) + * @return ApiResultArtifact + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultArtifact uploadArtifactOfProjectVersion(Long parentId, File file, String engineType) throws ApiException { + ApiResponse resp = uploadArtifactOfProjectVersionWithHttpInfo(parentId, file, engineType); + return resp.getData(); + } + + /** + * upload + * + * @param parentId parentId (required) + * @param file file (required) + * @param engineType engineType (optional) + * @return ApiResponse<ApiResultArtifact> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse uploadArtifactOfProjectVersionWithHttpInfo(Long parentId, File file, String engineType) throws ApiException { + com.squareup.okhttp.Call call = uploadArtifactOfProjectVersionValidateBeforeCall(parentId, file, engineType, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * upload (asynchronously) + * + * @param parentId parentId (required) + * @param file file (required) + * @param engineType engineType (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call uploadArtifactOfProjectVersionAsync(Long parentId, File file, String engineType, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = uploadArtifactOfProjectVersionValidateBeforeCall(parentId, file, engineType, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApi.java new file mode 100644 index 0000000..336e9a7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApi.java @@ -0,0 +1,834 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttributeDefinition; +import com.fortify.ssc.restclient.model.ApiResultListAttributeDefinition; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.AttributeDefinition; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AttributeDefinitionControllerApi { + private ApiClient apiClient; + + public AttributeDefinitionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AttributeDefinitionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createAttributeDefinition + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createAttributeDefinitionCall(AttributeDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/attributeDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createAttributeDefinitionValidateBeforeCall(AttributeDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createAttributeDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = createAttributeDefinitionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultAttributeDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttributeDefinition createAttributeDefinition(AttributeDefinition resource) throws ApiException { + ApiResponse resp = createAttributeDefinitionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultAttributeDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createAttributeDefinitionWithHttpInfo(AttributeDefinition resource) throws ApiException { + com.squareup.okhttp.Call call = createAttributeDefinitionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createAttributeDefinitionAsync(AttributeDefinition resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createAttributeDefinitionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteAttributeDefinition + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteAttributeDefinitionCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributeDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteAttributeDefinitionValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteAttributeDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = deleteAttributeDefinitionCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteAttributeDefinition(Long id) throws ApiException { + ApiResponse resp = deleteAttributeDefinitionWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteAttributeDefinitionWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteAttributeDefinitionValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteAttributeDefinitionAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteAttributeDefinitionValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAttributeDefinition + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAttributeDefinitionCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributeDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAttributeDefinitionValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAttributeDefinitionCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListAttributeDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAttributeDefinition listAttributeDefinition(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listAttributeDefinitionWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListAttributeDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAttributeDefinitionWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listAttributeDefinitionValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAttributeDefinitionAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAttributeDefinitionValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteAttributeDefinition + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteAttributeDefinitionCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributeDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteAttributeDefinitionValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteAttributeDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteAttributeDefinitionCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteAttributeDefinition(String ids) throws ApiException { + ApiResponse resp = multiDeleteAttributeDefinitionWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteAttributeDefinitionWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteAttributeDefinitionValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteAttributeDefinitionAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteAttributeDefinitionValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAttributeDefinition + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAttributeDefinitionCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributeDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAttributeDefinitionValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAttributeDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = readAttributeDefinitionCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultAttributeDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttributeDefinition readAttributeDefinition(Long id, String fields) throws ApiException { + ApiResponse resp = readAttributeDefinitionWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultAttributeDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAttributeDefinitionWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readAttributeDefinitionValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAttributeDefinitionAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAttributeDefinitionValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateAttributeDefinition + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateAttributeDefinitionCall(Long id, AttributeDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/attributeDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateAttributeDefinitionValidateBeforeCall(Long id, AttributeDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateAttributeDefinition(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateAttributeDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = updateAttributeDefinitionCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultAttributeDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttributeDefinition updateAttributeDefinition(Long id, AttributeDefinition resource) throws ApiException { + ApiResponse resp = updateAttributeDefinitionWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultAttributeDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateAttributeDefinitionWithHttpInfo(Long id, AttributeDefinition resource) throws ApiException { + com.squareup.okhttp.Call call = updateAttributeDefinitionValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateAttributeDefinitionAsync(Long id, AttributeDefinition resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateAttributeDefinitionValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApi.java new file mode 100644 index 0000000..618e9bb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApi.java @@ -0,0 +1,604 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttribute; +import com.fortify.ssc.restclient.model.ApiResultListAttribute; +import com.fortify.ssc.restclient.model.Attribute; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AttributeOfProjectControllerApi { + private ApiClient apiClient; + + public AttributeOfProjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AttributeOfProjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createAttributeOfProject + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createAttributeOfProjectCall(Long parentId, Attribute data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projects/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createAttributeOfProjectValidateBeforeCall(Long parentId, Attribute data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createAttributeOfProject(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling createAttributeOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = createAttributeOfProjectCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttribute createAttributeOfProject(Long parentId, Attribute data) throws ApiException { + ApiResponse resp = createAttributeOfProjectWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createAttributeOfProjectWithHttpInfo(Long parentId, Attribute data) throws ApiException { + com.squareup.okhttp.Call call = createAttributeOfProjectValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createAttributeOfProjectAsync(Long parentId, Attribute data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createAttributeOfProjectValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAttributeOfProject + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAttributeOfProjectCall(Long parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAttributeOfProjectValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAttributeOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = listAttributeOfProjectCall(parentId, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAttribute listAttributeOfProject(Long parentId, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listAttributeOfProjectWithHttpInfo(parentId, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAttributeOfProjectWithHttpInfo(Long parentId, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listAttributeOfProjectValidateBeforeCall(parentId, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAttributeOfProjectAsync(Long parentId, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAttributeOfProjectValidateBeforeCall(parentId, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAttributeOfProject + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAttributeOfProjectCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/attributes/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAttributeOfProjectValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readAttributeOfProject(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAttributeOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = readAttributeOfProjectCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttribute readAttributeOfProject(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readAttributeOfProjectWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAttributeOfProjectWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readAttributeOfProjectValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAttributeOfProjectAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAttributeOfProjectValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionAttributeOfProject + * @param parentId parentId (required) + * @param resources resources (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionAttributeOfProjectCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resources; + + // create path and map variables + String localVarPath = "/projects/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionAttributeOfProjectValidateBeforeCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionAttributeOfProject(Async)"); + } + + // verify the required parameter 'resources' is set + if (resources == null) { + throw new ApiException("Missing the required parameter 'resources' when calling updateCollectionAttributeOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectCall(parentId, resources, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResultListAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAttribute updateCollectionAttributeOfProject(Long parentId, List resources) throws ApiException { + ApiResponse resp = updateCollectionAttributeOfProjectWithHttpInfo(parentId, resources); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResponse<ApiResultListAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionAttributeOfProjectWithHttpInfo(Long parentId, List resources) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectValidateBeforeCall(parentId, resources, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param resources resources (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionAttributeOfProjectAsync(Long parentId, List resources, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectValidateBeforeCall(parentId, resources, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApi.java new file mode 100644 index 0000000..b005929 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApi.java @@ -0,0 +1,592 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttribute; +import com.fortify.ssc.restclient.model.ApiResultListAttribute; +import com.fortify.ssc.restclient.model.Attribute; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AttributeOfProjectVersionControllerApi { + private ApiClient apiClient; + + public AttributeOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AttributeOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createAttributeOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createAttributeOfProjectVersionCall(Long parentId, Attribute resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createAttributeOfProjectVersionValidateBeforeCall(Long parentId, Attribute resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createAttributeOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createAttributeOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = createAttributeOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttribute createAttributeOfProjectVersion(Long parentId, Attribute resource) throws ApiException { + ApiResponse resp = createAttributeOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createAttributeOfProjectVersionWithHttpInfo(Long parentId, Attribute resource) throws ApiException { + com.squareup.okhttp.Call call = createAttributeOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createAttributeOfProjectVersionAsync(Long parentId, Attribute resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createAttributeOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAttributeOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAttributeOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAttributeOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAttributeOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listAttributeOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAttribute listAttributeOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listAttributeOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAttributeOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listAttributeOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAttributeOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAttributeOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAttributeOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAttributeOfProjectVersionCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/attributes/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAttributeOfProjectVersionValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readAttributeOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAttributeOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readAttributeOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAttribute readAttributeOfProjectVersion(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readAttributeOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAttributeOfProjectVersionWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readAttributeOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAttributeOfProjectVersionAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAttributeOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionAttributeOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionAttributeOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/attributes" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionAttributeOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionAttributeOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionAttributeOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListAttribute + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAttribute updateCollectionAttributeOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionAttributeOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListAttribute> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionAttributeOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionAttributeOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionAttributeOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApi.java new file mode 100644 index 0000000..61aa568 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAuditAssistantStatus; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuditAssistantStatusOfProjectVersionControllerApi { + private ApiClient apiClient; + + public AuditAssistantStatusOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuditAssistantStatusOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAuditAssistantStatusOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuditAssistantStatusOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/auditAssistantStatus" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuditAssistantStatusOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAuditAssistantStatusOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listAuditAssistantStatusOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListAuditAssistantStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuditAssistantStatus listAuditAssistantStatusOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listAuditAssistantStatusOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListAuditAssistantStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuditAssistantStatusOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listAuditAssistantStatusOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuditAssistantStatusOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuditAssistantStatusOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApi.java new file mode 100644 index 0000000..d15c306 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditHistoryDto; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuditHistoryOfIssueControllerApi { + private ApiClient apiClient; + + public AuditHistoryOfIssueControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuditHistoryOfIssueControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAuditHistoryOfIssue + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuditHistoryOfIssueCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/auditHistory" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuditHistoryOfIssueValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAuditHistoryOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = listAuditHistoryOfIssueCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListIssueAuditHistoryDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAuditHistoryDto listAuditHistoryOfIssue(Long parentId, String fields) throws ApiException { + ApiResponse resp = listAuditHistoryOfIssueWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListIssueAuditHistoryDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuditHistoryOfIssueWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listAuditHistoryOfIssueValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuditHistoryOfIssueAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuditHistoryOfIssueValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuthEntityControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityControllerApi.java new file mode 100644 index 0000000..7949981 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityControllerApi.java @@ -0,0 +1,486 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultVoid; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuthEntityControllerApi { + private ApiClient apiClient; + + public AuthEntityControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthEntityControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAuthEntity + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param embed Fields to embed (optional) + * @param entityname entityname (optional) + * @param ldaptype ldaptype (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuthEntityCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, String embed, String entityname, String ldaptype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + if (entityname != null) + localVarQueryParams.addAll(apiClient.parameterToPair("entityname", entityname)); + if (ldaptype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ldaptype", ldaptype)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuthEntityValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, String embed, String entityname, String ldaptype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAuthEntityCall(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param embed Fields to embed (optional) + * @param entityname entityname (optional) + * @param ldaptype ldaptype (optional) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity listAuthEntity(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, String embed, String entityname, String ldaptype) throws ApiException { + ApiResponse resp = listAuthEntityWithHttpInfo(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param embed Fields to embed (optional) + * @param entityname entityname (optional) + * @param ldaptype ldaptype (optional) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuthEntityWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, String embed, String entityname, String ldaptype) throws ApiException { + com.squareup.okhttp.Call call = listAuthEntityValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param embed Fields to embed (optional) + * @param entityname entityname (optional) + * @param ldaptype ldaptype (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuthEntityAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, String embed, String entityname, String ldaptype, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuthEntityValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteAuthEntity + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteAuthEntityCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteAuthEntityValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteAuthEntityCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteAuthEntity(String ids) throws ApiException { + ApiResponse resp = multiDeleteAuthEntityWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteAuthEntityWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteAuthEntityValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteAuthEntityAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteAuthEntityValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAuthEntity + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAuthEntityCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAuthEntityValidateBeforeCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = readAuthEntityCall(id, fields, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResultAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAuthenticationEntity readAuthEntity(Long id, String fields, String embed) throws ApiException { + ApiResponse resp = readAuthEntityWithHttpInfo(id, fields, embed); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAuthEntityWithHttpInfo(Long id, String fields, String embed) throws ApiException { + com.squareup.okhttp.Call call = readAuthEntityValidateBeforeCall(id, fields, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAuthEntityAsync(Long id, String fields, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAuthEntityValidateBeforeCall(id, fields, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApi.java new file mode 100644 index 0000000..6f2a873 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApi.java @@ -0,0 +1,460 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.AuthenticationEntity; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuthEntityOfProjectControllerApi { + private ApiClient apiClient; + + public AuthEntityOfProjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthEntityOfProjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAuthEntityOfProject + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuthEntityOfProjectCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/authEntities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuthEntityOfProjectValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAuthEntityOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = listAuthEntityOfProjectCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity listAuthEntityOfProject(Long parentId, String fields) throws ApiException { + ApiResponse resp = listAuthEntityOfProjectWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuthEntityOfProjectWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listAuthEntityOfProjectValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuthEntityOfProjectAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuthEntityOfProjectValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAuthEntityOfProject + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAuthEntityOfProjectCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/authEntities/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAuthEntityOfProjectValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readAuthEntityOfProject(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAuthEntityOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = readAuthEntityOfProjectCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAuthenticationEntity readAuthEntityOfProject(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readAuthEntityOfProjectWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAuthEntityOfProjectWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readAuthEntityOfProjectValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAuthEntityOfProjectAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAuthEntityOfProjectValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionAuthEntityOfProject + * @param parentId parentId (required) + * @param resources resources (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resources; + + // create path and map variables + String localVarPath = "/projects/{parentId}/authEntities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectValidateBeforeCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionAuthEntityOfProject(Async)"); + } + + // verify the required parameter 'resources' is set + if (resources == null) { + throw new ApiException("Missing the required parameter 'resources' when calling updateCollectionAuthEntityOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectCall(parentId, resources, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity updateCollectionAuthEntityOfProject(Long parentId, List resources) throws ApiException { + ApiResponse resp = updateCollectionAuthEntityOfProjectWithHttpInfo(parentId, resources); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionAuthEntityOfProjectWithHttpInfo(Long parentId, List resources) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectValidateBeforeCall(parentId, resources, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param resources resources (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectAsync(Long parentId, List resources, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectValidateBeforeCall(parentId, resources, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApi.java new file mode 100644 index 0000000..5606bd0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApi.java @@ -0,0 +1,490 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.AuthenticationEntity; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuthEntityOfProjectVersionControllerApi { + private ApiClient apiClient; + + public AuthEntityOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthEntityOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listAuthEntityOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param extractusersfromgroups extractusersfromgroups (optional) + * @param includeuniversalaccessentities includeuniversalaccessentities (optional) + * @param entityname entityname (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuthEntityOfProjectVersionCall(Long parentId, String fields, String embed, Boolean extractusersfromgroups, Boolean includeuniversalaccessentities, String entityname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/authEntities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + if (extractusersfromgroups != null) + localVarQueryParams.addAll(apiClient.parameterToPair("extractusersfromgroups", extractusersfromgroups)); + if (includeuniversalaccessentities != null) + localVarQueryParams.addAll(apiClient.parameterToPair("includeuniversalaccessentities", includeuniversalaccessentities)); + if (entityname != null) + localVarQueryParams.addAll(apiClient.parameterToPair("entityname", entityname)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuthEntityOfProjectVersionValidateBeforeCall(Long parentId, String fields, String embed, Boolean extractusersfromgroups, Boolean includeuniversalaccessentities, String entityname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listAuthEntityOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listAuthEntityOfProjectVersionCall(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param extractusersfromgroups extractusersfromgroups (optional) + * @param includeuniversalaccessentities includeuniversalaccessentities (optional) + * @param entityname entityname (optional) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity listAuthEntityOfProjectVersion(Long parentId, String fields, String embed, Boolean extractusersfromgroups, Boolean includeuniversalaccessentities, String entityname) throws ApiException { + ApiResponse resp = listAuthEntityOfProjectVersionWithHttpInfo(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param extractusersfromgroups extractusersfromgroups (optional) + * @param includeuniversalaccessentities includeuniversalaccessentities (optional) + * @param entityname entityname (optional) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuthEntityOfProjectVersionWithHttpInfo(Long parentId, String fields, String embed, Boolean extractusersfromgroups, Boolean includeuniversalaccessentities, String entityname) throws ApiException { + com.squareup.okhttp.Call call = listAuthEntityOfProjectVersionValidateBeforeCall(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param extractusersfromgroups extractusersfromgroups (optional) + * @param includeuniversalaccessentities includeuniversalaccessentities (optional) + * @param entityname entityname (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuthEntityOfProjectVersionAsync(Long parentId, String fields, String embed, Boolean extractusersfromgroups, Boolean includeuniversalaccessentities, String entityname, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuthEntityOfProjectVersionValidateBeforeCall(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readAuthEntityOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readAuthEntityOfProjectVersionCall(Long parentId, Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/authEntities/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readAuthEntityOfProjectVersionValidateBeforeCall(Long parentId, Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readAuthEntityOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readAuthEntityOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readAuthEntityOfProjectVersionCall(parentId, id, fields, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResultAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAuthenticationEntity readAuthEntityOfProjectVersion(Long parentId, Long id, String fields, String embed) throws ApiException { + ApiResponse resp = readAuthEntityOfProjectVersionWithHttpInfo(parentId, id, fields, embed); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readAuthEntityOfProjectVersionWithHttpInfo(Long parentId, Long id, String fields, String embed) throws ApiException { + com.squareup.okhttp.Call call = readAuthEntityOfProjectVersionValidateBeforeCall(parentId, id, fields, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readAuthEntityOfProjectVersionAsync(Long parentId, Long id, String fields, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readAuthEntityOfProjectVersionValidateBeforeCall(parentId, id, fields, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionAuthEntityOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/authEntities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionAuthEntityOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionAuthEntityOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity updateCollectionAuthEntityOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionAuthEntityOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionAuthEntityOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionAuthEntityOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionAuthEntityOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/AuthTokenControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/AuthTokenControllerApi.java new file mode 100644 index 0000000..d84ce5e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/AuthTokenControllerApi.java @@ -0,0 +1,829 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationToken; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationToken; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.AuthTokenRevokeRequest; +import com.fortify.ssc.restclient.model.AuthenticationToken; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AuthTokenControllerApi { + private ApiClient apiClient; + + public AuthTokenControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthTokenControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createAuthToken + * @param authToken authToken (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createAuthTokenCall(AuthenticationToken authToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = authToken; + + // create path and map variables + String localVarPath = "/tokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createAuthTokenValidateBeforeCall(AuthenticationToken authToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'authToken' is set + if (authToken == null) { + throw new ApiException("Missing the required parameter 'authToken' when calling createAuthToken(Async)"); + } + + + com.squareup.okhttp.Call call = createAuthTokenCall(authToken, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param authToken authToken (required) + * @return ApiResultAuthenticationToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAuthenticationToken createAuthToken(AuthenticationToken authToken) throws ApiException { + ApiResponse resp = createAuthTokenWithHttpInfo(authToken); + return resp.getData(); + } + + /** + * create + * + * @param authToken authToken (required) + * @return ApiResponse<ApiResultAuthenticationToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createAuthTokenWithHttpInfo(AuthenticationToken authToken) throws ApiException { + com.squareup.okhttp.Call call = createAuthTokenValidateBeforeCall(authToken, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param authToken authToken (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createAuthTokenAsync(AuthenticationToken authToken, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createAuthTokenValidateBeforeCall(authToken, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteAuthToken + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteAuthTokenCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tokens/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteAuthTokenValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteAuthToken(Async)"); + } + + + com.squareup.okhttp.Call call = deleteAuthTokenCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteAuthToken(Long id) throws ApiException { + ApiResponse resp = deleteAuthTokenWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteAuthTokenWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteAuthTokenValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteAuthTokenAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteAuthTokenValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAuthToken + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAuthTokenCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAuthTokenValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listAuthTokenCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListAuthenticationToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationToken listAuthToken(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listAuthTokenWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListAuthenticationToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAuthTokenWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listAuthTokenValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAuthTokenAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAuthTokenValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteAuthToken + * @param all Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. (optional, default to false) + * @param ids A comma-separated list of resource identifiers (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteAuthTokenCall(Boolean all, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (all != null) + localVarQueryParams.addAll(apiClient.parameterToPair("all", all)); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteAuthTokenValidateBeforeCall(Boolean all, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = multiDeleteAuthTokenCall(all, ids, progressListener, progressRequestListener); + return call; + + } + + /** + * Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. + * + * @param all Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. (optional, default to false) + * @param ids A comma-separated list of resource identifiers (optional) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteAuthToken(Boolean all, String ids) throws ApiException { + ApiResponse resp = multiDeleteAuthTokenWithHttpInfo(all, ids); + return resp.getData(); + } + + /** + * Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. + * + * @param all Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. (optional, default to false) + * @param ids A comma-separated list of resource identifiers (optional) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteAuthTokenWithHttpInfo(Boolean all, String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteAuthTokenValidateBeforeCall(all, ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. (asynchronously) + * + * @param all Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. (optional, default to false) + * @param ids A comma-separated list of resource identifiers (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteAuthTokenAsync(Boolean all, String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteAuthTokenValidateBeforeCall(all, ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for revokeAuthToken + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call revokeAuthTokenCall(AuthTokenRevokeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/tokens/action/revoke"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call revokeAuthTokenValidateBeforeCall(AuthTokenRevokeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling revokeAuthToken(Async)"); + } + + + com.squareup.okhttp.Call call = revokeAuthTokenCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * Revoke authentication tokens by value + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid revokeAuthToken(AuthTokenRevokeRequest resource) throws ApiException { + ApiResponse resp = revokeAuthTokenWithHttpInfo(resource); + return resp.getData(); + } + + /** + * Revoke authentication tokens by value + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse revokeAuthTokenWithHttpInfo(AuthTokenRevokeRequest resource) throws ApiException { + com.squareup.okhttp.Call call = revokeAuthTokenValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Revoke authentication tokens by value (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call revokeAuthTokenAsync(AuthTokenRevokeRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = revokeAuthTokenValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateAuthToken + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateAuthTokenCall(Long id, AuthenticationToken resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/tokens/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateAuthTokenValidateBeforeCall(Long id, AuthenticationToken resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateAuthToken(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateAuthToken(Async)"); + } + + + com.squareup.okhttp.Call call = updateAuthTokenCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultAuthenticationToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultAuthenticationToken updateAuthToken(Long id, AuthenticationToken resource) throws ApiException { + ApiResponse resp = updateAuthTokenWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultAuthenticationToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateAuthTokenWithHttpInfo(Long id, AuthenticationToken resource) throws ApiException { + com.squareup.okhttp.Call call = updateAuthTokenValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateAuthTokenAsync(Long id, AuthenticationToken resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateAuthTokenValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApi.java new file mode 100644 index 0000000..eb957ca --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApi.java @@ -0,0 +1,594 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultBugFilingRequirementsResponse; +import com.fortify.ssc.restclient.model.ApiResultListBugFilingRequirements; +import com.fortify.ssc.restclient.model.BugFilingRequirements; +import com.fortify.ssc.restclient.model.BugFilingRequirementsRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BugFilingRequirementsOfProjectVersionControllerApi { + private ApiClient apiClient; + + public BugFilingRequirementsOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public BugFilingRequirementsOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doActionBugFilingRequirementsOfProjectVersion + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionBugFilingRequirementsOfProjectVersionCall(Long parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugfilingrequirements/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionBugFilingRequirementsOfProjectVersionValidateBeforeCall(Long parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionBugFilingRequirementsOfProjectVersion(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionBugFilingRequirementsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = doActionBugFilingRequirementsOfProjectVersionCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionBugFilingRequirementsOfProjectVersion(Long parentId, ApiCollectionActionstring collectionAction) throws ApiException { + ApiResponse resp = doActionBugFilingRequirementsOfProjectVersionWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionBugFilingRequirementsOfProjectVersionWithHttpInfo(Long parentId, ApiCollectionActionstring collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionBugFilingRequirementsOfProjectVersionAsync(Long parentId, ApiCollectionActionstring collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listBugFilingRequirementsOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listBugFilingRequirementsOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugfilingrequirements" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listBugFilingRequirementsOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listBugFilingRequirementsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listBugFilingRequirementsOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListBugFilingRequirements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListBugFilingRequirements listBugFilingRequirementsOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listBugFilingRequirementsOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListBugFilingRequirements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listBugFilingRequirementsOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listBugFilingRequirementsOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for loginBugFilingRequirementsOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call loginBugFilingRequirementsOfProjectVersionCall(Long parentId, BugFilingRequirementsRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugfilingrequirements/action/login" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call loginBugFilingRequirementsOfProjectVersionValidateBeforeCall(Long parentId, BugFilingRequirementsRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling loginBugFilingRequirementsOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling loginBugFilingRequirementsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = loginBugFilingRequirementsOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * login + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultBugFilingRequirementsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultBugFilingRequirementsResponse loginBugFilingRequirementsOfProjectVersion(Long parentId, BugFilingRequirementsRequest resource) throws ApiException { + ApiResponse resp = loginBugFilingRequirementsOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * login + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultBugFilingRequirementsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse loginBugFilingRequirementsOfProjectVersionWithHttpInfo(Long parentId, BugFilingRequirementsRequest resource) throws ApiException { + com.squareup.okhttp.Call call = loginBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * login (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call loginBugFilingRequirementsOfProjectVersionAsync(Long parentId, BugFilingRequirementsRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = loginBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionBugFilingRequirementsOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param changedParamIdentifier changedParamIdentifier (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionBugFilingRequirementsOfProjectVersionCall(Long parentId, List data, String changedParamIdentifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugfilingrequirements" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (changedParamIdentifier != null) + localVarQueryParams.addAll(apiClient.parameterToPair("changedParamIdentifier", changedParamIdentifier)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionBugFilingRequirementsOfProjectVersionValidateBeforeCall(Long parentId, List data, String changedParamIdentifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionBugFilingRequirementsOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionBugFilingRequirementsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionBugFilingRequirementsOfProjectVersionCall(parentId, data, changedParamIdentifier, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @param changedParamIdentifier changedParamIdentifier (optional) + * @return ApiResultListBugFilingRequirements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListBugFilingRequirements updateCollectionBugFilingRequirementsOfProjectVersion(Long parentId, List data, String changedParamIdentifier) throws ApiException { + ApiResponse resp = updateCollectionBugFilingRequirementsOfProjectVersionWithHttpInfo(parentId, data, changedParamIdentifier); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @param changedParamIdentifier changedParamIdentifier (optional) + * @return ApiResponse<ApiResultListBugFilingRequirements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionBugFilingRequirementsOfProjectVersionWithHttpInfo(Long parentId, List data, String changedParamIdentifier) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, data, changedParamIdentifier, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param changedParamIdentifier changedParamIdentifier (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionBugFilingRequirementsOfProjectVersionAsync(Long parentId, List data, String changedParamIdentifier, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionBugFilingRequirementsOfProjectVersionValidateBeforeCall(parentId, data, changedParamIdentifier, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/BugTrackerControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/BugTrackerControllerApi.java new file mode 100644 index 0000000..28596e5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/BugTrackerControllerApi.java @@ -0,0 +1,177 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListBugTracker; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BugTrackerControllerApi { + private ApiClient apiClient; + + public BugTrackerControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public BugTrackerControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listBugTracker + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listBugTrackerCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bugtrackers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listBugTrackerValidateBeforeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listBugTrackerCall(fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResultListBugTracker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListBugTracker listBugTracker(String fields) throws ApiException { + ApiResponse resp = listBugTrackerWithHttpInfo(fields); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListBugTracker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listBugTrackerWithHttpInfo(String fields) throws ApiException { + com.squareup.okhttp.Call call = listBugTrackerValidateBeforeCall(fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listBugTrackerAsync(String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listBugTrackerValidateBeforeCall(fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApi.java new file mode 100644 index 0000000..83e9785 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApi.java @@ -0,0 +1,588 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionBugTracker; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.BugTrackerRequest; +import com.fortify.ssc.restclient.model.ProjectVersionBugTracker; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BugTrackerOfProjectVersionControllerApi { + private ApiClient apiClient; + + public BugTrackerOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public BugTrackerOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doActionBugTrackerOfProjectVersion + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionBugTrackerOfProjectVersionCall(Long parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugtracker/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionBugTrackerOfProjectVersionValidateBeforeCall(Long parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionBugTrackerOfProjectVersion(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionBugTrackerOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = doActionBugTrackerOfProjectVersionCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionBugTrackerOfProjectVersion(Long parentId, ApiCollectionActionstring collectionAction) throws ApiException { + ApiResponse resp = doActionBugTrackerOfProjectVersionWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionBugTrackerOfProjectVersionWithHttpInfo(Long parentId, ApiCollectionActionstring collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionBugTrackerOfProjectVersionValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionBugTrackerOfProjectVersionAsync(Long parentId, ApiCollectionActionstring collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionBugTrackerOfProjectVersionValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listBugTrackerOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listBugTrackerOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugtracker" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listBugTrackerOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listBugTrackerOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listBugTrackerOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListProjectVersionBugTracker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionBugTracker listBugTrackerOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listBugTrackerOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListProjectVersionBugTracker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listBugTrackerOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listBugTrackerOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listBugTrackerOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listBugTrackerOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for testBugTrackerOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call testBugTrackerOfProjectVersionCall(Long parentId, BugTrackerRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugtracker/action/test" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call testBugTrackerOfProjectVersionValidateBeforeCall(Long parentId, BugTrackerRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling testBugTrackerOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling testBugTrackerOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = testBugTrackerOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * test + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid testBugTrackerOfProjectVersion(Long parentId, BugTrackerRequest resource) throws ApiException { + ApiResponse resp = testBugTrackerOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * test + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse testBugTrackerOfProjectVersionWithHttpInfo(Long parentId, BugTrackerRequest resource) throws ApiException { + com.squareup.okhttp.Call call = testBugTrackerOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * test (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call testBugTrackerOfProjectVersionAsync(Long parentId, BugTrackerRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = testBugTrackerOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionBugTrackerOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionBugTrackerOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/bugtracker" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionBugTrackerOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionBugTrackerOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionBugTrackerOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionBugTrackerOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListProjectVersionBugTracker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionBugTracker updateCollectionBugTrackerOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionBugTrackerOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListProjectVersionBugTracker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionBugTrackerOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionBugTrackerOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionBugTrackerOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionBugTrackerOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApi.java new file mode 100644 index 0000000..d5bb480 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApi.java @@ -0,0 +1,810 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultBugfieldTemplateGroupDto; +import com.fortify.ssc.restclient.model.ApiResultListBugfieldTemplateGroupDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.BugfieldTemplateGroupDto; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BugfieldTemplateGroupControllerApi { + private ApiClient apiClient; + + public BugfieldTemplateGroupControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public BugfieldTemplateGroupControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createBugfieldTemplateGroup + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createBugfieldTemplateGroupCall(BugfieldTemplateGroupDto data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createBugfieldTemplateGroupValidateBeforeCall(BugfieldTemplateGroupDto data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling createBugfieldTemplateGroup(Async)"); + } + + + com.squareup.okhttp.Call call = createBugfieldTemplateGroupCall(data, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param data data (required) + * @return ApiResultBugfieldTemplateGroupDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultBugfieldTemplateGroupDto createBugfieldTemplateGroup(BugfieldTemplateGroupDto data) throws ApiException { + ApiResponse resp = createBugfieldTemplateGroupWithHttpInfo(data); + return resp.getData(); + } + + /** + * create + * + * @param data data (required) + * @return ApiResponse<ApiResultBugfieldTemplateGroupDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createBugfieldTemplateGroupWithHttpInfo(BugfieldTemplateGroupDto data) throws ApiException { + com.squareup.okhttp.Call call = createBugfieldTemplateGroupValidateBeforeCall(data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createBugfieldTemplateGroupAsync(BugfieldTemplateGroupDto data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createBugfieldTemplateGroupValidateBeforeCall(data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteBugfieldTemplateGroup + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteBugfieldTemplateGroupCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteBugfieldTemplateGroupValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteBugfieldTemplateGroup(Async)"); + } + + + com.squareup.okhttp.Call call = deleteBugfieldTemplateGroupCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteBugfieldTemplateGroup(Long id) throws ApiException { + ApiResponse resp = deleteBugfieldTemplateGroupWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteBugfieldTemplateGroupWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteBugfieldTemplateGroupValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteBugfieldTemplateGroupAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteBugfieldTemplateGroupValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listBugfieldTemplateGroup + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listBugfieldTemplateGroupCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listBugfieldTemplateGroupValidateBeforeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listBugfieldTemplateGroupCall(fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResultListBugfieldTemplateGroupDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListBugfieldTemplateGroupDto listBugfieldTemplateGroup(String fields) throws ApiException { + ApiResponse resp = listBugfieldTemplateGroupWithHttpInfo(fields); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListBugfieldTemplateGroupDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listBugfieldTemplateGroupWithHttpInfo(String fields) throws ApiException { + com.squareup.okhttp.Call call = listBugfieldTemplateGroupValidateBeforeCall(fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listBugfieldTemplateGroupAsync(String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listBugfieldTemplateGroupValidateBeforeCall(fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteBugfieldTemplateGroup + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteBugfieldTemplateGroupCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteBugfieldTemplateGroupValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteBugfieldTemplateGroup(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteBugfieldTemplateGroupCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteBugfieldTemplateGroup(String ids) throws ApiException { + ApiResponse resp = multiDeleteBugfieldTemplateGroupWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteBugfieldTemplateGroupWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteBugfieldTemplateGroupValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteBugfieldTemplateGroupAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteBugfieldTemplateGroupValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readBugfieldTemplateGroup + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readBugfieldTemplateGroupCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readBugfieldTemplateGroupValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readBugfieldTemplateGroup(Async)"); + } + + + com.squareup.okhttp.Call call = readBugfieldTemplateGroupCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultBugfieldTemplateGroupDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultBugfieldTemplateGroupDto readBugfieldTemplateGroup(Long id, String fields) throws ApiException { + ApiResponse resp = readBugfieldTemplateGroupWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultBugfieldTemplateGroupDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readBugfieldTemplateGroupWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readBugfieldTemplateGroupValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readBugfieldTemplateGroupAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readBugfieldTemplateGroupValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateBugfieldTemplateGroup + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateBugfieldTemplateGroupCall(Long id, BugfieldTemplateGroupDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/bugfieldTemplateGroups/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateBugfieldTemplateGroupValidateBeforeCall(Long id, BugfieldTemplateGroupDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateBugfieldTemplateGroup(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateBugfieldTemplateGroup(Async)"); + } + + + com.squareup.okhttp.Call call = updateBugfieldTemplateGroupCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultBugfieldTemplateGroupDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultBugfieldTemplateGroupDto updateBugfieldTemplateGroup(Long id, BugfieldTemplateGroupDto resource) throws ApiException { + ApiResponse resp = updateBugfieldTemplateGroupWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultBugfieldTemplateGroupDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateBugfieldTemplateGroupWithHttpInfo(Long id, BugfieldTemplateGroupDto resource) throws ApiException { + com.squareup.okhttp.Call call = updateBugfieldTemplateGroupValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateBugfieldTemplateGroupAsync(Long id, BugfieldTemplateGroupDto resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateBugfieldTemplateGroupValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/BulkControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/BulkControllerApi.java new file mode 100644 index 0000000..bf22734 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/BulkControllerApi.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListBulkResponseItem; +import com.fortify.ssc.restclient.model.BulkRequestData; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BulkControllerApi { + private ApiClient apiClient; + + public BulkControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public BulkControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for postBulk + * @param apiBulkRequestData apiBulkRequestData (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call postBulkCall(BulkRequestData apiBulkRequestData, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = apiBulkRequestData; + + // create path and map variables + String localVarPath = "/bulk"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call postBulkValidateBeforeCall(BulkRequestData apiBulkRequestData, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'apiBulkRequestData' is set + if (apiBulkRequestData == null) { + throw new ApiException("Missing the required parameter 'apiBulkRequestData' when calling postBulk(Async)"); + } + + + com.squareup.okhttp.Call call = postBulkCall(apiBulkRequestData, progressListener, progressRequestListener); + return call; + + } + + /** + * post + * + * @param apiBulkRequestData apiBulkRequestData (required) + * @return ApiResultListBulkResponseItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListBulkResponseItem postBulk(BulkRequestData apiBulkRequestData) throws ApiException { + ApiResponse resp = postBulkWithHttpInfo(apiBulkRequestData); + return resp.getData(); + } + + /** + * post + * + * @param apiBulkRequestData apiBulkRequestData (required) + * @return ApiResponse<ApiResultListBulkResponseItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse postBulkWithHttpInfo(BulkRequestData apiBulkRequestData) throws ApiException { + com.squareup.okhttp.Call call = postBulkValidateBeforeCall(apiBulkRequestData, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * post (asynchronously) + * + * @param apiBulkRequestData apiBulkRequestData (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call postBulkAsync(BulkRequestData apiBulkRequestData, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = postBulkValidateBeforeCall(apiBulkRequestData, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudJobControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudJobControllerApi.java new file mode 100644 index 0000000..f826779 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudJobControllerApi.java @@ -0,0 +1,589 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudJob; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CloudJobCancelRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudJobControllerApi { + private ApiClient apiClient; + + public CloudJobControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudJobControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for cancelCloudJob + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call cancelCloudJobCall(CloudJobCancelRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudjobs/action/cancel"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call cancelCloudJobValidateBeforeCall(CloudJobCancelRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling cancelCloudJob(Async)"); + } + + + com.squareup.okhttp.Call call = cancelCloudJobCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * cancel + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid cancelCloudJob(CloudJobCancelRequest resource) throws ApiException { + ApiResponse resp = cancelCloudJobWithHttpInfo(resource); + return resp.getData(); + } + + /** + * cancel + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse cancelCloudJobWithHttpInfo(CloudJobCancelRequest resource) throws ApiException { + com.squareup.okhttp.Call call = cancelCloudJobValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * cancel (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call cancelCloudJobAsync(CloudJobCancelRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = cancelCloudJobValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionCloudJob + * @param jobToken jobToken (required) + * @param resourceAction resourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionCloudJobCall(String jobToken, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resourceAction; + + // create path and map variables + String localVarPath = "/cloudjobs/{jobToken}/action" + .replaceAll("\\{" + "jobToken" + "\\}", apiClient.escapeString(jobToken.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionCloudJobValidateBeforeCall(String jobToken, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'jobToken' is set + if (jobToken == null) { + throw new ApiException("Missing the required parameter 'jobToken' when calling doActionCloudJob(Async)"); + } + + // verify the required parameter 'resourceAction' is set + if (resourceAction == null) { + throw new ApiException("Missing the required parameter 'resourceAction' when calling doActionCloudJob(Async)"); + } + + + com.squareup.okhttp.Call call = doActionCloudJobCall(jobToken, resourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param jobToken jobToken (required) + * @param resourceAction resourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionCloudJob(String jobToken, ApiResourceAction resourceAction) throws ApiException { + ApiResponse resp = doActionCloudJobWithHttpInfo(jobToken, resourceAction); + return resp.getData(); + } + + /** + * doAction + * + * @param jobToken jobToken (required) + * @param resourceAction resourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionCloudJobWithHttpInfo(String jobToken, ApiResourceAction resourceAction) throws ApiException { + com.squareup.okhttp.Call call = doActionCloudJobValidateBeforeCall(jobToken, resourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param jobToken jobToken (required) + * @param resourceAction resourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionCloudJobAsync(String jobToken, ApiResourceAction resourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionCloudJobValidateBeforeCall(jobToken, resourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listCloudJob + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudJobCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudjobs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudJobValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listCloudJobCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudJob listCloudJob(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listCloudJobWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudJobWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCloudJobValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudJobAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudJobValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readCloudJob + * @param jobToken jobToken (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readCloudJobCall(String jobToken, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudjobs/{jobToken}" + .replaceAll("\\{" + "jobToken" + "\\}", apiClient.escapeString(jobToken.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readCloudJobValidateBeforeCall(String jobToken, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'jobToken' is set + if (jobToken == null) { + throw new ApiException("Missing the required parameter 'jobToken' when calling readCloudJob(Async)"); + } + + + com.squareup.okhttp.Call call = readCloudJobCall(jobToken, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param jobToken jobToken (required) + * @param fields Output fields (optional) + * @return ApiResultCloudJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudJob readCloudJob(String jobToken, String fields) throws ApiException { + ApiResponse resp = readCloudJobWithHttpInfo(jobToken, fields); + return resp.getData(); + } + + /** + * read + * + * @param jobToken jobToken (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultCloudJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readCloudJobWithHttpInfo(String jobToken, String fields) throws ApiException { + com.squareup.okhttp.Call call = readCloudJobValidateBeforeCall(jobToken, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param jobToken jobToken (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readCloudJobAsync(String jobToken, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readCloudJobValidateBeforeCall(jobToken, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApi.java new file mode 100644 index 0000000..194036c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApi.java @@ -0,0 +1,205 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudJobOfCloudPoolControllerApi { + private ApiClient apiClient; + + public CloudJobOfCloudPoolControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudJobOfCloudPoolControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listCloudJobOfCloudPool + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudJobOfCloudPoolCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/jobs" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudJobOfCloudPoolValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listCloudJobOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = listCloudJobOfCloudPoolCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudJob listCloudJobOfCloudPool(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + ApiResponse resp = listCloudJobOfCloudPoolWithHttpInfo(parentId, fields, start, limit, orderby); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudJobOfCloudPoolWithHttpInfo(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCloudJobOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudJobOfCloudPoolAsync(String parentId, String fields, Integer start, Integer limit, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudJobOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApi.java new file mode 100644 index 0000000..6b14f33 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApi.java @@ -0,0 +1,199 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudJobOfCloudWorkerControllerApi { + private ApiClient apiClient; + + public CloudJobOfCloudWorkerControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudJobOfCloudWorkerControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listCloudJobOfCloudWorker + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudJobOfCloudWorkerCall(String parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudworkers/{parentId}/cloudjobs" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudJobOfCloudWorkerValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listCloudJobOfCloudWorker(Async)"); + } + + + com.squareup.okhttp.Call call = listCloudJobOfCloudWorkerCall(parentId, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListCloudJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudJob listCloudJobOfCloudWorker(String parentId, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listCloudJobOfCloudWorkerWithHttpInfo(parentId, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListCloudJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudJobOfCloudWorkerWithHttpInfo(String parentId, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listCloudJobOfCloudWorkerValidateBeforeCall(parentId, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudJobOfCloudWorkerAsync(String parentId, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudJobOfCloudWorkerValidateBeforeCall(parentId, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudPoolControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudPoolControllerApi.java new file mode 100644 index 0000000..d1d7436 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudPoolControllerApi.java @@ -0,0 +1,716 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudPool; +import com.fortify.ssc.restclient.model.ApiResultListCloudPool; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CloudPool; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudPoolControllerApi { + private ApiClient apiClient; + + public CloudPoolControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudPoolControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createCloudPool + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createCloudPoolCall(CloudPool resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createCloudPoolValidateBeforeCall(CloudPool resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = createCloudPoolCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultCloudPool + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPool createCloudPool(CloudPool resource) throws ApiException { + ApiResponse resp = createCloudPoolWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPool> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createCloudPoolWithHttpInfo(CloudPool resource) throws ApiException { + com.squareup.okhttp.Call call = createCloudPoolValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createCloudPoolAsync(CloudPool resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createCloudPoolValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteCloudPool + * @param uuid uuid (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteCloudPoolCall(String uuid, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/{uuid}" + .replaceAll("\\{" + "uuid" + "\\}", apiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteCloudPoolValidateBeforeCall(String uuid, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling deleteCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = deleteCloudPoolCall(uuid, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param uuid uuid (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteCloudPool(String uuid) throws ApiException { + ApiResponse resp = deleteCloudPoolWithHttpInfo(uuid); + return resp.getData(); + } + + /** + * delete + * + * @param uuid uuid (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteCloudPoolWithHttpInfo(String uuid) throws ApiException { + com.squareup.okhttp.Call call = deleteCloudPoolValidateBeforeCall(uuid, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param uuid uuid (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteCloudPoolAsync(String uuid, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteCloudPoolValidateBeforeCall(uuid, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listCloudPool + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudPoolCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudPoolValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listCloudPoolCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudPool + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudPool listCloudPool(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + ApiResponse resp = listCloudPoolWithHttpInfo(fields, start, limit, q, fulltextsearch, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudPool> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudPoolWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCloudPoolValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudPoolAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudPoolValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readCloudPool + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readCloudPoolCall(String uuid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/{uuid}" + .replaceAll("\\{" + "uuid" + "\\}", apiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readCloudPoolValidateBeforeCall(String uuid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling readCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = readCloudPoolCall(uuid, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @return ApiResultCloudPool + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPool readCloudPool(String uuid, String fields) throws ApiException { + ApiResponse resp = readCloudPoolWithHttpInfo(uuid, fields); + return resp.getData(); + } + + /** + * read + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultCloudPool> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readCloudPoolWithHttpInfo(String uuid, String fields) throws ApiException { + com.squareup.okhttp.Call call = readCloudPoolValidateBeforeCall(uuid, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readCloudPoolAsync(String uuid, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readCloudPoolValidateBeforeCall(uuid, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCloudPool + * @param uuid uuid (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCloudPoolCall(String uuid, CloudPool resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{uuid}" + .replaceAll("\\{" + "uuid" + "\\}", apiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCloudPoolValidateBeforeCall(String uuid, CloudPool resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling updateCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = updateCloudPoolCall(uuid, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param uuid uuid (required) + * @param resource resource (required) + * @return ApiResultCloudPool + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPool updateCloudPool(String uuid, CloudPool resource) throws ApiException { + ApiResponse resp = updateCloudPoolWithHttpInfo(uuid, resource); + return resp.getData(); + } + + /** + * update + * + * @param uuid uuid (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPool> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCloudPoolWithHttpInfo(String uuid, CloudPool resource) throws ApiException { + com.squareup.okhttp.Call call = updateCloudPoolValidateBeforeCall(uuid, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param uuid uuid (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCloudPoolAsync(String uuid, CloudPool resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCloudPoolValidateBeforeCall(uuid, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApi.java new file mode 100644 index 0000000..b21ed2c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApi.java @@ -0,0 +1,440 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolMapping; +import com.fortify.ssc.restclient.model.ApiResultListCloudPoolMapping; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudPoolMappingControllerApi { + private ApiClient apiClient; + + public CloudPoolMappingControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudPoolMappingControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for mapByVersionIdCloudPoolMapping + * @param projectVersionId projectVersionId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call mapByVersionIdCloudPoolMappingCall(Long projectVersionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudmappings/mapByVersionId"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (projectVersionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("projectVersionId", projectVersionId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call mapByVersionIdCloudPoolMappingValidateBeforeCall(Long projectVersionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'projectVersionId' is set + if (projectVersionId == null) { + throw new ApiException("Missing the required parameter 'projectVersionId' when calling mapByVersionIdCloudPoolMapping(Async)"); + } + + + com.squareup.okhttp.Call call = mapByVersionIdCloudPoolMappingCall(projectVersionId, progressListener, progressRequestListener); + return call; + + } + + /** + * mapByVersionId + * + * @param projectVersionId projectVersionId (required) + * @return ApiResultCloudPoolMapping + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolMapping mapByVersionIdCloudPoolMapping(Long projectVersionId) throws ApiException { + ApiResponse resp = mapByVersionIdCloudPoolMappingWithHttpInfo(projectVersionId); + return resp.getData(); + } + + /** + * mapByVersionId + * + * @param projectVersionId projectVersionId (required) + * @return ApiResponse<ApiResultCloudPoolMapping> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse mapByVersionIdCloudPoolMappingWithHttpInfo(Long projectVersionId) throws ApiException { + com.squareup.okhttp.Call call = mapByVersionIdCloudPoolMappingValidateBeforeCall(projectVersionId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * mapByVersionId (asynchronously) + * + * @param projectVersionId projectVersionId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call mapByVersionIdCloudPoolMappingAsync(Long projectVersionId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = mapByVersionIdCloudPoolMappingValidateBeforeCall(projectVersionId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for mapByVersionIdsCloudPoolMapping + * @param projectVersionIds projectVersionIds (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call mapByVersionIdsCloudPoolMappingCall(List projectVersionIds, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = projectVersionIds; + + // create path and map variables + String localVarPath = "/cloudmappings/mapByVersionIds"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call mapByVersionIdsCloudPoolMappingValidateBeforeCall(List projectVersionIds, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'projectVersionIds' is set + if (projectVersionIds == null) { + throw new ApiException("Missing the required parameter 'projectVersionIds' when calling mapByVersionIdsCloudPoolMapping(Async)"); + } + + + com.squareup.okhttp.Call call = mapByVersionIdsCloudPoolMappingCall(projectVersionIds, progressListener, progressRequestListener); + return call; + + } + + /** + * mapByVersionIds + * + * @param projectVersionIds projectVersionIds (required) + * @return ApiResultListCloudPoolMapping + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudPoolMapping mapByVersionIdsCloudPoolMapping(List projectVersionIds) throws ApiException { + ApiResponse resp = mapByVersionIdsCloudPoolMappingWithHttpInfo(projectVersionIds); + return resp.getData(); + } + + /** + * mapByVersionIds + * + * @param projectVersionIds projectVersionIds (required) + * @return ApiResponse<ApiResultListCloudPoolMapping> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse mapByVersionIdsCloudPoolMappingWithHttpInfo(List projectVersionIds) throws ApiException { + com.squareup.okhttp.Call call = mapByVersionIdsCloudPoolMappingValidateBeforeCall(projectVersionIds, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * mapByVersionIds (asynchronously) + * + * @param projectVersionIds projectVersionIds (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call mapByVersionIdsCloudPoolMappingAsync(List projectVersionIds, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = mapByVersionIdsCloudPoolMappingValidateBeforeCall(projectVersionIds, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for mapByVersionNameCloudPoolMapping + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call mapByVersionNameCloudPoolMappingCall(String projectName, String projectVersionName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudmappings/mapByVersionName"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (projectName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("projectName", projectName)); + if (projectVersionName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("projectVersionName", projectVersionName)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call mapByVersionNameCloudPoolMappingValidateBeforeCall(String projectName, String projectVersionName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'projectName' is set + if (projectName == null) { + throw new ApiException("Missing the required parameter 'projectName' when calling mapByVersionNameCloudPoolMapping(Async)"); + } + + // verify the required parameter 'projectVersionName' is set + if (projectVersionName == null) { + throw new ApiException("Missing the required parameter 'projectVersionName' when calling mapByVersionNameCloudPoolMapping(Async)"); + } + + + com.squareup.okhttp.Call call = mapByVersionNameCloudPoolMappingCall(projectName, projectVersionName, progressListener, progressRequestListener); + return call; + + } + + /** + * mapByVersionName + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @return ApiResultCloudPoolMapping + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolMapping mapByVersionNameCloudPoolMapping(String projectName, String projectVersionName) throws ApiException { + ApiResponse resp = mapByVersionNameCloudPoolMappingWithHttpInfo(projectName, projectVersionName); + return resp.getData(); + } + + /** + * mapByVersionName + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @return ApiResponse<ApiResultCloudPoolMapping> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse mapByVersionNameCloudPoolMappingWithHttpInfo(String projectName, String projectVersionName) throws ApiException { + com.squareup.okhttp.Call call = mapByVersionNameCloudPoolMappingValidateBeforeCall(projectName, projectVersionName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * mapByVersionName (asynchronously) + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call mapByVersionNameCloudPoolMappingAsync(String projectName, String projectVersionName, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = mapByVersionNameCloudPoolMappingValidateBeforeCall(projectName, projectVersionName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApi.java new file mode 100644 index 0000000..b12239a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemMetrics; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudSystemMetricsControllerApi { + private ApiClient apiClient; + + public CloudSystemMetricsControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudSystemMetricsControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getCloudSystemMetrics + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getCloudSystemMetricsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudsystem/metrics"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getCloudSystemMetricsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getCloudSystemMetricsCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultCloudSystemMetrics + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudSystemMetrics getCloudSystemMetrics() throws ApiException { + ApiResponse resp = getCloudSystemMetricsWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultCloudSystemMetrics> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getCloudSystemMetricsWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getCloudSystemMetricsValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getCloudSystemMetricsAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getCloudSystemMetricsValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApi.java new file mode 100644 index 0000000..f3c5ee2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemPollStatus; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudSystemPollStatusControllerApi { + private ApiClient apiClient; + + public CloudSystemPollStatusControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudSystemPollStatusControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getCloudSystemPollStatus + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getCloudSystemPollStatusCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudsystem/pollstatus"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getCloudSystemPollStatusValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getCloudSystemPollStatusCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultCloudSystemPollStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudSystemPollStatus getCloudSystemPollStatus() throws ApiException { + ApiResponse resp = getCloudSystemPollStatusWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultCloudSystemPollStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getCloudSystemPollStatusWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getCloudSystemPollStatusValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getCloudSystemPollStatusAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getCloudSystemPollStatusValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApi.java new file mode 100644 index 0000000..804ae96 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemSettings; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudSystemSettingsControllerApi { + private ApiClient apiClient; + + public CloudSystemSettingsControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudSystemSettingsControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getCloudSystemSettings + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getCloudSystemSettingsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudsystem/settings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getCloudSystemSettingsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getCloudSystemSettingsCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultCloudSystemSettings + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudSystemSettings getCloudSystemSettings() throws ApiException { + ApiResponse resp = getCloudSystemSettingsWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultCloudSystemSettings> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getCloudSystemSettingsWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getCloudSystemSettingsValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getCloudSystemSettingsAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getCloudSystemSettingsValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApi.java new file mode 100644 index 0000000..ef1a563 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApi.java @@ -0,0 +1,337 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudWorker; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudWorkerControllerApi { + private ApiClient apiClient; + + public CloudWorkerControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudWorkerControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listCloudWorker + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudWorkerCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudworkers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudWorkerValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listCloudWorkerCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudWorker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudWorker listCloudWorker(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + ApiResponse resp = listCloudWorkerWithHttpInfo(fields, start, limit, q, fulltextsearch, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudWorker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudWorkerWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCloudWorkerValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudWorkerAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudWorkerValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readCloudWorker + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readCloudWorkerCall(String uuid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudworkers/{uuid}" + .replaceAll("\\{" + "uuid" + "\\}", apiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readCloudWorkerValidateBeforeCall(String uuid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling readCloudWorker(Async)"); + } + + + com.squareup.okhttp.Call call = readCloudWorkerCall(uuid, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @return ApiResultCloudWorker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudWorker readCloudWorker(String uuid, String fields) throws ApiException { + ApiResponse resp = readCloudWorkerWithHttpInfo(uuid, fields); + return resp.getData(); + } + + /** + * read + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultCloudWorker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readCloudWorkerWithHttpInfo(String uuid, String fields) throws ApiException { + com.squareup.okhttp.Call call = readCloudWorkerValidateBeforeCall(uuid, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param uuid uuid (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readCloudWorkerAsync(String uuid, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readCloudWorkerValidateBeforeCall(uuid, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApi.java new file mode 100644 index 0000000..b649d2c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApi.java @@ -0,0 +1,739 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolWorkerActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; +import com.fortify.ssc.restclient.model.CloudPoolWorkerAssignRequest; +import com.fortify.ssc.restclient.model.CloudPoolWorkerDisableRequest; +import com.fortify.ssc.restclient.model.CloudPoolWorkerReplaceRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CloudWorkerOfCloudPoolControllerApi { + private ApiClient apiClient; + + public CloudWorkerOfCloudPoolControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CloudWorkerOfCloudPoolControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for assignCloudWorkerOfCloudPool + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call assignCloudWorkerOfCloudPoolCall(String parentId, CloudPoolWorkerAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/workers/action/assign" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call assignCloudWorkerOfCloudPoolValidateBeforeCall(String parentId, CloudPoolWorkerAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling assignCloudWorkerOfCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling assignCloudWorkerOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = assignCloudWorkerOfCloudPoolCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCloudPoolWorkerActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolWorkerActionResponse assignCloudWorkerOfCloudPool(String parentId, CloudPoolWorkerAssignRequest resource) throws ApiException { + ApiResponse resp = assignCloudWorkerOfCloudPoolWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPoolWorkerActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse assignCloudWorkerOfCloudPoolWithHttpInfo(String parentId, CloudPoolWorkerAssignRequest resource) throws ApiException { + com.squareup.okhttp.Call call = assignCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * assign (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call assignCloudWorkerOfCloudPoolAsync(String parentId, CloudPoolWorkerAssignRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = assignCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for disableCloudWorkerOfCloudPool + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call disableCloudWorkerOfCloudPoolCall(String parentId, CloudPoolWorkerDisableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/workers/action/disable" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call disableCloudWorkerOfCloudPoolValidateBeforeCall(String parentId, CloudPoolWorkerDisableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling disableCloudWorkerOfCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling disableCloudWorkerOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = disableCloudWorkerOfCloudPoolCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * disable + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCloudPoolWorkerActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolWorkerActionResponse disableCloudWorkerOfCloudPool(String parentId, CloudPoolWorkerDisableRequest resource) throws ApiException { + ApiResponse resp = disableCloudWorkerOfCloudPoolWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * disable + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPoolWorkerActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse disableCloudWorkerOfCloudPoolWithHttpInfo(String parentId, CloudPoolWorkerDisableRequest resource) throws ApiException { + com.squareup.okhttp.Call call = disableCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * disable (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call disableCloudWorkerOfCloudPoolAsync(String parentId, CloudPoolWorkerDisableRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = disableCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionCloudWorkerOfCloudPool + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionCloudWorkerOfCloudPoolCall(String parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/workers/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionCloudWorkerOfCloudPoolValidateBeforeCall(String parentId, ApiCollectionActionstring collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionCloudWorkerOfCloudPool(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionCloudWorkerOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = doActionCloudWorkerOfCloudPoolCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionCloudWorkerOfCloudPool(String parentId, ApiCollectionActionstring collectionAction) throws ApiException { + ApiResponse resp = doActionCloudWorkerOfCloudPoolWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionCloudWorkerOfCloudPoolWithHttpInfo(String parentId, ApiCollectionActionstring collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionCloudWorkerOfCloudPoolValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionCloudWorkerOfCloudPoolAsync(String parentId, ApiCollectionActionstring collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionCloudWorkerOfCloudPoolValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listCloudWorkerOfCloudPool + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCloudWorkerOfCloudPoolCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/workers" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCloudWorkerOfCloudPoolValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listCloudWorkerOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = listCloudWorkerOfCloudPoolCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudWorker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudWorker listCloudWorkerOfCloudPool(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + ApiResponse resp = listCloudWorkerOfCloudPoolWithHttpInfo(parentId, fields, start, limit, orderby); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudWorker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCloudWorkerOfCloudPoolWithHttpInfo(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCloudWorkerOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCloudWorkerOfCloudPoolAsync(String parentId, String fields, Integer start, Integer limit, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCloudWorkerOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for replaceCloudWorkerOfCloudPool + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call replaceCloudWorkerOfCloudPoolCall(String parentId, CloudPoolWorkerReplaceRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/workers/action/replace" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call replaceCloudWorkerOfCloudPoolValidateBeforeCall(String parentId, CloudPoolWorkerReplaceRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling replaceCloudWorkerOfCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling replaceCloudWorkerOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = replaceCloudWorkerOfCloudPoolCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * replace + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCloudPoolWorkerActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolWorkerActionResponse replaceCloudWorkerOfCloudPool(String parentId, CloudPoolWorkerReplaceRequest resource) throws ApiException { + ApiResponse resp = replaceCloudWorkerOfCloudPoolWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * replace + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPoolWorkerActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse replaceCloudWorkerOfCloudPoolWithHttpInfo(String parentId, CloudPoolWorkerReplaceRequest resource) throws ApiException { + com.squareup.okhttp.Call call = replaceCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * replace (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call replaceCloudWorkerOfCloudPoolAsync(String parentId, CloudPoolWorkerReplaceRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = replaceCloudWorkerOfCloudPoolValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ConfigurationControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ConfigurationControllerApi.java new file mode 100644 index 0000000..db64e8c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ConfigurationControllerApi.java @@ -0,0 +1,782 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultConfigProperties; +import com.fortify.ssc.restclient.model.ApiResultConfigProperty; +import com.fortify.ssc.restclient.model.ApiResultSearchIndexStatus; +import com.fortify.ssc.restclient.model.ConfigProperties; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ConfigurationControllerApi { + private ApiClient apiClient; + + public ConfigurationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ConfigurationControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getConfiguration + * @param group group (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getConfigurationCall(String group, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/configuration"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (group != null) + localVarQueryParams.addAll(apiClient.parameterToPair("group", group)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getConfigurationValidateBeforeCall(String group, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getConfigurationCall(group, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param group group (optional) + * @return ApiResultConfigProperties + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultConfigProperties getConfiguration(String group) throws ApiException { + ApiResponse resp = getConfigurationWithHttpInfo(group); + return resp.getData(); + } + + /** + * get + * + * @param group group (optional) + * @return ApiResponse<ApiResultConfigProperties> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getConfigurationWithHttpInfo(String group) throws ApiException { + com.squareup.okhttp.Call call = getConfigurationValidateBeforeCall(group, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param group group (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getConfigurationAsync(String group, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getConfigurationValidateBeforeCall(group, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getFullTextIndexStatusConfiguration + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getFullTextIndexStatusConfigurationCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/configuration/searchIndex"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getFullTextIndexStatusConfigurationValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getFullTextIndexStatusConfigurationCall(progressListener, progressRequestListener); + return call; + + } + + /** + * getFullTextIndexStatus + * + * @return ApiResultSearchIndexStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultSearchIndexStatus getFullTextIndexStatusConfiguration() throws ApiException { + ApiResponse resp = getFullTextIndexStatusConfigurationWithHttpInfo(); + return resp.getData(); + } + + /** + * getFullTextIndexStatus + * + * @return ApiResponse<ApiResultSearchIndexStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getFullTextIndexStatusConfigurationWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getFullTextIndexStatusConfigurationValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * getFullTextIndexStatus (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getFullTextIndexStatusConfigurationAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getFullTextIndexStatusConfigurationValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readConfiguration + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readConfigurationCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/configuration/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readConfigurationValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readConfiguration(Async)"); + } + + + com.squareup.okhttp.Call call = readConfigurationCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @return ApiResultConfigProperty + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultConfigProperty readConfiguration(String id) throws ApiException { + ApiResponse resp = readConfigurationWithHttpInfo(id); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @return ApiResponse<ApiResultConfigProperty> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readConfigurationWithHttpInfo(String id) throws ApiException { + com.squareup.okhttp.Call call = readConfigurationValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readConfigurationAsync(String id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readConfigurationValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateConfiguration + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateConfigurationCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/configuration"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateConfigurationValidateBeforeCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateConfiguration(Async)"); + } + + + com.squareup.okhttp.Call call = updateConfigurationCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResultConfigProperties + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultConfigProperties updateConfiguration(ConfigProperties resource) throws ApiException { + ApiResponse resp = updateConfigurationWithHttpInfo(resource); + return resp.getData(); + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResponse<ApiResultConfigProperties> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateConfigurationWithHttpInfo(ConfigProperties resource) throws ApiException { + com.squareup.okhttp.Call call = updateConfigurationValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateConfigurationAsync(ConfigProperties resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateConfigurationValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for validateAuditAssistantConnectionConfiguration + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call validateAuditAssistantConnectionConfigurationCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/configuration/validateAuditAssistantConnection"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call validateAuditAssistantConnectionConfigurationValidateBeforeCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling validateAuditAssistantConnectionConfiguration(Async)"); + } + + + com.squareup.okhttp.Call call = validateAuditAssistantConnectionConfigurationCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * validateAuditAssistantConnection + * + * @param resource resource (required) + * @return ApiResultConfigProperties + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultConfigProperties validateAuditAssistantConnectionConfiguration(ConfigProperties resource) throws ApiException { + ApiResponse resp = validateAuditAssistantConnectionConfigurationWithHttpInfo(resource); + return resp.getData(); + } + + /** + * validateAuditAssistantConnection + * + * @param resource resource (required) + * @return ApiResponse<ApiResultConfigProperties> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse validateAuditAssistantConnectionConfigurationWithHttpInfo(ConfigProperties resource) throws ApiException { + com.squareup.okhttp.Call call = validateAuditAssistantConnectionConfigurationValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * validateAuditAssistantConnection (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call validateAuditAssistantConnectionConfigurationAsync(ConfigProperties resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = validateAuditAssistantConnectionConfigurationValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for validateReportConnectionConfiguration + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call validateReportConnectionConfigurationCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/configuration/validateReportConnection"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call validateReportConnectionConfigurationValidateBeforeCall(ConfigProperties resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling validateReportConnectionConfiguration(Async)"); + } + + + com.squareup.okhttp.Call call = validateReportConnectionConfigurationCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * validateReportConnection + * + * @param resource resource (required) + * @return ApiResultConfigProperties + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultConfigProperties validateReportConnectionConfiguration(ConfigProperties resource) throws ApiException { + ApiResponse resp = validateReportConnectionConfigurationWithHttpInfo(resource); + return resp.getData(); + } + + /** + * validateReportConnection + * + * @param resource resource (required) + * @return ApiResponse<ApiResultConfigProperties> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse validateReportConnectionConfigurationWithHttpInfo(ConfigProperties resource) throws ApiException { + com.squareup.okhttp.Call call = validateReportConnectionConfigurationValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * validateReportConnection (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call validateReportConnectionConfigurationAsync(ConfigProperties resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = validateReportConnectionConfigurationValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CustomTagControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CustomTagControllerApi.java new file mode 100644 index 0000000..101444e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CustomTagControllerApi.java @@ -0,0 +1,834 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCustomTag; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CustomTag; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CustomTagControllerApi { + private ApiClient apiClient; + + public CustomTagControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CustomTagControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createCustomTag + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createCustomTagCall(CustomTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/customTags"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createCustomTagValidateBeforeCall(CustomTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling createCustomTag(Async)"); + } + + + com.squareup.okhttp.Call call = createCustomTagCall(data, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param data data (required) + * @return ApiResultCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCustomTag createCustomTag(CustomTag data) throws ApiException { + ApiResponse resp = createCustomTagWithHttpInfo(data); + return resp.getData(); + } + + /** + * create + * + * @param data data (required) + * @return ApiResponse<ApiResultCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createCustomTagWithHttpInfo(CustomTag data) throws ApiException { + com.squareup.okhttp.Call call = createCustomTagValidateBeforeCall(data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createCustomTagAsync(CustomTag data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createCustomTagValidateBeforeCall(data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteCustomTag + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteCustomTagCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/customTags/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteCustomTagValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteCustomTag(Async)"); + } + + + com.squareup.okhttp.Call call = deleteCustomTagCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteCustomTag(Long id) throws ApiException { + ApiResponse resp = deleteCustomTagWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteCustomTagWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteCustomTagValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteCustomTagAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteCustomTagValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listCustomTag + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCustomTagCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/customTags"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCustomTagValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listCustomTagCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCustomTag listCustomTag(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listCustomTagWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCustomTagWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCustomTagValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCustomTagAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCustomTagValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteCustomTag + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteCustomTagCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/customTags"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteCustomTagValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteCustomTag(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteCustomTagCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteCustomTag(String ids) throws ApiException { + ApiResponse resp = multiDeleteCustomTagWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteCustomTagWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteCustomTagValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteCustomTagAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteCustomTagValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readCustomTag + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readCustomTagCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/customTags/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readCustomTagValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readCustomTag(Async)"); + } + + + com.squareup.okhttp.Call call = readCustomTagCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCustomTag readCustomTag(Long id, String fields) throws ApiException { + ApiResponse resp = readCustomTagWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readCustomTagWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readCustomTagValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readCustomTagAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readCustomTagValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCustomTag + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCustomTagCall(Long id, CustomTag resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/customTags/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCustomTagValidateBeforeCall(Long id, CustomTag resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateCustomTag(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateCustomTag(Async)"); + } + + + com.squareup.okhttp.Call call = updateCustomTagCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCustomTag updateCustomTag(Long id, CustomTag resource) throws ApiException { + ApiResponse resp = updateCustomTagWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCustomTagWithHttpInfo(Long id, CustomTag resource) throws ApiException { + com.squareup.okhttp.Call call = updateCustomTagValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCustomTagAsync(Long id, CustomTag resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCustomTagValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApi.java new file mode 100644 index 0000000..6eef20d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApi.java @@ -0,0 +1,211 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CustomTagOfIssueTemplateControllerApi { + private ApiClient apiClient; + + public CustomTagOfIssueTemplateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CustomTagOfIssueTemplateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listCustomTagOfIssueTemplate + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCustomTagOfIssueTemplateCall(String parentId, String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueTemplates/{parentId}/customTags" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCustomTagOfIssueTemplateValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listCustomTagOfIssueTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = listCustomTagOfIssueTemplateCall(parentId, fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCustomTag listCustomTagOfIssueTemplate(String parentId, String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listCustomTagOfIssueTemplateWithHttpInfo(parentId, fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCustomTagOfIssueTemplateWithHttpInfo(String parentId, String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listCustomTagOfIssueTemplateValidateBeforeCall(parentId, fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCustomTagOfIssueTemplateAsync(String parentId, String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCustomTagOfIssueTemplateValidateBeforeCall(parentId, fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApi.java new file mode 100644 index 0000000..fa73dca --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApi.java @@ -0,0 +1,625 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCustomTag; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import com.fortify.ssc.restclient.model.CustomTag; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CustomTagOfProjectVersionControllerApi { + private ApiClient apiClient; + + public CustomTagOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public CustomTagOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createCustomTagOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createCustomTagOfProjectVersionCall(Long parentId, CustomTag resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/customTags" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createCustomTagOfProjectVersionValidateBeforeCall(Long parentId, CustomTag resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createCustomTagOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createCustomTagOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = createCustomTagOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCustomTag createCustomTagOfProjectVersion(Long parentId, CustomTag resource) throws ApiException { + ApiResponse resp = createCustomTagOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createCustomTagOfProjectVersionWithHttpInfo(Long parentId, CustomTag resource) throws ApiException { + com.squareup.okhttp.Call call = createCustomTagOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createCustomTagOfProjectVersionAsync(Long parentId, CustomTag resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createCustomTagOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listCustomTagOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param includeall includeall (optional, default to false) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listCustomTagOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, Boolean includeall, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/customTags" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (includeall != null) + localVarQueryParams.addAll(apiClient.parameterToPair("includeall", includeall)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listCustomTagOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, Boolean includeall, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listCustomTagOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listCustomTagOfProjectVersionCall(parentId, fields, start, limit, q, orderby, includeall, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param includeall includeall (optional, default to false) + * @return ApiResultListCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCustomTag listCustomTagOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, Boolean includeall) throws ApiException { + ApiResponse resp = listCustomTagOfProjectVersionWithHttpInfo(parentId, fields, start, limit, q, orderby, includeall); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param includeall includeall (optional, default to false) + * @return ApiResponse<ApiResultListCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listCustomTagOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, Boolean includeall) throws ApiException { + com.squareup.okhttp.Call call = listCustomTagOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, orderby, includeall, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param includeall includeall (optional, default to false) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listCustomTagOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, Boolean includeall, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listCustomTagOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, orderby, includeall, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionCustomTagOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionCustomTagOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/customTags" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionCustomTagOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionCustomTagOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionCustomTagOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionCustomTagOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCustomTag updateCollectionCustomTagOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionCustomTagOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionCustomTagOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionCustomTagOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionCustomTagOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionCustomTagOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCustomTagOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCustomTagOfProjectVersionCall(Long parentId, Long id, CustomTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/customTags/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCustomTagOfProjectVersionValidateBeforeCall(Long parentId, Long id, CustomTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCustomTagOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateCustomTagOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCustomTagOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCustomTagOfProjectVersionCall(parentId, id, data, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @return ApiResultCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCustomTag updateCustomTagOfProjectVersion(Long parentId, Long id, CustomTag data) throws ApiException { + ApiResponse resp = updateCustomTagOfProjectVersionWithHttpInfo(parentId, id, data); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @return ApiResponse<ApiResultCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCustomTagOfProjectVersionWithHttpInfo(Long parentId, Long id, CustomTag data) throws ApiException { + com.squareup.okhttp.Call call = updateCustomTagOfProjectVersionValidateBeforeCall(parentId, id, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCustomTagOfProjectVersionAsync(Long parentId, Long id, CustomTag data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCustomTagOfProjectVersionValidateBeforeCall(parentId, id, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApi.java new file mode 100644 index 0000000..a934457 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApi.java @@ -0,0 +1,243 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListDashboardVersion; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DashboardVersionControllerApi { + private ApiClient apiClient; + + public DashboardVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DashboardVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listDashboardVersion + * @param fields Output fields (optional) + * @param orderby Fields to order by (optional) + * @param groupby Fields to group by (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param aggregateby aggregateby (optional) + * @param startdate startdate (optional) + * @param enddate enddate (optional) + * @param attributes attributes (optional) + * @param variables variables (optional) + * @param performanceindicators performanceindicators (optional) + * @param attributefilter attributefilter (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listDashboardVersionCall(String fields, String orderby, String groupby, Integer start, Integer limit, String aggregateby, String startdate, String enddate, String attributes, String variables, String performanceindicators, String attributefilter, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dashboardVersions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (groupby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupby", groupby)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (aggregateby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("aggregateby", aggregateby)); + if (startdate != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startdate", startdate)); + if (enddate != null) + localVarQueryParams.addAll(apiClient.parameterToPair("enddate", enddate)); + if (attributes != null) + localVarQueryParams.addAll(apiClient.parameterToPair("attributes", attributes)); + if (variables != null) + localVarQueryParams.addAll(apiClient.parameterToPair("variables", variables)); + if (performanceindicators != null) + localVarQueryParams.addAll(apiClient.parameterToPair("performanceindicators", performanceindicators)); + if (attributefilter != null) + localVarQueryParams.addAll(apiClient.parameterToPair("attributefilter", attributefilter)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listDashboardVersionValidateBeforeCall(String fields, String orderby, String groupby, Integer start, Integer limit, String aggregateby, String startdate, String enddate, String attributes, String variables, String performanceindicators, String attributefilter, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listDashboardVersionCall(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param orderby Fields to order by (optional) + * @param groupby Fields to group by (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param aggregateby aggregateby (optional) + * @param startdate startdate (optional) + * @param enddate enddate (optional) + * @param attributes attributes (optional) + * @param variables variables (optional) + * @param performanceindicators performanceindicators (optional) + * @param attributefilter attributefilter (optional) + * @return ApiResultListDashboardVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListDashboardVersion listDashboardVersion(String fields, String orderby, String groupby, Integer start, Integer limit, String aggregateby, String startdate, String enddate, String attributes, String variables, String performanceindicators, String attributefilter) throws ApiException { + ApiResponse resp = listDashboardVersionWithHttpInfo(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param orderby Fields to order by (optional) + * @param groupby Fields to group by (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param aggregateby aggregateby (optional) + * @param startdate startdate (optional) + * @param enddate enddate (optional) + * @param attributes attributes (optional) + * @param variables variables (optional) + * @param performanceindicators performanceindicators (optional) + * @param attributefilter attributefilter (optional) + * @return ApiResponse<ApiResultListDashboardVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listDashboardVersionWithHttpInfo(String fields, String orderby, String groupby, Integer start, Integer limit, String aggregateby, String startdate, String enddate, String attributes, String variables, String performanceindicators, String attributefilter) throws ApiException { + com.squareup.okhttp.Call call = listDashboardVersionValidateBeforeCall(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param orderby Fields to order by (optional) + * @param groupby Fields to group by (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param aggregateby aggregateby (optional) + * @param startdate startdate (optional) + * @param enddate enddate (optional) + * @param attributes attributes (optional) + * @param variables variables (optional) + * @param performanceindicators performanceindicators (optional) + * @param attributefilter attributefilter (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listDashboardVersionAsync(String fields, String orderby, String groupby, Integer start, Integer limit, String aggregateby, String startdate, String enddate, String attributes, String variables, String performanceindicators, String attributefilter, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listDashboardVersionValidateBeforeCall(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/DataExportControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/DataExportControllerApi.java new file mode 100644 index 0000000..203ce0f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/DataExportControllerApi.java @@ -0,0 +1,707 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListDataExport; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ExportAuditToCSVRequest; +import com.fortify.ssc.restclient.model.ExportIssueStatsToCSVRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DataExportControllerApi { + private ApiClient apiClient; + + public DataExportControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DataExportControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for deleteDataExport + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteDataExportCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataExports/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteDataExportValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteDataExport(Async)"); + } + + + com.squareup.okhttp.Call call = deleteDataExportCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteDataExport(Long id) throws ApiException { + ApiResponse resp = deleteDataExportWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteDataExportWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteDataExportValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteDataExportAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteDataExportValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionDataExport + * @param collectionAction collectionAction (required) + * @param appversionid appversionid (optional) + * @param datasetname datasetname (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionDataExportCall(ApiCollectionActionlong collectionAction, String appversionid, String datasetname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/dataExports/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (appversionid != null) + localVarQueryParams.addAll(apiClient.parameterToPair("appversionid", appversionid)); + if (datasetname != null) + localVarQueryParams.addAll(apiClient.parameterToPair("datasetname", datasetname)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionDataExportValidateBeforeCall(ApiCollectionActionlong collectionAction, String appversionid, String datasetname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionDataExport(Async)"); + } + + + com.squareup.okhttp.Call call = doActionDataExportCall(collectionAction, appversionid, datasetname, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param collectionAction collectionAction (required) + * @param appversionid appversionid (optional) + * @param datasetname datasetname (optional) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionDataExport(ApiCollectionActionlong collectionAction, String appversionid, String datasetname) throws ApiException { + ApiResponse resp = doActionDataExportWithHttpInfo(collectionAction, appversionid, datasetname); + return resp.getData(); + } + + /** + * doAction + * + * @param collectionAction collectionAction (required) + * @param appversionid appversionid (optional) + * @param datasetname datasetname (optional) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionDataExportWithHttpInfo(ApiCollectionActionlong collectionAction, String appversionid, String datasetname) throws ApiException { + com.squareup.okhttp.Call call = doActionDataExportValidateBeforeCall(collectionAction, appversionid, datasetname, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param collectionAction collectionAction (required) + * @param appversionid appversionid (optional) + * @param datasetname datasetname (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionDataExportAsync(ApiCollectionActionlong collectionAction, String appversionid, String datasetname, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionDataExportValidateBeforeCall(collectionAction, appversionid, datasetname, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for exportAuditToCSVForDataExport + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call exportAuditToCSVForDataExportCall(ExportAuditToCSVRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/dataExports/action/exportAuditToCsv"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call exportAuditToCSVForDataExportValidateBeforeCall(ExportAuditToCSVRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling exportAuditToCSVForDataExport(Async)"); + } + + + com.squareup.okhttp.Call call = exportAuditToCSVForDataExportCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * exportAuditToCSVFor + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid exportAuditToCSVForDataExport(ExportAuditToCSVRequest resource) throws ApiException { + ApiResponse resp = exportAuditToCSVForDataExportWithHttpInfo(resource); + return resp.getData(); + } + + /** + * exportAuditToCSVFor + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse exportAuditToCSVForDataExportWithHttpInfo(ExportAuditToCSVRequest resource) throws ApiException { + com.squareup.okhttp.Call call = exportAuditToCSVForDataExportValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * exportAuditToCSVFor (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call exportAuditToCSVForDataExportAsync(ExportAuditToCSVRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = exportAuditToCSVForDataExportValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for exportIssuesStatsToCSVForDataExport + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call exportIssuesStatsToCSVForDataExportCall(ExportIssueStatsToCSVRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/dataExports/action/exportIssueStatsToCsv"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call exportIssuesStatsToCSVForDataExportValidateBeforeCall(ExportIssueStatsToCSVRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling exportIssuesStatsToCSVForDataExport(Async)"); + } + + + com.squareup.okhttp.Call call = exportIssuesStatsToCSVForDataExportCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * exportIssuesStatsToCSVFor + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid exportIssuesStatsToCSVForDataExport(ExportIssueStatsToCSVRequest resource) throws ApiException { + ApiResponse resp = exportIssuesStatsToCSVForDataExportWithHttpInfo(resource); + return resp.getData(); + } + + /** + * exportIssuesStatsToCSVFor + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse exportIssuesStatsToCSVForDataExportWithHttpInfo(ExportIssueStatsToCSVRequest resource) throws ApiException { + com.squareup.okhttp.Call call = exportIssuesStatsToCSVForDataExportValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * exportIssuesStatsToCSVFor (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call exportIssuesStatsToCSVForDataExportAsync(ExportIssueStatsToCSVRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = exportIssuesStatsToCSVForDataExportValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listDataExport + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listDataExportCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataExports"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listDataExportValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listDataExportCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListDataExport + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListDataExport listDataExport(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listDataExportWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListDataExport> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listDataExportWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listDataExportValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listDataExportAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listDataExportValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApi.java new file mode 100644 index 0000000..cca9dae --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApi.java @@ -0,0 +1,726 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequest; +import com.fortify.ssc.restclient.model.ApiResultListDynamicScanRequest; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.DynamicScanRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DynamicScanRequestOfProjectVersionControllerApi { + private ApiClient apiClient; + + public DynamicScanRequestOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DynamicScanRequestOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for cancelDynamicScanRequestOfProjectVersion + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call cancelDynamicScanRequestOfProjectVersionCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequests/{id}/action" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call cancelDynamicScanRequestOfProjectVersionValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling cancelDynamicScanRequestOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = cancelDynamicScanRequestOfProjectVersionCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * Cancel a Dynamic Scan Request + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid cancelDynamicScanRequestOfProjectVersion(Long id) throws ApiException { + ApiResponse resp = cancelDynamicScanRequestOfProjectVersionWithHttpInfo(id); + return resp.getData(); + } + + /** + * Cancel a Dynamic Scan Request + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse cancelDynamicScanRequestOfProjectVersionWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = cancelDynamicScanRequestOfProjectVersionValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Cancel a Dynamic Scan Request (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call cancelDynamicScanRequestOfProjectVersionAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = cancelDynamicScanRequestOfProjectVersionValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createDynamicScanRequestOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createDynamicScanRequestOfProjectVersionCall(Long parentId, DynamicScanRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequests" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createDynamicScanRequestOfProjectVersionValidateBeforeCall(Long parentId, DynamicScanRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createDynamicScanRequestOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createDynamicScanRequestOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = createDynamicScanRequestOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultDynamicScanRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultDynamicScanRequest createDynamicScanRequestOfProjectVersion(Long parentId, DynamicScanRequest resource) throws ApiException { + ApiResponse resp = createDynamicScanRequestOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultDynamicScanRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createDynamicScanRequestOfProjectVersionWithHttpInfo(Long parentId, DynamicScanRequest resource) throws ApiException { + com.squareup.okhttp.Call call = createDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createDynamicScanRequestOfProjectVersionAsync(Long parentId, DynamicScanRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listDynamicScanRequestOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listDynamicScanRequestOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequests" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listDynamicScanRequestOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listDynamicScanRequestOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listDynamicScanRequestOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListDynamicScanRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListDynamicScanRequest listDynamicScanRequestOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listDynamicScanRequestOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListDynamicScanRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listDynamicScanRequestOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listDynamicScanRequestOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readDynamicScanRequestOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readDynamicScanRequestOfProjectVersionCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequests/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readDynamicScanRequestOfProjectVersionValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readDynamicScanRequestOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readDynamicScanRequestOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readDynamicScanRequestOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultDynamicScanRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultDynamicScanRequest readDynamicScanRequestOfProjectVersion(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readDynamicScanRequestOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultDynamicScanRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readDynamicScanRequestOfProjectVersionWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readDynamicScanRequestOfProjectVersionAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateDynamicScanRequestOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateDynamicScanRequestOfProjectVersionCall(Long parentId, Long id, DynamicScanRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequests/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateDynamicScanRequestOfProjectVersionValidateBeforeCall(Long parentId, Long id, DynamicScanRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateDynamicScanRequestOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateDynamicScanRequestOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateDynamicScanRequestOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateDynamicScanRequestOfProjectVersionCall(parentId, id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param resource resource (required) + * @return ApiResultDynamicScanRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultDynamicScanRequest updateDynamicScanRequestOfProjectVersion(Long parentId, Long id, DynamicScanRequest resource) throws ApiException { + ApiResponse resp = updateDynamicScanRequestOfProjectVersionWithHttpInfo(parentId, id, resource); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultDynamicScanRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateDynamicScanRequestOfProjectVersionWithHttpInfo(Long parentId, Long id, DynamicScanRequest resource) throws ApiException { + com.squareup.okhttp.Call call = updateDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateDynamicScanRequestOfProjectVersionAsync(Long parentId, Long id, DynamicScanRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateDynamicScanRequestOfProjectVersionValidateBeforeCall(parentId, id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApi.java new file mode 100644 index 0000000..293a6b9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApi.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequestTemplate; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DynamicScanRequestTemplateOfProjectVersionControllerApi { + private ApiClient apiClient; + + public DynamicScanRequestTemplateOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DynamicScanRequestTemplateOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getDynamicScanRequestTemplateOfProjectVersion + * @param parentId parentId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getDynamicScanRequestTemplateOfProjectVersionCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequestTemplate" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getDynamicScanRequestTemplateOfProjectVersionValidateBeforeCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling getDynamicScanRequestTemplateOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = getDynamicScanRequestTemplateOfProjectVersionCall(parentId, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param parentId parentId (required) + * @return ApiResultDynamicScanRequestTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultDynamicScanRequestTemplate getDynamicScanRequestTemplateOfProjectVersion(Long parentId) throws ApiException { + ApiResponse resp = getDynamicScanRequestTemplateOfProjectVersionWithHttpInfo(parentId); + return resp.getData(); + } + + /** + * get + * + * @param parentId parentId (required) + * @return ApiResponse<ApiResultDynamicScanRequestTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getDynamicScanRequestTemplateOfProjectVersionWithHttpInfo(Long parentId) throws ApiException { + com.squareup.okhttp.Call call = getDynamicScanRequestTemplateOfProjectVersionValidateBeforeCall(parentId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param parentId parentId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getDynamicScanRequestTemplateOfProjectVersionAsync(Long parentId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getDynamicScanRequestTemplateOfProjectVersionValidateBeforeCall(parentId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApi.java new file mode 100644 index 0000000..cbe931b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApi.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequestsSummary; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DynamicScanRequestsSummaryOfProjectVersionControllerApi { + private ApiClient apiClient; + + public DynamicScanRequestsSummaryOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DynamicScanRequestsSummaryOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getDynamicScanRequestsSummaryOfProjectVersion + * @param parentId parentId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getDynamicScanRequestsSummaryOfProjectVersionCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/dynamicScanRequestsSummary" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getDynamicScanRequestsSummaryOfProjectVersionValidateBeforeCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling getDynamicScanRequestsSummaryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = getDynamicScanRequestsSummaryOfProjectVersionCall(parentId, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param parentId parentId (required) + * @return ApiResultDynamicScanRequestsSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultDynamicScanRequestsSummary getDynamicScanRequestsSummaryOfProjectVersion(Long parentId) throws ApiException { + ApiResponse resp = getDynamicScanRequestsSummaryOfProjectVersionWithHttpInfo(parentId); + return resp.getData(); + } + + /** + * get + * + * @param parentId parentId (required) + * @return ApiResponse<ApiResultDynamicScanRequestsSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getDynamicScanRequestsSummaryOfProjectVersionWithHttpInfo(Long parentId) throws ApiException { + com.squareup.okhttp.Call call = getDynamicScanRequestsSummaryOfProjectVersionValidateBeforeCall(parentId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param parentId parentId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getDynamicScanRequestsSummaryOfProjectVersionAsync(Long parentId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getDynamicScanRequestsSummaryOfProjectVersionValidateBeforeCall(parentId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/EngineTypeControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/EngineTypeControllerApi.java new file mode 100644 index 0000000..d0ec032 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/EngineTypeControllerApi.java @@ -0,0 +1,177 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListEngineType; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class EngineTypeControllerApi { + private ApiClient apiClient; + + public EngineTypeControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public EngineTypeControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listEngineType + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listEngineTypeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/engineTypes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listEngineTypeValidateBeforeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listEngineTypeCall(fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResultListEngineType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListEngineType listEngineType(String fields) throws ApiException { + ApiResponse resp = listEngineTypeWithHttpInfo(fields); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListEngineType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listEngineTypeWithHttpInfo(String fields) throws ApiException { + com.squareup.okhttp.Call call = listEngineTypeValidateBeforeCall(fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listEngineTypeAsync(String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listEngineTypeValidateBeforeCall(fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/EventLogControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/EventLogControllerApi.java new file mode 100644 index 0000000..92b274a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/EventLogControllerApi.java @@ -0,0 +1,201 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListEventLog; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class EventLogControllerApi { + private ApiClient apiClient; + + public EventLogControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public EventLogControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listEventLog + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listEventLogCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/events"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listEventLogValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listEventLogCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListEventLog + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListEventLog listEventLog(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listEventLogWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListEventLog> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listEventLogWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listEventLogValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listEventLogAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listEventLogValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/FeatureControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/FeatureControllerApi.java new file mode 100644 index 0000000..fec0985 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/FeatureControllerApi.java @@ -0,0 +1,337 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFeature; +import com.fortify.ssc.restclient.model.ApiResultListFeature; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FeatureControllerApi { + private ApiClient apiClient; + + public FeatureControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public FeatureControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listFeature + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param useStableApi use_stable_api (optional, default to true) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listFeatureCall(String fields, Integer start, Integer limit, String q, String orderby, Boolean useStableApi, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/features"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (useStableApi != null) + localVarQueryParams.addAll(apiClient.parameterToPair("use_stable_api", useStableApi)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listFeatureValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, Boolean useStableApi, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listFeatureCall(fields, start, limit, q, orderby, useStableApi, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param useStableApi use_stable_api (optional, default to true) + * @return ApiResultListFeature + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListFeature listFeature(String fields, Integer start, Integer limit, String q, String orderby, Boolean useStableApi) throws ApiException { + ApiResponse resp = listFeatureWithHttpInfo(fields, start, limit, q, orderby, useStableApi); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param useStableApi use_stable_api (optional, default to true) + * @return ApiResponse<ApiResultListFeature> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listFeatureWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby, Boolean useStableApi) throws ApiException { + com.squareup.okhttp.Call call = listFeatureValidateBeforeCall(fields, start, limit, q, orderby, useStableApi, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param useStableApi use_stable_api (optional, default to true) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listFeatureAsync(String fields, Integer start, Integer limit, String q, String orderby, Boolean useStableApi, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listFeatureValidateBeforeCall(fields, start, limit, q, orderby, useStableApi, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readFeature + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readFeatureCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/features/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readFeatureValidateBeforeCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readFeature(Async)"); + } + + + com.squareup.okhttp.Call call = readFeatureCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultFeature + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultFeature readFeature(String id, String fields) throws ApiException { + ApiResponse resp = readFeatureWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultFeature> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readFeatureWithHttpInfo(String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readFeatureValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readFeatureAsync(String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readFeatureValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/FileTokenControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/FileTokenControllerApi.java new file mode 100644 index 0000000..559d29a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/FileTokenControllerApi.java @@ -0,0 +1,295 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFileToken; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.FileToken; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FileTokenControllerApi { + private ApiClient apiClient; + + public FileTokenControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public FileTokenControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createFileToken + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createFileTokenCall(FileToken resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/fileTokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createFileTokenValidateBeforeCall(FileToken resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createFileToken(Async)"); + } + + + com.squareup.okhttp.Call call = createFileTokenCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * Create single-use file transfer token + * + * @param resource resource (required) + * @return ApiResultFileToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultFileToken createFileToken(FileToken resource) throws ApiException { + ApiResponse resp = createFileTokenWithHttpInfo(resource); + return resp.getData(); + } + + /** + * Create single-use file transfer token + * + * @param resource resource (required) + * @return ApiResponse<ApiResultFileToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createFileTokenWithHttpInfo(FileToken resource) throws ApiException { + com.squareup.okhttp.Call call = createFileTokenValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create single-use file transfer token (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createFileTokenAsync(FileToken resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createFileTokenValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteFileToken + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteFileTokenCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/fileTokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteFileTokenValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = multiDeleteFileTokenCall(progressListener, progressRequestListener); + return call; + + } + + /** + * Call this operation after every file upload activity + * + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteFileToken() throws ApiException { + ApiResponse resp = multiDeleteFileTokenWithHttpInfo(); + return resp.getData(); + } + + /** + * Call this operation after every file upload activity + * + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteFileTokenWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = multiDeleteFileTokenValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Call this operation after every file upload activity (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteFileTokenAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteFileTokenValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApi.java new file mode 100644 index 0000000..fcca785 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApi.java @@ -0,0 +1,199 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListFilterSet; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FilterSetOfProjectVersionControllerApi { + private ApiClient apiClient; + + public FilterSetOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public FilterSetOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listFilterSetOfProjectVersion + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listFilterSetOfProjectVersionCall(Long parentId, Integer start, Integer limit, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/filterSets" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listFilterSetOfProjectVersionValidateBeforeCall(Long parentId, Integer start, Integer limit, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listFilterSetOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listFilterSetOfProjectVersionCall(parentId, start, limit, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param fields Output fields (optional) + * @return ApiResultListFilterSet + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListFilterSet listFilterSetOfProjectVersion(Long parentId, Integer start, Integer limit, String fields) throws ApiException { + ApiResponse resp = listFilterSetOfProjectVersionWithHttpInfo(parentId, start, limit, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListFilterSet> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listFilterSetOfProjectVersionWithHttpInfo(Long parentId, Integer start, Integer limit, String fields) throws ApiException { + com.squareup.okhttp.Call call = listFilterSetOfProjectVersionValidateBeforeCall(parentId, start, limit, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listFilterSetOfProjectVersionAsync(Long parentId, Integer start, Integer limit, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listFilterSetOfProjectVersionValidateBeforeCall(parentId, start, limit, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/FolderControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/FolderControllerApi.java new file mode 100644 index 0000000..580acdc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/FolderControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultArraystring; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FolderControllerApi { + private ApiClient apiClient; + + public FolderControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public FolderControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getFolder + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getFolderCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/folders"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getFolderValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getFolderCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultArraystring + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultArraystring getFolder() throws ApiException { + ApiResponse resp = getFolderWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultArraystring> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getFolderWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getFolderValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getFolderAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getFolderValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApi.java new file mode 100644 index 0000000..688f568 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApi.java @@ -0,0 +1,315 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFolder; +import com.fortify.ssc.restclient.model.ApiResultListFolder; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FolderOfProjectVersionControllerApi { + private ApiClient apiClient; + + public FolderOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public FolderOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listFolderOfProjectVersion + * @param parentId parentId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listFolderOfProjectVersionCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/folders" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listFolderOfProjectVersionValidateBeforeCall(Long parentId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listFolderOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listFolderOfProjectVersionCall(parentId, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @return ApiResultListFolder + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListFolder listFolderOfProjectVersion(Long parentId) throws ApiException { + ApiResponse resp = listFolderOfProjectVersionWithHttpInfo(parentId); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @return ApiResponse<ApiResultListFolder> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listFolderOfProjectVersionWithHttpInfo(Long parentId) throws ApiException { + com.squareup.okhttp.Call call = listFolderOfProjectVersionValidateBeforeCall(parentId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listFolderOfProjectVersionAsync(Long parentId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listFolderOfProjectVersionValidateBeforeCall(parentId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readFolderOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readFolderOfProjectVersionCall(Long parentId, Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/folders/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readFolderOfProjectVersionValidateBeforeCall(Long parentId, Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readFolderOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readFolderOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readFolderOfProjectVersionCall(parentId, id, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @return ApiResultFolder + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultFolder readFolderOfProjectVersion(Long parentId, Long id) throws ApiException { + ApiResponse resp = readFolderOfProjectVersionWithHttpInfo(parentId, id); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @return ApiResponse<ApiResultFolder> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readFolderOfProjectVersionWithHttpInfo(Long parentId, Long id) throws ApiException { + com.squareup.okhttp.Call call = readFolderOfProjectVersionValidateBeforeCall(parentId, id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readFolderOfProjectVersionAsync(Long parentId, Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readFolderOfProjectVersionValidateBeforeCall(parentId, id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApi.java new file mode 100644 index 0000000..bc64407 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApi.java @@ -0,0 +1,211 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GroupOfAuthEntityControllerApi { + private ApiClient apiClient; + + public GroupOfAuthEntityControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public GroupOfAuthEntityControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listGroupOfAuthEntity + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listGroupOfAuthEntityCall(String parentId, String fields, Integer start, Integer limit, String q, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/groups" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listGroupOfAuthEntityValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, String q, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listGroupOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = listGroupOfAuthEntityCall(parentId, fields, start, limit, q, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @return ApiResultListAuthenticationEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListAuthenticationEntity listGroupOfAuthEntity(String parentId, String fields, Integer start, Integer limit, String q, String embed) throws ApiException { + ApiResponse resp = listGroupOfAuthEntityWithHttpInfo(parentId, fields, start, limit, q, embed); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultListAuthenticationEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listGroupOfAuthEntityWithHttpInfo(String parentId, String fields, Integer start, Integer limit, String q, String embed) throws ApiException { + com.squareup.okhttp.Call call = listGroupOfAuthEntityValidateBeforeCall(parentId, fields, start, limit, q, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listGroupOfAuthEntityAsync(String parentId, String fields, Integer start, Integer limit, String q, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listGroupOfAuthEntityValidateBeforeCall(parentId, fields, start, limit, q, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IidMigrationControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IidMigrationControllerApi.java new file mode 100644 index 0000000..f33aef9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IidMigrationControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIIDMigration; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IidMigrationControllerApi { + private ApiClient apiClient; + + public IidMigrationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IidMigrationControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for readIidMigration + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIidMigrationCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/iidMigrations/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIidMigrationValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIidMigration(Async)"); + } + + + com.squareup.okhttp.Call call = readIidMigrationCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultIIDMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIIDMigration readIidMigration(Long id, String fields) throws ApiException { + ApiResponse resp = readIidMigrationWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIIDMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIidMigrationWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIidMigrationValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIidMigrationAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIidMigrationValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApi.java new file mode 100644 index 0000000..f4fa241 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApi.java @@ -0,0 +1,321 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIIDMigration; +import com.fortify.ssc.restclient.model.ApiResultListIIDMigration; +import com.fortify.ssc.restclient.model.IIDMigration; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IidMigrationOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IidMigrationOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IidMigrationOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createIidMigrationOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createIidMigrationOfProjectVersionCall(Long parentId, IIDMigration data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/iidMigrations" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createIidMigrationOfProjectVersionValidateBeforeCall(Long parentId, IIDMigration data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createIidMigrationOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling createIidMigrationOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = createIidMigrationOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultIIDMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIIDMigration createIidMigrationOfProjectVersion(Long parentId, IIDMigration data) throws ApiException { + ApiResponse resp = createIidMigrationOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultIIDMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createIidMigrationOfProjectVersionWithHttpInfo(Long parentId, IIDMigration data) throws ApiException { + com.squareup.okhttp.Call call = createIidMigrationOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createIidMigrationOfProjectVersionAsync(Long parentId, IIDMigration data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createIidMigrationOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listIidMigrationOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIidMigrationOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/iidMigrations" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIidMigrationOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIidMigrationOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIidMigrationOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListIIDMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIIDMigration listIidMigrationOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listIidMigrationOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListIIDMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIidMigrationOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listIidMigrationOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIidMigrationOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIidMigrationOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApi.java new file mode 100644 index 0000000..6d9b535 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApi.java @@ -0,0 +1,201 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InternalCustomTagControllerApi { + private ApiClient apiClient; + + public InternalCustomTagControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public InternalCustomTagControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listInternalCustomTag + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listInternalCustomTagCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/internalCustomTags"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listInternalCustomTagValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listInternalCustomTagCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListCustomTag + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCustomTag listInternalCustomTag(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listInternalCustomTagWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCustomTag> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listInternalCustomTagWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listInternalCustomTagValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listInternalCustomTagAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listInternalCustomTagValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAgingControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingControllerApi.java new file mode 100644 index 0000000..e4274c4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingControllerApi.java @@ -0,0 +1,273 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAgingDto; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAgingControllerApi { + private ApiClient apiClient; + + public IssueAgingControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAgingControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueAging + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param aggregateby aggregateby (optional) + * @param groupguid groupguid (optional) + * @param groupvalue groupvalue (optional) + * @param name name (optional) + * @param numberOfApplicationVersions numberOfApplicationVersions (optional) + * @param linesOfCode linesOfCode (optional) + * @param issuesPendingReview issuesPendingReview (optional) + * @param openIssues openIssues (optional) + * @param filesScanned filesScanned (optional) + * @param bugDensity bugDensity (optional) + * @param averageDaysToReview averageDaysToReview (optional) + * @param averageDaysToRemediate averageDaysToRemediate (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAgingCall(String orderby, String fields, Integer start, Integer limit, String filterby, String aggregateby, String groupguid, String groupvalue, String name, String numberOfApplicationVersions, String linesOfCode, String issuesPendingReview, String openIssues, String filesScanned, String bugDensity, String averageDaysToReview, String averageDaysToRemediate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueaging"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (filterby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterby", filterby)); + if (aggregateby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("aggregateby", aggregateby)); + if (groupguid != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupguid", groupguid)); + if (groupvalue != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupvalue", groupvalue)); + if (name != null) + localVarQueryParams.addAll(apiClient.parameterToPair("name", name)); + if (numberOfApplicationVersions != null) + localVarQueryParams.addAll(apiClient.parameterToPair("numberOfApplicationVersions", numberOfApplicationVersions)); + if (linesOfCode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("linesOfCode", linesOfCode)); + if (issuesPendingReview != null) + localVarQueryParams.addAll(apiClient.parameterToPair("issuesPendingReview", issuesPendingReview)); + if (openIssues != null) + localVarQueryParams.addAll(apiClient.parameterToPair("openIssues", openIssues)); + if (filesScanned != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filesScanned", filesScanned)); + if (bugDensity != null) + localVarQueryParams.addAll(apiClient.parameterToPair("bugDensity", bugDensity)); + if (averageDaysToReview != null) + localVarQueryParams.addAll(apiClient.parameterToPair("averageDaysToReview", averageDaysToReview)); + if (averageDaysToRemediate != null) + localVarQueryParams.addAll(apiClient.parameterToPair("averageDaysToRemediate", averageDaysToRemediate)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAgingValidateBeforeCall(String orderby, String fields, Integer start, Integer limit, String filterby, String aggregateby, String groupguid, String groupvalue, String name, String numberOfApplicationVersions, String linesOfCode, String issuesPendingReview, String openIssues, String filesScanned, String bugDensity, String averageDaysToReview, String averageDaysToRemediate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listIssueAgingCall(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param aggregateby aggregateby (optional) + * @param groupguid groupguid (optional) + * @param groupvalue groupvalue (optional) + * @param name name (optional) + * @param numberOfApplicationVersions numberOfApplicationVersions (optional) + * @param linesOfCode linesOfCode (optional) + * @param issuesPendingReview issuesPendingReview (optional) + * @param openIssues openIssues (optional) + * @param filesScanned filesScanned (optional) + * @param bugDensity bugDensity (optional) + * @param averageDaysToReview averageDaysToReview (optional) + * @param averageDaysToRemediate averageDaysToRemediate (optional) + * @return ApiResultListIssueAgingDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAgingDto listIssueAging(String orderby, String fields, Integer start, Integer limit, String filterby, String aggregateby, String groupguid, String groupvalue, String name, String numberOfApplicationVersions, String linesOfCode, String issuesPendingReview, String openIssues, String filesScanned, String bugDensity, String averageDaysToReview, String averageDaysToRemediate) throws ApiException { + ApiResponse resp = listIssueAgingWithHttpInfo(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate); + return resp.getData(); + } + + /** + * list + * + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param aggregateby aggregateby (optional) + * @param groupguid groupguid (optional) + * @param groupvalue groupvalue (optional) + * @param name name (optional) + * @param numberOfApplicationVersions numberOfApplicationVersions (optional) + * @param linesOfCode linesOfCode (optional) + * @param issuesPendingReview issuesPendingReview (optional) + * @param openIssues openIssues (optional) + * @param filesScanned filesScanned (optional) + * @param bugDensity bugDensity (optional) + * @param averageDaysToReview averageDaysToReview (optional) + * @param averageDaysToRemediate averageDaysToRemediate (optional) + * @return ApiResponse<ApiResultListIssueAgingDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAgingWithHttpInfo(String orderby, String fields, Integer start, Integer limit, String filterby, String aggregateby, String groupguid, String groupvalue, String name, String numberOfApplicationVersions, String linesOfCode, String issuesPendingReview, String openIssues, String filesScanned, String bugDensity, String averageDaysToReview, String averageDaysToRemediate) throws ApiException { + com.squareup.okhttp.Call call = listIssueAgingValidateBeforeCall(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param aggregateby aggregateby (optional) + * @param groupguid groupguid (optional) + * @param groupvalue groupvalue (optional) + * @param name name (optional) + * @param numberOfApplicationVersions numberOfApplicationVersions (optional) + * @param linesOfCode linesOfCode (optional) + * @param issuesPendingReview issuesPendingReview (optional) + * @param openIssues openIssues (optional) + * @param filesScanned filesScanned (optional) + * @param bugDensity bugDensity (optional) + * @param averageDaysToReview averageDaysToReview (optional) + * @param averageDaysToRemediate averageDaysToRemediate (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAgingAsync(String orderby, String fields, Integer start, Integer limit, String filterby, String aggregateby, String groupguid, String groupvalue, String name, String numberOfApplicationVersions, String linesOfCode, String issuesPendingReview, String openIssues, String filesScanned, String bugDensity, String averageDaysToReview, String averageDaysToRemediate, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAgingValidateBeforeCall(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApi.java new file mode 100644 index 0000000..5ee53b1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApi.java @@ -0,0 +1,201 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAgingGroupDto; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAgingGroupControllerApi { + private ApiClient apiClient; + + public IssueAgingGroupControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAgingGroupControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueAgingGroup + * @param groupby Fields to group by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAgingGroupCall(String groupby, String fields, Integer start, Integer limit, String filterby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueaginggroup"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (groupby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupby", groupby)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (filterby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterby", filterby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAgingGroupValidateBeforeCall(String groupby, String fields, Integer start, Integer limit, String filterby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listIssueAgingGroupCall(groupby, fields, start, limit, filterby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param groupby Fields to group by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @return ApiResultListIssueAgingGroupDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAgingGroupDto listIssueAgingGroup(String groupby, String fields, Integer start, Integer limit, String filterby) throws ApiException { + ApiResponse resp = listIssueAgingGroupWithHttpInfo(groupby, fields, start, limit, filterby); + return resp.getData(); + } + + /** + * list + * + * @param groupby Fields to group by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @return ApiResponse<ApiResultListIssueAgingGroupDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAgingGroupWithHttpInfo(String groupby, String fields, Integer start, Integer limit, String filterby) throws ApiException { + com.squareup.okhttp.Call call = listIssueAgingGroupValidateBeforeCall(groupby, fields, start, limit, filterby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param groupby Fields to group by (optional) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param filterby filterby (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAgingGroupAsync(String groupby, String fields, Integer start, Integer limit, String filterby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAgingGroupValidateBeforeCall(groupby, fields, start, limit, filterby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApi.java new file mode 100644 index 0000000..46e9d3b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAgingPortlet; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAgingPortletControllerApi { + private ApiClient apiClient; + + public IssueAgingPortletControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAgingPortletControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getIssueAgingPortlet + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getIssueAgingPortletCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/portlets/issueaging"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getIssueAgingPortletValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getIssueAgingPortletCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultIssueAgingPortlet + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAgingPortlet getIssueAgingPortlet() throws ApiException { + ApiResponse resp = getIssueAgingPortletWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultIssueAgingPortlet> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getIssueAgingPortletWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getIssueAgingPortletValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getIssueAgingPortletAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getIssueAgingPortletValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApi.java new file mode 100644 index 0000000..5947f0d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApi.java @@ -0,0 +1,345 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAssignment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAssignment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAssignmentOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueAssignmentOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAssignmentOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueAssignmentOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param entityname entityname (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAssignmentOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String entityname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueAssignment" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (entityname != null) + localVarQueryParams.addAll(apiClient.parameterToPair("entityname", entityname)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAssignmentOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String entityname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueAssignmentOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueAssignmentOfProjectVersionCall(parentId, fields, start, limit, entityname, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param entityname entityname (optional) + * @return ApiResultListIssueAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAssignment listIssueAssignmentOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String entityname) throws ApiException { + ApiResponse resp = listIssueAssignmentOfProjectVersionWithHttpInfo(parentId, fields, start, limit, entityname); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param entityname entityname (optional) + * @return ApiResponse<ApiResultListIssueAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAssignmentOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String entityname) throws ApiException { + com.squareup.okhttp.Call call = listIssueAssignmentOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, entityname, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param entityname entityname (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAssignmentOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String entityname, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAssignmentOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, entityname, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueAssignmentOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueAssignmentOfProjectVersionCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueAssignment/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueAssignmentOfProjectVersionValidateBeforeCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readIssueAssignmentOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueAssignmentOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueAssignmentOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultIssueAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAssignment readIssueAssignmentOfProjectVersion(Long parentId, String id, String fields) throws ApiException { + ApiResponse resp = readIssueAssignmentOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueAssignmentOfProjectVersionWithHttpInfo(Long parentId, String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueAssignmentOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueAssignmentOfProjectVersionAsync(Long parentId, String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueAssignmentOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApi.java new file mode 100644 index 0000000..2d3cb0c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApi.java @@ -0,0 +1,876 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAttachment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAttachment; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.IssueAttachment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAttachmentOfIssueControllerApi { + private ApiClient apiClient; + + public IssueAttachmentOfIssueControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAttachmentOfIssueControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createIssueAttachmentOfIssueCall(Long parentId, IssueAttachment resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createIssueAttachmentOfIssueValidateBeforeCall(Long parentId, IssueAttachment resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = createIssueAttachmentOfIssueCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAttachment createIssueAttachmentOfIssue(Long parentId, IssueAttachment resource) throws ApiException { + ApiResponse resp = createIssueAttachmentOfIssueWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createIssueAttachmentOfIssueWithHttpInfo(Long parentId, IssueAttachment resource) throws ApiException { + com.squareup.okhttp.Call call = createIssueAttachmentOfIssueValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createIssueAttachmentOfIssueAsync(Long parentId, IssueAttachment resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createIssueAttachmentOfIssueValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteIssueAttachmentOfIssueCall(Long parentId, Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteIssueAttachmentOfIssueValidateBeforeCall(Long parentId, Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling deleteIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = deleteIssueAttachmentOfIssueCall(parentId, id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param parentId parentId (required) + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteIssueAttachmentOfIssue(Long parentId, Long id) throws ApiException { + ApiResponse resp = deleteIssueAttachmentOfIssueWithHttpInfo(parentId, id); + return resp.getData(); + } + + /** + * delete + * + * @param parentId parentId (required) + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteIssueAttachmentOfIssueWithHttpInfo(Long parentId, Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteIssueAttachmentOfIssueValidateBeforeCall(parentId, id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteIssueAttachmentOfIssueAsync(Long parentId, Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteIssueAttachmentOfIssueValidateBeforeCall(parentId, id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAttachmentOfIssueCall(Long parentId, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAttachmentOfIssueValidateBeforeCall(Long parentId, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueAttachmentOfIssueCall(parentId, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListIssueAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAttachment listIssueAttachmentOfIssue(Long parentId, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listIssueAttachmentOfIssueWithHttpInfo(parentId, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListIssueAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAttachmentOfIssueWithHttpInfo(Long parentId, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listIssueAttachmentOfIssueValidateBeforeCall(parentId, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAttachmentOfIssueAsync(Long parentId, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAttachmentOfIssueValidateBeforeCall(parentId, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteIssueAttachmentOfIssueCall(Long parentId, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteIssueAttachmentOfIssueValidateBeforeCall(Long parentId, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling multiDeleteIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteIssueAttachmentOfIssueCall(parentId, ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteIssueAttachmentOfIssue(Long parentId, String ids) throws ApiException { + ApiResponse resp = multiDeleteIssueAttachmentOfIssueWithHttpInfo(parentId, ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteIssueAttachmentOfIssueWithHttpInfo(Long parentId, String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteIssueAttachmentOfIssueValidateBeforeCall(parentId, ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteIssueAttachmentOfIssueAsync(Long parentId, String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteIssueAttachmentOfIssueValidateBeforeCall(parentId, ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueAttachmentOfIssueCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueAttachmentOfIssueValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueAttachmentOfIssueCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultIssueAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAttachment readIssueAttachmentOfIssue(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readIssueAttachmentOfIssueWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueAttachmentOfIssueWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueAttachmentOfIssueValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueAttachmentOfIssueAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueAttachmentOfIssueValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateIssueAttachmentOfIssue + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateIssueAttachmentOfIssueCall(Long parentId, Long id, IssueAttachment data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/issues/{parentId}/attachments/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateIssueAttachmentOfIssueValidateBeforeCall(Long parentId, Long id, IssueAttachment data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateIssueAttachmentOfIssue(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateIssueAttachmentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = updateIssueAttachmentOfIssueCall(parentId, id, data, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @return ApiResultIssueAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAttachment updateIssueAttachmentOfIssue(Long parentId, Long id, IssueAttachment data) throws ApiException { + ApiResponse resp = updateIssueAttachmentOfIssueWithHttpInfo(parentId, id, data); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @return ApiResponse<ApiResultIssueAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateIssueAttachmentOfIssueWithHttpInfo(Long parentId, Long id, IssueAttachment data) throws ApiException { + com.squareup.okhttp.Call call = updateIssueAttachmentOfIssueValidateBeforeCall(parentId, id, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateIssueAttachmentOfIssueAsync(Long parentId, Long id, IssueAttachment data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateIssueAttachmentOfIssueValidateBeforeCall(parentId, id, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApi.java new file mode 100644 index 0000000..323f8b0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApi.java @@ -0,0 +1,211 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditComment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAuditCommentControllerApi { + private ApiClient apiClient; + + public IssueAuditCommentControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAuditCommentControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueAuditComment + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAuditCommentCall(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/comments"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAuditCommentValidateBeforeCall(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'q' is set + if (q == null) { + throw new ApiException("Missing the required parameter 'q' when calling listIssueAuditComment(Async)"); + } + + // verify the required parameter 'fulltextsearch' is set + if (fulltextsearch == null) { + throw new ApiException("Missing the required parameter 'fulltextsearch' when calling listIssueAuditComment(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueAuditCommentCall(q, fulltextsearch, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListIssueAuditComment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAuditComment listIssueAuditComment(String q, String fulltextsearch, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listIssueAuditCommentWithHttpInfo(q, fulltextsearch, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListIssueAuditComment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAuditCommentWithHttpInfo(String q, String fulltextsearch, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listIssueAuditCommentValidateBeforeCall(q, fulltextsearch, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAuditCommentAsync(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAuditCommentValidateBeforeCall(q, fulltextsearch, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApi.java new file mode 100644 index 0000000..6dcc2f9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApi.java @@ -0,0 +1,327 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAuditComment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditComment; +import com.fortify.ssc.restclient.model.IssueAuditComment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueAuditCommentOfIssueControllerApi { + private ApiClient apiClient; + + public IssueAuditCommentOfIssueControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueAuditCommentOfIssueControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createIssueAuditCommentOfIssue + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createIssueAuditCommentOfIssueCall(Long parentId, IssueAuditComment resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/issues/{parentId}/comments" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createIssueAuditCommentOfIssueValidateBeforeCall(Long parentId, IssueAuditComment resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createIssueAuditCommentOfIssue(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createIssueAuditCommentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = createIssueAuditCommentOfIssueCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueAuditComment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueAuditComment createIssueAuditCommentOfIssue(Long parentId, IssueAuditComment resource) throws ApiException { + ApiResponse resp = createIssueAuditCommentOfIssueWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueAuditComment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createIssueAuditCommentOfIssueWithHttpInfo(Long parentId, IssueAuditComment resource) throws ApiException { + com.squareup.okhttp.Call call = createIssueAuditCommentOfIssueValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createIssueAuditCommentOfIssueAsync(Long parentId, IssueAuditComment resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createIssueAuditCommentOfIssueValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listIssueAuditCommentOfIssue + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueAuditCommentOfIssueCall(Long parentId, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{parentId}/comments" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueAuditCommentOfIssueValidateBeforeCall(Long parentId, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueAuditCommentOfIssue(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueAuditCommentOfIssueCall(parentId, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListIssueAuditComment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueAuditComment listIssueAuditCommentOfIssue(Long parentId, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listIssueAuditCommentOfIssueWithHttpInfo(parentId, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListIssueAuditComment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueAuditCommentOfIssueWithHttpInfo(Long parentId, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listIssueAuditCommentOfIssueValidateBeforeCall(parentId, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAuditCommentOfIssueAsync(Long parentId, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueAuditCommentOfIssueValidateBeforeCall(parentId, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueControllerApi.java new file mode 100644 index 0000000..262cbef --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueControllerApi.java @@ -0,0 +1,341 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssue; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssue; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueControllerApi { + private ApiClient apiClient; + + public IssueControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssue + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueCall(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueValidateBeforeCall(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'q' is set + if (q == null) { + throw new ApiException("Missing the required parameter 'q' when calling listIssue(Async)"); + } + + // verify the required parameter 'fulltextsearch' is set + if (fulltextsearch == null) { + throw new ApiException("Missing the required parameter 'fulltextsearch' when calling listIssue(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueCall(q, fulltextsearch, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListProjectVersionIssue + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionIssue listIssue(String q, String fulltextsearch, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listIssueWithHttpInfo(q, fulltextsearch, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListProjectVersionIssue> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueWithHttpInfo(String q, String fulltextsearch, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listIssueValidateBeforeCall(q, fulltextsearch, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param q A full text search query (required) + * @param fulltextsearch Only 'true' is supported (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueAsync(String q, String fulltextsearch, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueValidateBeforeCall(q, fulltextsearch, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssue + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issues/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssue(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultProjectVersionIssue + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersionIssue readIssue(Long id, String fields) throws ApiException { + ApiResponse resp = readIssueWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultProjectVersionIssue> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueDetailControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueDetailControllerApi.java new file mode 100644 index 0000000..1cbd134 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueDetailControllerApi.java @@ -0,0 +1,334 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssueDetails; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssueDetails; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueDetailControllerApi { + private ApiClient apiClient; + + public IssueDetailControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueDetailControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueDetail + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param instanceId instanceId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueDetailCall(String projectName, String projectVersionName, String instanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueDetails"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (projectName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("projectName", projectName)); + if (projectVersionName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("projectVersionName", projectVersionName)); + if (instanceId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("instanceId", instanceId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueDetailValidateBeforeCall(String projectName, String projectVersionName, String instanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'projectName' is set + if (projectName == null) { + throw new ApiException("Missing the required parameter 'projectName' when calling listIssueDetail(Async)"); + } + + // verify the required parameter 'projectVersionName' is set + if (projectVersionName == null) { + throw new ApiException("Missing the required parameter 'projectVersionName' when calling listIssueDetail(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling listIssueDetail(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueDetailCall(projectName, projectVersionName, instanceId, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param instanceId instanceId (required) + * @return ApiResultListProjectVersionIssueDetails + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionIssueDetails listIssueDetail(String projectName, String projectVersionName, String instanceId) throws ApiException { + ApiResponse resp = listIssueDetailWithHttpInfo(projectName, projectVersionName, instanceId); + return resp.getData(); + } + + /** + * list + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param instanceId instanceId (required) + * @return ApiResponse<ApiResultListProjectVersionIssueDetails> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueDetailWithHttpInfo(String projectName, String projectVersionName, String instanceId) throws ApiException { + com.squareup.okhttp.Call call = listIssueDetailValidateBeforeCall(projectName, projectVersionName, instanceId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param projectName projectName (required) + * @param projectVersionName projectVersionName (required) + * @param instanceId instanceId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueDetailAsync(String projectName, String projectVersionName, String instanceId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueDetailValidateBeforeCall(projectName, projectVersionName, instanceId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueDetail + * @param id id (required) + * @param filterset Filter set to use (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueDetailCall(Long id, String filterset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueDetails/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (filterset != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterset", filterset)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueDetailValidateBeforeCall(Long id, String filterset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueDetail(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueDetailCall(id, filterset, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param filterset Filter set to use (optional) + * @return ApiResultProjectVersionIssueDetails + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersionIssueDetails readIssueDetail(Long id, String filterset) throws ApiException { + ApiResponse resp = readIssueDetailWithHttpInfo(id, filterset); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param filterset Filter set to use (optional) + * @return ApiResponse<ApiResultProjectVersionIssueDetails> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueDetailWithHttpInfo(Long id, String filterset) throws ApiException { + com.squareup.okhttp.Call call = readIssueDetailValidateBeforeCall(id, filterset, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param filterset Filter set to use (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueDetailAsync(Long id, String filterset, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueDetailValidateBeforeCall(id, filterset, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApi.java new file mode 100644 index 0000000..b924e5b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApi.java @@ -0,0 +1,253 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssueGroup; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueGroupOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueGroupOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueGroupOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueGroupOfProjectVersion + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupingtype groupingtype (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueGroupOfProjectVersionCall(Long parentId, Integer start, Integer limit, String q, String qm, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupingtype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueGroups" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (qm != null) + localVarQueryParams.addAll(apiClient.parameterToPair("qm", qm)); + if (filterset != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterset", filterset)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (showhidden != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showhidden", showhidden)); + if (showremoved != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showremoved", showremoved)); + if (showsuppressed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showsuppressed", showsuppressed)); + if (showshortfilenames != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showshortfilenames", showshortfilenames)); + if (filter != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filter", filter)); + if (groupingtype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupingtype", groupingtype)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueGroupOfProjectVersionValidateBeforeCall(Long parentId, Integer start, Integer limit, String q, String qm, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupingtype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueGroupOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueGroupOfProjectVersionCall(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupingtype groupingtype (optional) + * @return ApiResultListProjectVersionIssueGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionIssueGroup listIssueGroupOfProjectVersion(Long parentId, Integer start, Integer limit, String q, String qm, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupingtype) throws ApiException { + ApiResponse resp = listIssueGroupOfProjectVersionWithHttpInfo(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupingtype groupingtype (optional) + * @return ApiResponse<ApiResultListProjectVersionIssueGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueGroupOfProjectVersionWithHttpInfo(Long parentId, Integer start, Integer limit, String q, String qm, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupingtype) throws ApiException { + com.squareup.okhttp.Call call = listIssueGroupOfProjectVersionValidateBeforeCall(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupingtype groupingtype (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueGroupOfProjectVersionAsync(Long parentId, Integer start, Integer limit, String q, String qm, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupingtype, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueGroupOfProjectVersionValidateBeforeCall(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApi.java new file mode 100644 index 0000000..bc5b17b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApi.java @@ -0,0 +1,1206 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultIssueActionResponse; +import com.fortify.ssc.restclient.model.ApiResultIssueFileBugResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssue; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssue; +import com.fortify.ssc.restclient.model.IssueAssignUserRequest; +import com.fortify.ssc.restclient.model.IssueAuditRequest; +import com.fortify.ssc.restclient.model.IssueFileBugRequest; +import com.fortify.ssc.restclient.model.IssueSuppressRequest; +import com.fortify.ssc.restclient.model.IssueUpdateTagRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for assignUserForIssueOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call assignUserForIssueOfProjectVersionCall(Long parentId, IssueAssignUserRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action/assignUser" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call assignUserForIssueOfProjectVersionValidateBeforeCall(Long parentId, IssueAssignUserRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling assignUserForIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling assignUserForIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = assignUserForIssueOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * assignUserFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueActionResponse assignUserForIssueOfProjectVersion(Long parentId, IssueAssignUserRequest resource) throws ApiException { + ApiResponse resp = assignUserForIssueOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * assignUserFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse assignUserForIssueOfProjectVersionWithHttpInfo(Long parentId, IssueAssignUserRequest resource) throws ApiException { + com.squareup.okhttp.Call call = assignUserForIssueOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * assignUserFor (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call assignUserForIssueOfProjectVersionAsync(Long parentId, IssueAssignUserRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = assignUserForIssueOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for auditIssueOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call auditIssueOfProjectVersionCall(Long parentId, IssueAuditRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action/audit" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call auditIssueOfProjectVersionValidateBeforeCall(Long parentId, IssueAuditRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling auditIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling auditIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = auditIssueOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * audit + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueActionResponse auditIssueOfProjectVersion(Long parentId, IssueAuditRequest resource) throws ApiException { + ApiResponse resp = auditIssueOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * audit + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse auditIssueOfProjectVersionWithHttpInfo(Long parentId, IssueAuditRequest resource) throws ApiException { + com.squareup.okhttp.Call call = auditIssueOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * audit (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call auditIssueOfProjectVersionAsync(Long parentId, IssueAuditRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = auditIssueOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionIssueOfProjectVersion + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionIssueOfProjectVersionCall(Long parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionIssueOfProjectVersionValidateBeforeCall(Long parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = doActionIssueOfProjectVersionCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionIssueOfProjectVersion(Long parentId, ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doActionIssueOfProjectVersionWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionIssueOfProjectVersionWithHttpInfo(Long parentId, ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionIssueOfProjectVersionValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionIssueOfProjectVersionAsync(Long parentId, ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionIssueOfProjectVersionValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for fileBugForIssueOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call fileBugForIssueOfProjectVersionCall(Long parentId, IssueFileBugRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action/fileBug" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call fileBugForIssueOfProjectVersionValidateBeforeCall(Long parentId, IssueFileBugRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling fileBugForIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling fileBugForIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = fileBugForIssueOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * fileBugFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueFileBugResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueFileBugResponse fileBugForIssueOfProjectVersion(Long parentId, IssueFileBugRequest resource) throws ApiException { + ApiResponse resp = fileBugForIssueOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * fileBugFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueFileBugResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse fileBugForIssueOfProjectVersionWithHttpInfo(Long parentId, IssueFileBugRequest resource) throws ApiException { + com.squareup.okhttp.Call call = fileBugForIssueOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * fileBugFor (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call fileBugForIssueOfProjectVersionAsync(Long parentId, IssueFileBugRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = fileBugForIssueOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listIssueOfProjectVersion + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param orderby Fields to order by (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupid groupid (optional) + * @param groupingtype groupingtype (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueOfProjectVersionCall(Long parentId, Integer start, Integer limit, String q, String qm, String orderby, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupid, String groupingtype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (qm != null) + localVarQueryParams.addAll(apiClient.parameterToPair("qm", qm)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (filterset != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterset", filterset)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (showhidden != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showhidden", showhidden)); + if (showremoved != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showremoved", showremoved)); + if (showsuppressed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showsuppressed", showsuppressed)); + if (showshortfilenames != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showshortfilenames", showshortfilenames)); + if (filter != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filter", filter)); + if (groupid != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupid", groupid)); + if (groupingtype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupingtype", groupingtype)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueOfProjectVersionValidateBeforeCall(Long parentId, Integer start, Integer limit, String q, String qm, String orderby, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupid, String groupingtype, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueOfProjectVersionCall(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param orderby Fields to order by (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupid groupid (optional) + * @param groupingtype groupingtype (optional) + * @return ApiResultListProjectVersionIssue + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersionIssue listIssueOfProjectVersion(Long parentId, Integer start, Integer limit, String q, String qm, String orderby, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupid, String groupingtype) throws ApiException { + ApiResponse resp = listIssueOfProjectVersionWithHttpInfo(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param orderby Fields to order by (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupid groupid (optional) + * @param groupingtype groupingtype (optional) + * @return ApiResponse<ApiResultListProjectVersionIssue> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueOfProjectVersionWithHttpInfo(Long parentId, Integer start, Integer limit, String q, String qm, String orderby, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupid, String groupingtype) throws ApiException { + com.squareup.okhttp.Call call = listIssueOfProjectVersionValidateBeforeCall(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q An issue query expression, must be used together with the 'qm' parameter (optional) + * @param qm Syntax mode for the 'q' parameter, mandatory if the 'q' parameter is used (optional) + * @param orderby Fields to order by (optional) + * @param filterset Filter set to use (optional) + * @param fields Output fields (optional) + * @param showhidden If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showremoved If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showsuppressed If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. (optional, default to false) + * @param showshortfilenames If 'true', only short file names will be displayed in issues list. (optional, default to false) + * @param filter filter (optional) + * @param groupid groupid (optional) + * @param groupingtype groupingtype (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueOfProjectVersionAsync(Long parentId, Integer start, Integer limit, String q, String qm, String orderby, String filterset, String fields, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, Boolean showshortfilenames, String filter, String groupid, String groupingtype, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueOfProjectVersionValidateBeforeCall(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueOfProjectVersionCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueOfProjectVersionValidateBeforeCall(Long parentId, Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultProjectVersionIssue + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersionIssue readIssueOfProjectVersion(Long parentId, Long id, String fields) throws ApiException { + ApiResponse resp = readIssueOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultProjectVersionIssue> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueOfProjectVersionWithHttpInfo(Long parentId, Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueOfProjectVersionAsync(Long parentId, Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for suppressIssueOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call suppressIssueOfProjectVersionCall(Long parentId, IssueSuppressRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action/suppress" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call suppressIssueOfProjectVersionValidateBeforeCall(Long parentId, IssueSuppressRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling suppressIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling suppressIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = suppressIssueOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * suppress + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueActionResponse suppressIssueOfProjectVersion(Long parentId, IssueSuppressRequest resource) throws ApiException { + ApiResponse resp = suppressIssueOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * suppress + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse suppressIssueOfProjectVersionWithHttpInfo(Long parentId, IssueSuppressRequest resource) throws ApiException { + com.squareup.okhttp.Call call = suppressIssueOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * suppress (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call suppressIssueOfProjectVersionAsync(Long parentId, IssueSuppressRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = suppressIssueOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateTagForIssueOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateTagForIssueOfProjectVersionCall(Long parentId, IssueUpdateTagRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issues/action/updateTag" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateTagForIssueOfProjectVersionValidateBeforeCall(Long parentId, IssueUpdateTagRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateTagForIssueOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateTagForIssueOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateTagForIssueOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * updateTagFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultIssueActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueActionResponse updateTagForIssueOfProjectVersion(Long parentId, IssueUpdateTagRequest resource) throws ApiException { + ApiResponse resp = updateTagForIssueOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * updateTagFor + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateTagForIssueOfProjectVersionWithHttpInfo(Long parentId, IssueUpdateTagRequest resource) throws ApiException { + com.squareup.okhttp.Call call = updateTagForIssueOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateTagFor (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateTagForIssueOfProjectVersionAsync(Long parentId, IssueUpdateTagRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateTagForIssueOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApi.java new file mode 100644 index 0000000..3d8a121 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueFilterSelectorSet; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueSelectorSetOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueSelectorSetOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueSelectorSetOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getIssueSelectorSetOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getIssueSelectorSetOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueSelectorSet" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getIssueSelectorSetOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling getIssueSelectorSetOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = getIssueSelectorSetOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultIssueFilterSelectorSet + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueFilterSelectorSet getIssueSelectorSetOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = getIssueSelectorSetOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * get + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueFilterSelectorSet> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getIssueSelectorSetOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = getIssueSelectorSetOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getIssueSelectorSetOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getIssueSelectorSetOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApi.java new file mode 100644 index 0000000..ea107e4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueStatistics; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueStatisticsOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueStatisticsOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueStatisticsOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueStatisticsOfProjectVersion + * @param parentId parentId (required) + * @param filterset Filter set to use (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueStatisticsOfProjectVersionCall(Long parentId, String filterset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueStatistics" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (filterset != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filterset", filterset)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueStatisticsOfProjectVersionValidateBeforeCall(Long parentId, String filterset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueStatisticsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueStatisticsOfProjectVersionCall(parentId, filterset, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param filterset Filter set to use (optional) + * @return ApiResultListIssueStatistics + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueStatistics listIssueStatisticsOfProjectVersion(Long parentId, String filterset) throws ApiException { + ApiResponse resp = listIssueStatisticsOfProjectVersionWithHttpInfo(parentId, filterset); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param filterset Filter set to use (optional) + * @return ApiResponse<ApiResultListIssueStatistics> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueStatisticsOfProjectVersionWithHttpInfo(Long parentId, String filterset) throws ApiException { + com.squareup.okhttp.Call call = listIssueStatisticsOfProjectVersionValidateBeforeCall(parentId, filterset, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param filterset Filter set to use (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueStatisticsOfProjectVersionAsync(Long parentId, String filterset, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueStatisticsOfProjectVersionValidateBeforeCall(parentId, filterset, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApi.java new file mode 100644 index 0000000..f3877fa --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApi.java @@ -0,0 +1,233 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueSummary; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueSummaryOfProjectVersionControllerApi { + private ApiClient apiClient; + + public IssueSummaryOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueSummaryOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueSummaryOfProjectVersion + * @param parentId parentId (required) + * @param seriestype seriestype (required) + * @param groupaxistype groupaxistype (required) + * @param audited audited (optional) + * @param filter filter (optional) + * @param showhidden showhidden (optional) + * @param showremoved showremoved (optional) + * @param showsuppressed showsuppressed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueSummaryOfProjectVersionCall(Long parentId, String seriestype, String groupaxistype, String audited, String filter, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueSummaries" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (seriestype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("seriestype", seriestype)); + if (groupaxistype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupaxistype", groupaxistype)); + if (audited != null) + localVarQueryParams.addAll(apiClient.parameterToPair("audited", audited)); + if (filter != null) + localVarQueryParams.addAll(apiClient.parameterToPair("filter", filter)); + if (showhidden != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showhidden", showhidden)); + if (showremoved != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showremoved", showremoved)); + if (showsuppressed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("showsuppressed", showsuppressed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueSummaryOfProjectVersionValidateBeforeCall(Long parentId, String seriestype, String groupaxistype, String audited, String filter, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listIssueSummaryOfProjectVersion(Async)"); + } + + // verify the required parameter 'seriestype' is set + if (seriestype == null) { + throw new ApiException("Missing the required parameter 'seriestype' when calling listIssueSummaryOfProjectVersion(Async)"); + } + + // verify the required parameter 'groupaxistype' is set + if (groupaxistype == null) { + throw new ApiException("Missing the required parameter 'groupaxistype' when calling listIssueSummaryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listIssueSummaryOfProjectVersionCall(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param seriestype seriestype (required) + * @param groupaxistype groupaxistype (required) + * @param audited audited (optional) + * @param filter filter (optional) + * @param showhidden showhidden (optional) + * @param showremoved showremoved (optional) + * @param showsuppressed showsuppressed (optional) + * @return ApiResultListIssueSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueSummary listIssueSummaryOfProjectVersion(Long parentId, String seriestype, String groupaxistype, String audited, String filter, Boolean showhidden, Boolean showremoved, Boolean showsuppressed) throws ApiException { + ApiResponse resp = listIssueSummaryOfProjectVersionWithHttpInfo(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param seriestype seriestype (required) + * @param groupaxistype groupaxistype (required) + * @param audited audited (optional) + * @param filter filter (optional) + * @param showhidden showhidden (optional) + * @param showremoved showremoved (optional) + * @param showsuppressed showsuppressed (optional) + * @return ApiResponse<ApiResultListIssueSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueSummaryOfProjectVersionWithHttpInfo(Long parentId, String seriestype, String groupaxistype, String audited, String filter, Boolean showhidden, Boolean showremoved, Boolean showsuppressed) throws ApiException { + com.squareup.okhttp.Call call = listIssueSummaryOfProjectVersionValidateBeforeCall(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param seriestype seriestype (required) + * @param groupaxistype groupaxistype (required) + * @param audited audited (optional) + * @param filter filter (optional) + * @param showhidden showhidden (optional) + * @param showremoved showremoved (optional) + * @param showsuppressed showsuppressed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueSummaryOfProjectVersionAsync(Long parentId, String seriestype, String groupaxistype, String audited, String filter, Boolean showhidden, Boolean showremoved, Boolean showsuppressed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueSummaryOfProjectVersionValidateBeforeCall(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApi.java new file mode 100644 index 0000000..155e42e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApi.java @@ -0,0 +1,712 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueTemplate; +import com.fortify.ssc.restclient.model.ApiResultListIssueTemplate; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.IssueTemplate; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueTemplateControllerApi { + private ApiClient apiClient; + + public IssueTemplateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueTemplateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for deleteIssueTemplate + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteIssueTemplateCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueTemplates/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteIssueTemplateValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteIssueTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = deleteIssueTemplateCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteIssueTemplate(String id) throws ApiException { + ApiResponse resp = deleteIssueTemplateWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteIssueTemplateWithHttpInfo(String id) throws ApiException { + com.squareup.okhttp.Call call = deleteIssueTemplateValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteIssueTemplateAsync(String id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteIssueTemplateValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listIssueTemplate + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueTemplateCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueTemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueTemplateValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listIssueTemplateCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListIssueTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueTemplate listIssueTemplate(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listIssueTemplateWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListIssueTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueTemplateWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listIssueTemplateValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueTemplateAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueTemplateValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteIssueTemplate + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteIssueTemplateCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueTemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteIssueTemplateValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteIssueTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteIssueTemplateCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteIssueTemplate(String ids) throws ApiException { + ApiResponse resp = multiDeleteIssueTemplateWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteIssueTemplateWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteIssueTemplateValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteIssueTemplateAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteIssueTemplateValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueTemplate + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueTemplateCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueTemplates/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueTemplateValidateBeforeCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueTemplateCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultIssueTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueTemplate readIssueTemplate(String id, String fields) throws ApiException { + ApiResponse resp = readIssueTemplateWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueTemplateWithHttpInfo(String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueTemplateValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueTemplateAsync(String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueTemplateValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateIssueTemplate + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateIssueTemplateCall(String id, IssueTemplate resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/issueTemplates/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateIssueTemplateValidateBeforeCall(String id, IssueTemplate resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateIssueTemplate(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateIssueTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = updateIssueTemplateCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultIssueTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueTemplate updateIssueTemplate(String id, IssueTemplate resource) throws ApiException { + ApiResponse resp = updateIssueTemplateWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultIssueTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateIssueTemplateWithHttpInfo(String id, IssueTemplate resource) throws ApiException { + com.squareup.okhttp.Call call = updateIssueTemplateValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateIssueTemplateAsync(String id, IssueTemplate resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateIssueTemplateValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApi.java new file mode 100644 index 0000000..84e986d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApi.java @@ -0,0 +1,331 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueViewTemplate; +import com.fortify.ssc.restclient.model.ApiResultListIssueViewTemplate; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class IssueViewTemplateControllerApi { + private ApiClient apiClient; + + public IssueViewTemplateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public IssueViewTemplateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listIssueViewTemplate + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listIssueViewTemplateCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueViewTemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listIssueViewTemplateValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listIssueViewTemplateCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListIssueViewTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListIssueViewTemplate listIssueViewTemplate(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listIssueViewTemplateWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListIssueViewTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listIssueViewTemplateWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listIssueViewTemplateValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listIssueViewTemplateAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listIssueViewTemplateValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readIssueViewTemplate + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readIssueViewTemplateCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/issueViewTemplates/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readIssueViewTemplateValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readIssueViewTemplate(Async)"); + } + + + com.squareup.okhttp.Call call = readIssueViewTemplateCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultIssueViewTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultIssueViewTemplate readIssueViewTemplate(Long id, String fields) throws ApiException { + ApiResponse resp = readIssueViewTemplateWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueViewTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readIssueViewTemplateWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readIssueViewTemplateValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readIssueViewTemplateAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readIssueViewTemplateValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/JobControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/JobControllerApi.java new file mode 100644 index 0000000..1220d06 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/JobControllerApi.java @@ -0,0 +1,722 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultJob; +import com.fortify.ssc.restclient.model.ApiResultListJob; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Job; +import com.fortify.ssc.restclient.model.JobCancelRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class JobControllerApi { + private ApiClient apiClient; + + public JobControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public JobControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for cancelJob + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call cancelJobCall(JobCancelRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/jobs/action/cancel"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call cancelJobValidateBeforeCall(JobCancelRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling cancelJob(Async)"); + } + + + com.squareup.okhttp.Call call = cancelJobCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * cancel + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid cancelJob(JobCancelRequest resource) throws ApiException { + ApiResponse resp = cancelJobWithHttpInfo(resource); + return resp.getData(); + } + + /** + * cancel + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse cancelJobWithHttpInfo(JobCancelRequest resource) throws ApiException { + com.squareup.okhttp.Call call = cancelJobValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * cancel (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call cancelJobAsync(JobCancelRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = cancelJobValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionJob + * @param jobName jobName (required) + * @param resourceAction resourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionJobCall(String jobName, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resourceAction; + + // create path and map variables + String localVarPath = "/jobs/{jobName}/action" + .replaceAll("\\{" + "jobName" + "\\}", apiClient.escapeString(jobName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionJobValidateBeforeCall(String jobName, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'jobName' is set + if (jobName == null) { + throw new ApiException("Missing the required parameter 'jobName' when calling doActionJob(Async)"); + } + + // verify the required parameter 'resourceAction' is set + if (resourceAction == null) { + throw new ApiException("Missing the required parameter 'resourceAction' when calling doActionJob(Async)"); + } + + + com.squareup.okhttp.Call call = doActionJobCall(jobName, resourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param jobName jobName (required) + * @param resourceAction resourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionJob(String jobName, ApiResourceAction resourceAction) throws ApiException { + ApiResponse resp = doActionJobWithHttpInfo(jobName, resourceAction); + return resp.getData(); + } + + /** + * doAction + * + * @param jobName jobName (required) + * @param resourceAction resourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionJobWithHttpInfo(String jobName, ApiResourceAction resourceAction) throws ApiException { + com.squareup.okhttp.Call call = doActionJobValidateBeforeCall(jobName, resourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param jobName jobName (required) + * @param resourceAction resourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionJobAsync(String jobName, ApiResourceAction resourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionJobValidateBeforeCall(jobName, resourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listJob + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listJobCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/jobs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listJobValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listJobCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListJob listJob(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listJobWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listJobWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listJobValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listJobAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listJobValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readJob + * @param jobName jobName (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readJobCall(String jobName, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/jobs/{jobName}" + .replaceAll("\\{" + "jobName" + "\\}", apiClient.escapeString(jobName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readJobValidateBeforeCall(String jobName, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'jobName' is set + if (jobName == null) { + throw new ApiException("Missing the required parameter 'jobName' when calling readJob(Async)"); + } + + + com.squareup.okhttp.Call call = readJobCall(jobName, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param jobName jobName (required) + * @param fields Output fields (optional) + * @return ApiResultJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultJob readJob(String jobName, String fields) throws ApiException { + ApiResponse resp = readJobWithHttpInfo(jobName, fields); + return resp.getData(); + } + + /** + * read + * + * @param jobName jobName (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readJobWithHttpInfo(String jobName, String fields) throws ApiException { + com.squareup.okhttp.Call call = readJobValidateBeforeCall(jobName, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param jobName jobName (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readJobAsync(String jobName, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readJobValidateBeforeCall(jobName, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateJob + * @param jobName jobName (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateJobCall(String jobName, Job resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/jobs/{jobName}" + .replaceAll("\\{" + "jobName" + "\\}", apiClient.escapeString(jobName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateJobValidateBeforeCall(String jobName, Job resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'jobName' is set + if (jobName == null) { + throw new ApiException("Missing the required parameter 'jobName' when calling updateJob(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateJob(Async)"); + } + + + com.squareup.okhttp.Call call = updateJobCall(jobName, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param jobName jobName (required) + * @param resource resource (required) + * @return ApiResultJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultJob updateJob(String jobName, Job resource) throws ApiException { + ApiResponse resp = updateJobWithHttpInfo(jobName, resource); + return resp.getData(); + } + + /** + * update + * + * @param jobName jobName (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateJobWithHttpInfo(String jobName, Job resource) throws ApiException { + com.squareup.okhttp.Call call = updateJobValidateBeforeCall(jobName, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param jobName jobName (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateJobAsync(String jobName, Job resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateJobValidateBeforeCall(jobName, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApi.java new file mode 100644 index 0000000..6853a46 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApi.java @@ -0,0 +1,198 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListJobPriorityChangeCategoryWarning; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class JobPriorityChangeCategoryWarningOfJobControllerApi { + private ApiClient apiClient; + + public JobPriorityChangeCategoryWarningOfJobControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public JobPriorityChangeCategoryWarningOfJobControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listJobPriorityChangeCategoryWarningOfJob + * @param parentId parentId (required) + * @param priority priority (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listJobPriorityChangeCategoryWarningOfJobCall(String parentId, String priority, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/jobs/{parentId}/warnings" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (priority != null) + localVarQueryParams.addAll(apiClient.parameterToPair("priority", priority)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listJobPriorityChangeCategoryWarningOfJobValidateBeforeCall(String parentId, String priority, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listJobPriorityChangeCategoryWarningOfJob(Async)"); + } + + // verify the required parameter 'priority' is set + if (priority == null) { + throw new ApiException("Missing the required parameter 'priority' when calling listJobPriorityChangeCategoryWarningOfJob(Async)"); + } + + + com.squareup.okhttp.Call call = listJobPriorityChangeCategoryWarningOfJobCall(parentId, priority, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param priority priority (required) + * @param fields Output fields (optional) + * @return ApiResultListJobPriorityChangeCategoryWarning + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListJobPriorityChangeCategoryWarning listJobPriorityChangeCategoryWarningOfJob(String parentId, String priority, String fields) throws ApiException { + ApiResponse resp = listJobPriorityChangeCategoryWarningOfJobWithHttpInfo(parentId, priority, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param priority priority (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListJobPriorityChangeCategoryWarning> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listJobPriorityChangeCategoryWarningOfJobWithHttpInfo(String parentId, String priority, String fields) throws ApiException { + com.squareup.okhttp.Call call = listJobPriorityChangeCategoryWarningOfJobValidateBeforeCall(parentId, priority, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param priority priority (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listJobPriorityChangeCategoryWarningOfJobAsync(String parentId, String priority, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listJobPriorityChangeCategoryWarningOfJobValidateBeforeCall(parentId, priority, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/LdapObjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/LdapObjectControllerApi.java new file mode 100644 index 0000000..89f57b1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/LdapObjectControllerApi.java @@ -0,0 +1,1084 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultLDAPEntity; +import com.fortify.ssc.restclient.model.ApiResultLdapRefreshResponse; +import com.fortify.ssc.restclient.model.ApiResultListLDAPEntity; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LDAPEntity; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LdapObjectControllerApi { + private ApiClient apiClient; + + public LdapObjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public LdapObjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createLdapObject + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createLdapObjectCall(LDAPEntity resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/ldapObjects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createLdapObjectValidateBeforeCall(LDAPEntity resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = createLdapObjectCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultLDAPEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLDAPEntity createLdapObject(LDAPEntity resource) throws ApiException { + ApiResponse resp = createLdapObjectWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultLDAPEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createLdapObjectWithHttpInfo(LDAPEntity resource) throws ApiException { + com.squareup.okhttp.Call call = createLdapObjectValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createLdapObjectAsync(LDAPEntity resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createLdapObjectValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteLdapObject + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteLdapObjectCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapObjects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteLdapObjectValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = deleteLdapObjectCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteLdapObject(Long id) throws ApiException { + ApiResponse resp = deleteLdapObjectWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteLdapObjectWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteLdapObjectValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteLdapObjectAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteLdapObjectValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doCollectionActionLdapObject + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doCollectionActionLdapObjectCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/ldapObjects/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doCollectionActionLdapObjectValidateBeforeCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doCollectionActionLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = doCollectionActionLdapObjectCall(collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doCollectionActionLdapObject(ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doCollectionActionLdapObjectWithHttpInfo(collectionAction); + return resp.getData(); + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doCollectionActionLdapObjectWithHttpInfo(ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doCollectionActionLdapObjectValidateBeforeCall(collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doCollectionAction (asynchronously) + * + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doCollectionActionLdapObjectAsync(ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doCollectionActionLdapObjectValidateBeforeCall(collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listLdapObject + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param ldaptype ldaptype (optional) + * @param viewby viewby (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listLdapObjectCall(String fields, Integer start, Integer limit, String q, String orderby, String ldaptype, String viewby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapObjects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (ldaptype != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ldaptype", ldaptype)); + if (viewby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("viewby", viewby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listLdapObjectValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, String ldaptype, String viewby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listLdapObjectCall(fields, start, limit, q, orderby, ldaptype, viewby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param ldaptype ldaptype (optional) + * @param viewby viewby (optional) + * @return ApiResultListLDAPEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListLDAPEntity listLdapObject(String fields, Integer start, Integer limit, String q, String orderby, String ldaptype, String viewby) throws ApiException { + ApiResponse resp = listLdapObjectWithHttpInfo(fields, start, limit, q, orderby, ldaptype, viewby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param ldaptype ldaptype (optional) + * @param viewby viewby (optional) + * @return ApiResponse<ApiResultListLDAPEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listLdapObjectWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby, String ldaptype, String viewby) throws ApiException { + com.squareup.okhttp.Call call = listLdapObjectValidateBeforeCall(fields, start, limit, q, orderby, ldaptype, viewby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param ldaptype ldaptype (optional) + * @param viewby viewby (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listLdapObjectAsync(String fields, Integer start, Integer limit, String q, String orderby, String ldaptype, String viewby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listLdapObjectValidateBeforeCall(fields, start, limit, q, orderby, ldaptype, viewby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteLdapObject + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteLdapObjectCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapObjects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteLdapObjectValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteLdapObjectCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteLdapObject(String ids) throws ApiException { + ApiResponse resp = multiDeleteLdapObjectWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteLdapObjectWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteLdapObjectValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteLdapObjectAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteLdapObjectValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readLdapObject + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readLdapObjectCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapObjects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readLdapObjectValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = readLdapObjectCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultLDAPEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLDAPEntity readLdapObject(Long id, String fields) throws ApiException { + ApiResponse resp = readLdapObjectWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultLDAPEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readLdapObjectWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readLdapObjectValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readLdapObjectAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readLdapObjectValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for refreshLdapObject + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call refreshLdapObjectCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapObjects/action/refresh"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call refreshLdapObjectValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = refreshLdapObjectCall(progressListener, progressRequestListener); + return call; + + } + + /** + * refresh + * + * @return ApiResultLdapRefreshResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLdapRefreshResponse refreshLdapObject() throws ApiException { + ApiResponse resp = refreshLdapObjectWithHttpInfo(); + return resp.getData(); + } + + /** + * refresh + * + * @return ApiResponse<ApiResultLdapRefreshResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse refreshLdapObjectWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = refreshLdapObjectValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * refresh (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call refreshLdapObjectAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = refreshLdapObjectValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateLdapObject + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateLdapObjectCall(Long id, LDAPEntity resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/ldapObjects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateLdapObjectValidateBeforeCall(Long id, LDAPEntity resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateLdapObject(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateLdapObject(Async)"); + } + + + com.squareup.okhttp.Call call = updateLdapObjectCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultLDAPEntity + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLDAPEntity updateLdapObject(Long id, LDAPEntity resource) throws ApiException { + ApiResponse resp = updateLdapObjectWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultLDAPEntity> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateLdapObjectWithHttpInfo(Long id, LDAPEntity resource) throws ApiException { + com.squareup.okhttp.Call call = updateLdapObjectValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateLdapObjectAsync(Long id, LDAPEntity resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateLdapObjectValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/LdapServerControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/LdapServerControllerApi.java new file mode 100644 index 0000000..57f415d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/LdapServerControllerApi.java @@ -0,0 +1,1069 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultLdapServerDto; +import com.fortify.ssc.restclient.model.ApiResultListLdapServerDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LdapServerDto; +import com.fortify.ssc.restclient.model.LdapServerTestRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LdapServerControllerApi { + private ApiClient apiClient; + + public LdapServerControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public LdapServerControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createLdapServer + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createLdapServerCall(LdapServerDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/ldapServers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createLdapServerValidateBeforeCall(LdapServerDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = createLdapServerCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultLdapServerDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLdapServerDto createLdapServer(LdapServerDto resource) throws ApiException { + ApiResponse resp = createLdapServerWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultLdapServerDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createLdapServerWithHttpInfo(LdapServerDto resource) throws ApiException { + com.squareup.okhttp.Call call = createLdapServerValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createLdapServerAsync(LdapServerDto resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createLdapServerValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteLdapServer + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteLdapServerCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapServers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteLdapServerValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = deleteLdapServerCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteLdapServer(Long id) throws ApiException { + ApiResponse resp = deleteLdapServerWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteLdapServerWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteLdapServerValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteLdapServerAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteLdapServerValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doCollectionActionLdapServer + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doCollectionActionLdapServerCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/ldapServers/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doCollectionActionLdapServerValidateBeforeCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doCollectionActionLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = doCollectionActionLdapServerCall(collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doCollectionActionLdapServer(ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doCollectionActionLdapServerWithHttpInfo(collectionAction); + return resp.getData(); + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doCollectionActionLdapServerWithHttpInfo(ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doCollectionActionLdapServerValidateBeforeCall(collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doCollectionAction (asynchronously) + * + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doCollectionActionLdapServerAsync(ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doCollectionActionLdapServerValidateBeforeCall(collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listLdapServer + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listLdapServerCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapServers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listLdapServerValidateBeforeCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listLdapServerCall(fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListLdapServerDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListLdapServerDto listLdapServer(String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listLdapServerWithHttpInfo(fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListLdapServerDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listLdapServerWithHttpInfo(String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listLdapServerValidateBeforeCall(fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listLdapServerAsync(String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listLdapServerValidateBeforeCall(fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteLdapServer + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteLdapServerCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapServers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteLdapServerValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteLdapServerCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteLdapServer(String ids) throws ApiException { + ApiResponse resp = multiDeleteLdapServerWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteLdapServerWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteLdapServerValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteLdapServerAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteLdapServerValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readLdapServer + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readLdapServerCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ldapServers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readLdapServerValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = readLdapServerCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultLdapServerDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLdapServerDto readLdapServer(Long id, String fields) throws ApiException { + ApiResponse resp = readLdapServerWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultLdapServerDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readLdapServerWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readLdapServerValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readLdapServerAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readLdapServerValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for testLdapServer + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call testLdapServerCall(LdapServerTestRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/ldapServers/action/test"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call testLdapServerValidateBeforeCall(LdapServerTestRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling testLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = testLdapServerCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * test + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid testLdapServer(LdapServerTestRequest resource) throws ApiException { + ApiResponse resp = testLdapServerWithHttpInfo(resource); + return resp.getData(); + } + + /** + * test + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse testLdapServerWithHttpInfo(LdapServerTestRequest resource) throws ApiException { + com.squareup.okhttp.Call call = testLdapServerValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * test (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call testLdapServerAsync(LdapServerTestRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = testLdapServerValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateLdapServer + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateLdapServerCall(Long id, LdapServerDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/ldapServers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateLdapServerValidateBeforeCall(Long id, LdapServerDto resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateLdapServer(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateLdapServer(Async)"); + } + + + com.squareup.okhttp.Call call = updateLdapServerCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultLdapServerDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLdapServerDto updateLdapServer(Long id, LdapServerDto resource) throws ApiException { + ApiResponse resp = updateLdapServerWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultLdapServerDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateLdapServerWithHttpInfo(Long id, LdapServerDto resource) throws ApiException { + com.squareup.okhttp.Call call = updateLdapServerValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateLdapServerAsync(Long id, LdapServerDto resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateLdapServerValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/LicenseControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/LicenseControllerApi.java new file mode 100644 index 0000000..8b1d364 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/LicenseControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultLicense; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LicenseControllerApi { + private ApiClient apiClient; + + public LicenseControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public LicenseControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getLicense + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getLicenseCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/license"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "Basic" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getLicenseValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getLicenseCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultLicense + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLicense getLicense() throws ApiException { + ApiResponse resp = getLicenseWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultLicense> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getLicenseWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getLicenseValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getLicenseAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getLicenseValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/LocalUserControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/LocalUserControllerApi.java new file mode 100644 index 0000000..43590bc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/LocalUserControllerApi.java @@ -0,0 +1,958 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListLocalUser; +import com.fortify.ssc.restclient.model.ApiResultLocalUser; +import com.fortify.ssc.restclient.model.ApiResultPasswordStrengthCheckResponse; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LocalUser; +import com.fortify.ssc.restclient.model.PasswordStrengthCheckRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LocalUserControllerApi { + private ApiClient apiClient; + + public LocalUserControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public LocalUserControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for checkLocalUser + * @param passwordStrengthCheckRequest passwordStrengthCheckRequest (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call checkLocalUserCall(PasswordStrengthCheckRequest passwordStrengthCheckRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = passwordStrengthCheckRequest; + + // create path and map variables + String localVarPath = "/localUsers/action/checkPasswordStrength"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call checkLocalUserValidateBeforeCall(PasswordStrengthCheckRequest passwordStrengthCheckRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'passwordStrengthCheckRequest' is set + if (passwordStrengthCheckRequest == null) { + throw new ApiException("Missing the required parameter 'passwordStrengthCheckRequest' when calling checkLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = checkLocalUserCall(passwordStrengthCheckRequest, progressListener, progressRequestListener); + return call; + + } + + /** + * check + * + * @param passwordStrengthCheckRequest passwordStrengthCheckRequest (required) + * @return ApiResultPasswordStrengthCheckResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPasswordStrengthCheckResponse checkLocalUser(PasswordStrengthCheckRequest passwordStrengthCheckRequest) throws ApiException { + ApiResponse resp = checkLocalUserWithHttpInfo(passwordStrengthCheckRequest); + return resp.getData(); + } + + /** + * check + * + * @param passwordStrengthCheckRequest passwordStrengthCheckRequest (required) + * @return ApiResponse<ApiResultPasswordStrengthCheckResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse checkLocalUserWithHttpInfo(PasswordStrengthCheckRequest passwordStrengthCheckRequest) throws ApiException { + com.squareup.okhttp.Call call = checkLocalUserValidateBeforeCall(passwordStrengthCheckRequest, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * check (asynchronously) + * + * @param passwordStrengthCheckRequest passwordStrengthCheckRequest (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call checkLocalUserAsync(PasswordStrengthCheckRequest passwordStrengthCheckRequest, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = checkLocalUserValidateBeforeCall(passwordStrengthCheckRequest, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createLocalUser + * @param user user (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createLocalUserCall(LocalUser user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = user; + + // create path and map variables + String localVarPath = "/localUsers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createLocalUserValidateBeforeCall(LocalUser user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling createLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = createLocalUserCall(user, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param user user (required) + * @return ApiResultLocalUser + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLocalUser createLocalUser(LocalUser user) throws ApiException { + ApiResponse resp = createLocalUserWithHttpInfo(user); + return resp.getData(); + } + + /** + * create + * + * @param user user (required) + * @return ApiResponse<ApiResultLocalUser> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createLocalUserWithHttpInfo(LocalUser user) throws ApiException { + com.squareup.okhttp.Call call = createLocalUserValidateBeforeCall(user, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param user user (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createLocalUserAsync(LocalUser user, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createLocalUserValidateBeforeCall(user, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteLocalUser + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteLocalUserCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/localUsers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteLocalUserValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = deleteLocalUserCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteLocalUser(Long id) throws ApiException { + ApiResponse resp = deleteLocalUserWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteLocalUserWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteLocalUserValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteLocalUserAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteLocalUserValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listLocalUser + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listLocalUserCall(Integer start, Integer limit, String q, String orderby, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/localUsers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listLocalUserValidateBeforeCall(Integer start, Integer limit, String q, String orderby, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listLocalUserCall(start, limit, q, orderby, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @return ApiResultListLocalUser + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListLocalUser listLocalUser(Integer start, Integer limit, String q, String orderby, String fields) throws ApiException { + ApiResponse resp = listLocalUserWithHttpInfo(start, limit, q, orderby, fields); + return resp.getData(); + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListLocalUser> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listLocalUserWithHttpInfo(Integer start, Integer limit, String q, String orderby, String fields) throws ApiException { + com.squareup.okhttp.Call call = listLocalUserValidateBeforeCall(start, limit, q, orderby, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listLocalUserAsync(Integer start, Integer limit, String q, String orderby, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listLocalUserValidateBeforeCall(start, limit, q, orderby, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteLocalUser + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteLocalUserCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/localUsers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteLocalUserValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteLocalUserCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteLocalUser(String ids) throws ApiException { + ApiResponse resp = multiDeleteLocalUserWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteLocalUserWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteLocalUserValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteLocalUserAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteLocalUserValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readLocalUser + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readLocalUserCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/localUsers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readLocalUserValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = readLocalUserCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultLocalUser + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLocalUser readLocalUser(Long id, String fields) throws ApiException { + ApiResponse resp = readLocalUserWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultLocalUser> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readLocalUserWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readLocalUserValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readLocalUserAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readLocalUserValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateLocalUser + * @param id id (required) + * @param user user (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateLocalUserCall(Long id, LocalUser user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = user; + + // create path and map variables + String localVarPath = "/localUsers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateLocalUserValidateBeforeCall(Long id, LocalUser user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateLocalUser(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling updateLocalUser(Async)"); + } + + + com.squareup.okhttp.Call call = updateLocalUserCall(id, user, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param user user (required) + * @return ApiResultLocalUser + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultLocalUser updateLocalUser(Long id, LocalUser user) throws ApiException { + ApiResponse resp = updateLocalUserWithHttpInfo(id, user); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param user user (required) + * @return ApiResponse<ApiResultLocalUser> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateLocalUserWithHttpInfo(Long id, LocalUser user) throws ApiException { + com.squareup.okhttp.Call call = updateLocalUserValidateBeforeCall(id, user, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param user user (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateLocalUserAsync(Long id, LocalUser user, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateLocalUserValidateBeforeCall(id, user, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApi.java new file mode 100644 index 0000000..4228d92 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApi.java @@ -0,0 +1,203 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ParserPluginImageControllerApi { + private ApiClient apiClient; + + public ParserPluginImageControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ParserPluginImageControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getParserPluginImage + * @param imageType imageType (required) + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getParserPluginImageCall(String imageType, String engineType, Long dataVersion, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pluginimage/parser"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (imageType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageType", imageType)); + if (engineType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("engineType", engineType)); + if (dataVersion != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dataVersion", dataVersion)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "image/png" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getParserPluginImageValidateBeforeCall(String imageType, String engineType, Long dataVersion, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'imageType' is set + if (imageType == null) { + throw new ApiException("Missing the required parameter 'imageType' when calling getParserPluginImage(Async)"); + } + + // verify the required parameter 'engineType' is set + if (engineType == null) { + throw new ApiException("Missing the required parameter 'engineType' when calling getParserPluginImage(Async)"); + } + + // verify the required parameter 'dataVersion' is set + if (dataVersion == null) { + throw new ApiException("Missing the required parameter 'dataVersion' when calling getParserPluginImage(Async)"); + } + + + com.squareup.okhttp.Call call = getParserPluginImageCall(imageType, engineType, dataVersion, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param imageType imageType (required) + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public byte[] getParserPluginImage(String imageType, String engineType, Long dataVersion) throws ApiException { + ApiResponse resp = getParserPluginImageWithHttpInfo(imageType, engineType, dataVersion); + return resp.getData(); + } + + /** + * get + * + * @param imageType imageType (required) + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getParserPluginImageWithHttpInfo(String imageType, String engineType, Long dataVersion) throws ApiException { + com.squareup.okhttp.Call call = getParserPluginImageValidateBeforeCall(imageType, engineType, dataVersion, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param imageType imageType (required) + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getParserPluginImageAsync(String imageType, String engineType, Long dataVersion, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getParserPluginImageValidateBeforeCall(imageType, engineType, dataVersion, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApi.java new file mode 100644 index 0000000..77411f1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApi.java @@ -0,0 +1,705 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPerformanceIndicator; +import com.fortify.ssc.restclient.model.ApiResultPerformanceIndicator; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.PerformanceIndicator; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PerformanceIndicatorControllerApi { + private ApiClient apiClient; + + public PerformanceIndicatorControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PerformanceIndicatorControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createPerformanceIndicator + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createPerformanceIndicatorCall(PerformanceIndicator data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/performanceIndicators"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createPerformanceIndicatorValidateBeforeCall(PerformanceIndicator data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling createPerformanceIndicator(Async)"); + } + + + com.squareup.okhttp.Call call = createPerformanceIndicatorCall(data, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param data data (required) + * @return ApiResultPerformanceIndicator + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPerformanceIndicator createPerformanceIndicator(PerformanceIndicator data) throws ApiException { + ApiResponse resp = createPerformanceIndicatorWithHttpInfo(data); + return resp.getData(); + } + + /** + * create + * + * @param data data (required) + * @return ApiResponse<ApiResultPerformanceIndicator> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createPerformanceIndicatorWithHttpInfo(PerformanceIndicator data) throws ApiException { + com.squareup.okhttp.Call call = createPerformanceIndicatorValidateBeforeCall(data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createPerformanceIndicatorAsync(PerformanceIndicator data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createPerformanceIndicatorValidateBeforeCall(data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePerformanceIndicator + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePerformanceIndicatorCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/performanceIndicators/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePerformanceIndicatorValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deletePerformanceIndicator(Async)"); + } + + + com.squareup.okhttp.Call call = deletePerformanceIndicatorCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deletePerformanceIndicator(Long id) throws ApiException { + ApiResponse resp = deletePerformanceIndicatorWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePerformanceIndicatorWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deletePerformanceIndicatorValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePerformanceIndicatorAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePerformanceIndicatorValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listPerformanceIndicator + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPerformanceIndicatorCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/performanceIndicators"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPerformanceIndicatorValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listPerformanceIndicatorCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListPerformanceIndicator + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPerformanceIndicator listPerformanceIndicator(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listPerformanceIndicatorWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListPerformanceIndicator> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPerformanceIndicatorWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listPerformanceIndicatorValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPerformanceIndicatorAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPerformanceIndicatorValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeletePerformanceIndicator + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeletePerformanceIndicatorCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/performanceIndicators"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeletePerformanceIndicatorValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeletePerformanceIndicator(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeletePerformanceIndicatorCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeletePerformanceIndicator(String ids) throws ApiException { + ApiResponse resp = multiDeletePerformanceIndicatorWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeletePerformanceIndicatorWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeletePerformanceIndicatorValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeletePerformanceIndicatorAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeletePerformanceIndicatorValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updatePerformanceIndicator + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updatePerformanceIndicatorCall(Long id, PerformanceIndicator resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/performanceIndicators/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updatePerformanceIndicatorValidateBeforeCall(Long id, PerformanceIndicator resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updatePerformanceIndicator(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updatePerformanceIndicator(Async)"); + } + + + com.squareup.okhttp.Call call = updatePerformanceIndicatorCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultPerformanceIndicator + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPerformanceIndicator updatePerformanceIndicator(Long id, PerformanceIndicator resource) throws ApiException { + ApiResponse resp = updatePerformanceIndicatorWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultPerformanceIndicator> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updatePerformanceIndicatorWithHttpInfo(Long id, PerformanceIndicator resource) throws ApiException { + com.squareup.okhttp.Call call = updatePerformanceIndicatorValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updatePerformanceIndicatorAsync(Long id, PerformanceIndicator resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updatePerformanceIndicatorValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApi.java new file mode 100644 index 0000000..81b94bf --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApi.java @@ -0,0 +1,345 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPerformanceIndicatorHistory; +import com.fortify.ssc.restclient.model.ApiResultPerformanceIndicatorHistory; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PerformanceIndicatorHistoryOfProjectVersionControllerApi { + private ApiClient apiClient; + + public PerformanceIndicatorHistoryOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PerformanceIndicatorHistoryOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listPerformanceIndicatorHistoryOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPerformanceIndicatorHistoryOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/performanceIndicatorHistories" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listPerformanceIndicatorHistoryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listPerformanceIndicatorHistoryOfProjectVersionCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResultListPerformanceIndicatorHistory + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPerformanceIndicatorHistory listPerformanceIndicatorHistoryOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + ApiResponse resp = listPerformanceIndicatorHistoryOfProjectVersionWithHttpInfo(parentId, fields, start, limit, q); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResponse<ApiResultListPerformanceIndicatorHistory> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPerformanceIndicatorHistoryOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + com.squareup.okhttp.Call call = listPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPerformanceIndicatorHistoryOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String q, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readPerformanceIndicatorHistoryOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readPerformanceIndicatorHistoryOfProjectVersionCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/performanceIndicatorHistories/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readPerformanceIndicatorHistoryOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readPerformanceIndicatorHistoryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readPerformanceIndicatorHistoryOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultPerformanceIndicatorHistory + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPerformanceIndicatorHistory readPerformanceIndicatorHistoryOfProjectVersion(Long parentId, String id, String fields) throws ApiException { + ApiResponse resp = readPerformanceIndicatorHistoryOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultPerformanceIndicatorHistory> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readPerformanceIndicatorHistoryOfProjectVersionWithHttpInfo(Long parentId, String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readPerformanceIndicatorHistoryOfProjectVersionAsync(Long parentId, String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readPerformanceIndicatorHistoryOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PermissionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PermissionControllerApi.java new file mode 100644 index 0000000..00744ec --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PermissionControllerApi.java @@ -0,0 +1,331 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; +import com.fortify.ssc.restclient.model.ApiResultPermission; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PermissionControllerApi { + private ApiClient apiClient; + + public PermissionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PermissionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listPermission + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPermissionCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/permissions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPermissionValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listPermissionCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListPermission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPermission listPermission(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listPermissionWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListPermission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPermissionWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listPermissionValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPermissionAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPermissionValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readPermission + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readPermissionCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/permissions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readPermissionValidateBeforeCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readPermission(Async)"); + } + + + com.squareup.okhttp.Call call = readPermissionCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultPermission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPermission readPermission(String id, String fields) throws ApiException { + ApiResponse resp = readPermissionWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultPermission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readPermissionWithHttpInfo(String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readPermissionValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readPermissionAsync(String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readPermissionValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApi.java new file mode 100644 index 0000000..15e2dbc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PermissionOfRoleControllerApi { + private ApiClient apiClient; + + public PermissionOfRoleControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PermissionOfRoleControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listPermissionOfRole + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPermissionOfRoleCall(String parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/roles/{parentId}/permissions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPermissionOfRoleValidateBeforeCall(String parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listPermissionOfRole(Async)"); + } + + + com.squareup.okhttp.Call call = listPermissionOfRoleCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListPermission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPermission listPermissionOfRole(String parentId, String fields) throws ApiException { + ApiResponse resp = listPermissionOfRoleWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListPermission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPermissionOfRoleWithHttpInfo(String parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listPermissionOfRoleValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPermissionOfRoleAsync(String parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPermissionOfRoleValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApi.java new file mode 100644 index 0000000..c9e6170 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApi.java @@ -0,0 +1,199 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PermissionRequiredByPermissionControllerApi { + private ApiClient apiClient; + + public PermissionRequiredByPermissionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PermissionRequiredByPermissionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listPermissionRequiredByPermission + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPermissionRequiredByPermissionCall(String parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/permissions/{parentId}/dependsOn" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPermissionRequiredByPermissionValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listPermissionRequiredByPermission(Async)"); + } + + + com.squareup.okhttp.Call call = listPermissionRequiredByPermissionCall(parentId, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListPermission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPermission listPermissionRequiredByPermission(String parentId, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listPermissionRequiredByPermissionWithHttpInfo(parentId, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListPermission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPermissionRequiredByPermissionWithHttpInfo(String parentId, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listPermissionRequiredByPermissionValidateBeforeCall(parentId, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPermissionRequiredByPermissionAsync(String parentId, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPermissionRequiredByPermissionValidateBeforeCall(parentId, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PersonaControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PersonaControllerApi.java new file mode 100644 index 0000000..c60e357 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PersonaControllerApi.java @@ -0,0 +1,704 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPersona; +import com.fortify.ssc.restclient.model.ApiResultPersona; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Persona; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PersonaControllerApi { + private ApiClient apiClient; + + public PersonaControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PersonaControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createPersona + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createPersonaCall(Persona resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/personas"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createPersonaValidateBeforeCall(Persona resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createPersona(Async)"); + } + + + com.squareup.okhttp.Call call = createPersonaCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultPersona + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPersona createPersona(Persona resource) throws ApiException { + ApiResponse resp = createPersonaWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultPersona> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createPersonaWithHttpInfo(Persona resource) throws ApiException { + com.squareup.okhttp.Call call = createPersonaValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createPersonaAsync(Persona resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createPersonaValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePersona + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePersonaCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/personas/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePersonaValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deletePersona(Async)"); + } + + + com.squareup.okhttp.Call call = deletePersonaCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deletePersona(Long id) throws ApiException { + ApiResponse resp = deletePersonaWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePersonaWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deletePersonaValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePersonaAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePersonaValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listPersona + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPersonaCall(Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/personas"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPersonaValidateBeforeCall(Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listPersonaCall(start, limit, q, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResultListPersona + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPersona listPersona(Integer start, Integer limit, String q, String fields) throws ApiException { + ApiResponse resp = listPersonaWithHttpInfo(start, limit, q, fields); + return resp.getData(); + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListPersona> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPersonaWithHttpInfo(Integer start, Integer limit, String q, String fields) throws ApiException { + com.squareup.okhttp.Call call = listPersonaValidateBeforeCall(start, limit, q, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPersonaAsync(Integer start, Integer limit, String q, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPersonaValidateBeforeCall(start, limit, q, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readPersona + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readPersonaCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/personas/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readPersonaValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readPersona(Async)"); + } + + + com.squareup.okhttp.Call call = readPersonaCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultPersona + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPersona readPersona(Long id, String fields) throws ApiException { + ApiResponse resp = readPersonaWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultPersona> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readPersonaWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readPersonaValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readPersonaAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readPersonaValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updatePersona + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updatePersonaCall(Long id, Persona resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/personas/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updatePersonaValidateBeforeCall(Long id, Persona resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updatePersona(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updatePersona(Async)"); + } + + + com.squareup.okhttp.Call call = updatePersonaCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultPersona + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPersona updatePersona(Long id, Persona resource) throws ApiException { + ApiResponse resp = updatePersonaWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultPersona> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updatePersonaWithHttpInfo(Long id, Persona resource) throws ApiException { + com.squareup.okhttp.Call call = updatePersonaValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updatePersonaAsync(Long id, Persona resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updatePersonaValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PluginControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PluginControllerApi.java new file mode 100644 index 0000000..35139c8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PluginControllerApi.java @@ -0,0 +1,835 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListPluginMetaData; +import com.fortify.ssc.restclient.model.ApiResultPluginMetaData; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.PluginDisableRequest; +import com.fortify.ssc.restclient.model.PluginEnableRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PluginControllerApi { + private ApiClient apiClient; + + public PluginControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PluginControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for deletePlugin + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePluginCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/plugins/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePluginValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deletePlugin(Async)"); + } + + + com.squareup.okhttp.Call call = deletePluginCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deletePlugin(Long id) throws ApiException { + ApiResponse resp = deletePluginWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePluginWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deletePluginValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePluginAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePluginValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for disablePlugin + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call disablePluginCall(PluginDisableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/plugins/action/disable"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call disablePluginValidateBeforeCall(PluginDisableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling disablePlugin(Async)"); + } + + + com.squareup.okhttp.Call call = disablePluginCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * disable + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid disablePlugin(PluginDisableRequest resource) throws ApiException { + ApiResponse resp = disablePluginWithHttpInfo(resource); + return resp.getData(); + } + + /** + * disable + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse disablePluginWithHttpInfo(PluginDisableRequest resource) throws ApiException { + com.squareup.okhttp.Call call = disablePluginValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * disable (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call disablePluginAsync(PluginDisableRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = disablePluginValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionPlugin + * @param id id (required) + * @param apiResourceAction apiResourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionPluginCall(Long id, ApiResourceAction apiResourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = apiResourceAction; + + // create path and map variables + String localVarPath = "/plugins/{id}/action" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionPluginValidateBeforeCall(Long id, ApiResourceAction apiResourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling doActionPlugin(Async)"); + } + + // verify the required parameter 'apiResourceAction' is set + if (apiResourceAction == null) { + throw new ApiException("Missing the required parameter 'apiResourceAction' when calling doActionPlugin(Async)"); + } + + + com.squareup.okhttp.Call call = doActionPluginCall(id, apiResourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param id id (required) + * @param apiResourceAction apiResourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionPlugin(Long id, ApiResourceAction apiResourceAction) throws ApiException { + ApiResponse resp = doActionPluginWithHttpInfo(id, apiResourceAction); + return resp.getData(); + } + + /** + * doAction + * + * @param id id (required) + * @param apiResourceAction apiResourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionPluginWithHttpInfo(Long id, ApiResourceAction apiResourceAction) throws ApiException { + com.squareup.okhttp.Call call = doActionPluginValidateBeforeCall(id, apiResourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param id id (required) + * @param apiResourceAction apiResourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionPluginAsync(Long id, ApiResourceAction apiResourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionPluginValidateBeforeCall(id, apiResourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for enablePlugin + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call enablePluginCall(PluginEnableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/plugins/action/enable"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call enablePluginValidateBeforeCall(PluginEnableRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling enablePlugin(Async)"); + } + + + com.squareup.okhttp.Call call = enablePluginCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * enable + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid enablePlugin(PluginEnableRequest resource) throws ApiException { + ApiResponse resp = enablePluginWithHttpInfo(resource); + return resp.getData(); + } + + /** + * enable + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse enablePluginWithHttpInfo(PluginEnableRequest resource) throws ApiException { + com.squareup.okhttp.Call call = enablePluginValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * enable (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call enablePluginAsync(PluginEnableRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = enablePluginValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listPlugin + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPluginCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/plugins"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPluginValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listPluginCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListPluginMetaData + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListPluginMetaData listPlugin(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listPluginWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListPluginMetaData> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPluginWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listPluginValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listPluginAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPluginValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readPlugin + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readPluginCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/plugins/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readPluginValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readPlugin(Async)"); + } + + + com.squareup.okhttp.Call call = readPluginCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultPluginMetaData + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPluginMetaData readPlugin(Long id, String fields) throws ApiException { + ApiResponse resp = readPluginWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultPluginMetaData> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readPluginWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readPluginValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readPluginAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readPluginValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PluginImageControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PluginImageControllerApi.java new file mode 100644 index 0000000..8069513 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PluginImageControllerApi.java @@ -0,0 +1,192 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PluginImageControllerApi { + private ApiClient apiClient; + + public PluginImageControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PluginImageControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getPluginImage + * @param imageType imageType (required) + * @param metadataId metadataId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPluginImageCall(String imageType, Long metadataId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pluginimage"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (imageType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageType", imageType)); + if (metadataId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("metadataId", metadataId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "image/png" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPluginImageValidateBeforeCall(String imageType, Long metadataId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'imageType' is set + if (imageType == null) { + throw new ApiException("Missing the required parameter 'imageType' when calling getPluginImage(Async)"); + } + + // verify the required parameter 'metadataId' is set + if (metadataId == null) { + throw new ApiException("Missing the required parameter 'metadataId' when calling getPluginImage(Async)"); + } + + + com.squareup.okhttp.Call call = getPluginImageCall(imageType, metadataId, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param imageType imageType (required) + * @param metadataId metadataId (required) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public byte[] getPluginImage(String imageType, Long metadataId) throws ApiException { + ApiResponse resp = getPluginImageWithHttpInfo(imageType, metadataId); + return resp.getData(); + } + + /** + * get + * + * @param imageType imageType (required) + * @param metadataId metadataId (required) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPluginImageWithHttpInfo(String imageType, Long metadataId) throws ApiException { + com.squareup.okhttp.Call call = getPluginImageValidateBeforeCall(imageType, metadataId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param imageType imageType (required) + * @param metadataId metadataId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPluginImageAsync(String imageType, Long metadataId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPluginImageValidateBeforeCall(imageType, metadataId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApi.java new file mode 100644 index 0000000..f00f8e9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApi.java @@ -0,0 +1,204 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultPluginLocalization; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PluginLocalizationControllerApi { + private ApiClient apiClient; + + public PluginLocalizationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public PluginLocalizationControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for readPluginLocalization + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param language language (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readPluginLocalizationCall(String engineType, Integer dataVersion, String language, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pluginlocalization"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (engineType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("engineType", engineType)); + if (dataVersion != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dataVersion", dataVersion)); + if (language != null) + localVarQueryParams.addAll(apiClient.parameterToPair("language", language)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readPluginLocalizationValidateBeforeCall(String engineType, Integer dataVersion, String language, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'engineType' is set + if (engineType == null) { + throw new ApiException("Missing the required parameter 'engineType' when calling readPluginLocalization(Async)"); + } + + // verify the required parameter 'dataVersion' is set + if (dataVersion == null) { + throw new ApiException("Missing the required parameter 'dataVersion' when calling readPluginLocalization(Async)"); + } + + // verify the required parameter 'language' is set + if (language == null) { + throw new ApiException("Missing the required parameter 'language' when calling readPluginLocalization(Async)"); + } + + + com.squareup.okhttp.Call call = readPluginLocalizationCall(engineType, dataVersion, language, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param language language (required) + * @return ApiResultPluginLocalization + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultPluginLocalization readPluginLocalization(String engineType, Integer dataVersion, String language) throws ApiException { + ApiResponse resp = readPluginLocalizationWithHttpInfo(engineType, dataVersion, language); + return resp.getData(); + } + + /** + * read + * + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param language language (required) + * @return ApiResponse<ApiResultPluginLocalization> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readPluginLocalizationWithHttpInfo(String engineType, Integer dataVersion, String language) throws ApiException { + com.squareup.okhttp.Call call = readPluginLocalizationValidateBeforeCall(engineType, dataVersion, language, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param engineType engineType (required) + * @param dataVersion dataVersion (required) + * @param language language (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readPluginLocalizationAsync(String engineType, Integer dataVersion, String language, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readPluginLocalizationValidateBeforeCall(engineType, dataVersion, language, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectControllerApi.java new file mode 100644 index 0000000..f978566 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectControllerApi.java @@ -0,0 +1,718 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultApplicationNameTestResponse; +import com.fortify.ssc.restclient.model.ApiResultListProject; +import com.fortify.ssc.restclient.model.ApiResultProject; +import com.fortify.ssc.restclient.model.ApplicationNameTestRequest; +import com.fortify.ssc.restclient.model.Project; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectControllerApi { + private ApiClient apiClient; + + public ProjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doCollectionActionProject + * @param apiResourceAction apiResourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doCollectionActionProjectCall(ApiCollectionActionlong apiResourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = apiResourceAction; + + // create path and map variables + String localVarPath = "/projects/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doCollectionActionProjectValidateBeforeCall(ApiCollectionActionlong apiResourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'apiResourceAction' is set + if (apiResourceAction == null) { + throw new ApiException("Missing the required parameter 'apiResourceAction' when calling doCollectionActionProject(Async)"); + } + + + com.squareup.okhttp.Call call = doCollectionActionProjectCall(apiResourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doCollectionAction + * + * @param apiResourceAction apiResourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doCollectionActionProject(ApiCollectionActionlong apiResourceAction) throws ApiException { + ApiResponse resp = doCollectionActionProjectWithHttpInfo(apiResourceAction); + return resp.getData(); + } + + /** + * doCollectionAction + * + * @param apiResourceAction apiResourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doCollectionActionProjectWithHttpInfo(ApiCollectionActionlong apiResourceAction) throws ApiException { + com.squareup.okhttp.Call call = doCollectionActionProjectValidateBeforeCall(apiResourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doCollectionAction (asynchronously) + * + * @param apiResourceAction apiResourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doCollectionActionProjectAsync(ApiCollectionActionlong apiResourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doCollectionActionProjectValidateBeforeCall(apiResourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listProject + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listProjectCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResultListProject + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProject listProject(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + ApiResponse resp = listProjectWithHttpInfo(fields, start, limit, q, fulltextsearch, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListProject> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listProjectValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readProject + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readProjectCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readProjectValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readProject(Async)"); + } + + + com.squareup.okhttp.Call call = readProjectCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultProject + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProject readProject(Long id, String fields) throws ApiException { + ApiResponse resp = readProjectWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultProject> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readProjectWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readProjectValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readProjectAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readProjectValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for testProject + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call testProjectCall(ApplicationNameTestRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projects/action/test"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call testProjectValidateBeforeCall(ApplicationNameTestRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling testProject(Async)"); + } + + + com.squareup.okhttp.Call call = testProjectCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * test + * + * @param resource resource (required) + * @return ApiResultApplicationNameTestResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApplicationNameTestResponse testProject(ApplicationNameTestRequest resource) throws ApiException { + ApiResponse resp = testProjectWithHttpInfo(resource); + return resp.getData(); + } + + /** + * test + * + * @param resource resource (required) + * @return ApiResponse<ApiResultApplicationNameTestResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse testProjectWithHttpInfo(ApplicationNameTestRequest resource) throws ApiException { + com.squareup.okhttp.Call call = testProjectValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * test (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call testProjectAsync(ApplicationNameTestRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = testProjectValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateProject + * @param id id (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateProjectCall(Long id, Project data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateProjectValidateBeforeCall(Long id, Project data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateProject(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateProject(Async)"); + } + + + com.squareup.okhttp.Call call = updateProjectCall(id, data, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param data data (required) + * @return ApiResultProject + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProject updateProject(Long id, Project data) throws ApiException { + ApiResponse resp = updateProjectWithHttpInfo(id, data); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param data data (required) + * @return ApiResponse<ApiResultProject> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateProjectWithHttpInfo(Long id, Project data) throws ApiException { + com.squareup.okhttp.Call call = updateProjectValidateBeforeCall(id, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateProjectAsync(Long id, Project data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateProjectValidateBeforeCall(id, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApi.java new file mode 100644 index 0000000..16496f4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApi.java @@ -0,0 +1,1854 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionRefreshResponse; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionTestResponse; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ProjectVersion; +import com.fortify.ssc.restclient.model.ProjectVersionAuditByAssistantRequest; +import com.fortify.ssc.restclient.model.ProjectVersionCopyCurrentStateRequest; +import com.fortify.ssc.restclient.model.ProjectVersionCopyPartialRequest; +import com.fortify.ssc.restclient.model.ProjectVersionPurgeRequest; +import com.fortify.ssc.restclient.model.ProjectVersionRefreshRequest; +import com.fortify.ssc.restclient.model.ProjectVersionTestRequest; +import com.fortify.ssc.restclient.model.ProjectVersionTrainAuditAssistantRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectVersionControllerApi { + private ApiClient apiClient; + + public ProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for auditByAuditAssistantProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call auditByAuditAssistantProjectVersionCall(ProjectVersionAuditByAssistantRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/auditByAuditAssistant"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call auditByAuditAssistantProjectVersionValidateBeforeCall(ProjectVersionAuditByAssistantRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling auditByAuditAssistantProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = auditByAuditAssistantProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * auditByAuditAssistant + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid auditByAuditAssistantProjectVersion(ProjectVersionAuditByAssistantRequest resource) throws ApiException { + ApiResponse resp = auditByAuditAssistantProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * auditByAuditAssistant + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse auditByAuditAssistantProjectVersionWithHttpInfo(ProjectVersionAuditByAssistantRequest resource) throws ApiException { + com.squareup.okhttp.Call call = auditByAuditAssistantProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * auditByAuditAssistant (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call auditByAuditAssistantProjectVersionAsync(ProjectVersionAuditByAssistantRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = auditByAuditAssistantProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for copyCurrentStateForProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call copyCurrentStateForProjectVersionCall(ProjectVersionCopyCurrentStateRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/copyCurrentState"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call copyCurrentStateForProjectVersionValidateBeforeCall(ProjectVersionCopyCurrentStateRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling copyCurrentStateForProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = copyCurrentStateForProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * copyCurrentStateFor + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid copyCurrentStateForProjectVersion(ProjectVersionCopyCurrentStateRequest resource) throws ApiException { + ApiResponse resp = copyCurrentStateForProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * copyCurrentStateFor + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse copyCurrentStateForProjectVersionWithHttpInfo(ProjectVersionCopyCurrentStateRequest resource) throws ApiException { + com.squareup.okhttp.Call call = copyCurrentStateForProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * copyCurrentStateFor (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call copyCurrentStateForProjectVersionAsync(ProjectVersionCopyCurrentStateRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = copyCurrentStateForProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for copyProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call copyProjectVersionCall(ProjectVersionCopyPartialRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/copyFromPartial"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call copyProjectVersionValidateBeforeCall(ProjectVersionCopyPartialRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling copyProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = copyProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * copy + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid copyProjectVersion(ProjectVersionCopyPartialRequest resource) throws ApiException { + ApiResponse resp = copyProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * copy + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse copyProjectVersionWithHttpInfo(ProjectVersionCopyPartialRequest resource) throws ApiException { + com.squareup.okhttp.Call call = copyProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * copy (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call copyProjectVersionAsync(ProjectVersionCopyPartialRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = copyProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createProjectVersionCall(ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createProjectVersionValidateBeforeCall(ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = createProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersion createProjectVersion(ProjectVersion resource) throws ApiException { + ApiResponse resp = createProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createProjectVersionWithHttpInfo(ProjectVersion resource) throws ApiException { + com.squareup.okhttp.Call call = createProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createProjectVersionAsync(ProjectVersion resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteProjectVersion + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteProjectVersionCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteProjectVersionValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = deleteProjectVersionCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteProjectVersion(Long id) throws ApiException { + ApiResponse resp = deleteProjectVersionWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteProjectVersionWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteProjectVersionValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteProjectVersionAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteProjectVersionValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionProjectVersion + * @param id id (required) + * @param resourceAction resourceAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionCall(Long id, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resourceAction; + + // create path and map variables + String localVarPath = "/projectVersions/{id}/action" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionProjectVersionValidateBeforeCall(Long id, ApiResourceAction resourceAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling doActionProjectVersion(Async)"); + } + + // verify the required parameter 'resourceAction' is set + if (resourceAction == null) { + throw new ApiException("Missing the required parameter 'resourceAction' when calling doActionProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = doActionProjectVersionCall(id, resourceAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionProjectVersion(Long id, ApiResourceAction resourceAction) throws ApiException { + ApiResponse resp = doActionProjectVersionWithHttpInfo(id, resourceAction); + return resp.getData(); + } + + /** + * doAction + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionProjectVersionWithHttpInfo(Long id, ApiResourceAction resourceAction) throws ApiException { + com.squareup.okhttp.Call call = doActionProjectVersionValidateBeforeCall(id, resourceAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param id id (required) + * @param resourceAction resourceAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionAsync(Long id, ApiResourceAction resourceAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionProjectVersionValidateBeforeCall(id, resourceAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doCollectionActionProjectVersion + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doCollectionActionProjectVersionCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/projectVersions/action"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doCollectionActionProjectVersionValidateBeforeCall(ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doCollectionActionProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = doCollectionActionProjectVersionCall(collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doCollectionActionProjectVersion(ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doCollectionActionProjectVersionWithHttpInfo(collectionAction); + return resp.getData(); + } + + /** + * doCollectionAction + * + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doCollectionActionProjectVersionWithHttpInfo(ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doCollectionActionProjectVersionValidateBeforeCall(collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doCollectionAction (asynchronously) + * + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doCollectionActionProjectVersionAsync(ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doCollectionActionProjectVersionValidateBeforeCall(collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listProjectVersion + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param onlyIfHasIssues onlyIfHasIssues (optional, default to false) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectVersionCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, Boolean onlyIfHasIssues, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (includeInactive != null) + localVarQueryParams.addAll(apiClient.parameterToPair("includeInactive", includeInactive)); + if (myAssignedIssues != null) + localVarQueryParams.addAll(apiClient.parameterToPair("myAssignedIssues", myAssignedIssues)); + if (onlyIfHasIssues != null) + localVarQueryParams.addAll(apiClient.parameterToPair("onlyIfHasIssues", onlyIfHasIssues)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectVersionValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, Boolean onlyIfHasIssues, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listProjectVersionCall(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param onlyIfHasIssues onlyIfHasIssues (optional, default to false) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion listProjectVersion(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, Boolean onlyIfHasIssues) throws ApiException { + ApiResponse resp = listProjectVersionWithHttpInfo(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param onlyIfHasIssues onlyIfHasIssues (optional, default to false) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectVersionWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, Boolean onlyIfHasIssues) throws ApiException { + com.squareup.okhttp.Call call = listProjectVersionValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param onlyIfHasIssues onlyIfHasIssues (optional, default to false) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectVersionAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, Boolean onlyIfHasIssues, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectVersionValidateBeforeCall(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for purgeProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call purgeProjectVersionCall(ProjectVersionPurgeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/purge"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call purgeProjectVersionValidateBeforeCall(ProjectVersionPurgeRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling purgeProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = purgeProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * purge + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid purgeProjectVersion(ProjectVersionPurgeRequest resource) throws ApiException { + ApiResponse resp = purgeProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * purge + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse purgeProjectVersionWithHttpInfo(ProjectVersionPurgeRequest resource) throws ApiException { + com.squareup.okhttp.Call call = purgeProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * purge (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call purgeProjectVersionAsync(ProjectVersionPurgeRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = purgeProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readProjectVersion + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readProjectVersionCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readProjectVersionValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readProjectVersionCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersion readProjectVersion(Long id, String fields) throws ApiException { + ApiResponse resp = readProjectVersionWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readProjectVersionWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readProjectVersionValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readProjectVersionAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readProjectVersionValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for refreshProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call refreshProjectVersionCall(ProjectVersionRefreshRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/refresh"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call refreshProjectVersionValidateBeforeCall(ProjectVersionRefreshRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling refreshProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = refreshProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * refresh + * + * @param resource resource (required) + * @return ApiResultProjectVersionRefreshResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersionRefreshResponse refreshProjectVersion(ProjectVersionRefreshRequest resource) throws ApiException { + ApiResponse resp = refreshProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * refresh + * + * @param resource resource (required) + * @return ApiResponse<ApiResultProjectVersionRefreshResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse refreshProjectVersionWithHttpInfo(ProjectVersionRefreshRequest resource) throws ApiException { + com.squareup.okhttp.Call call = refreshProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * refresh (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call refreshProjectVersionAsync(ProjectVersionRefreshRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = refreshProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for testProjectVersion + * @param projectVersionTestRequest projectVersionTestRequest (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call testProjectVersionCall(ProjectVersionTestRequest projectVersionTestRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = projectVersionTestRequest; + + // create path and map variables + String localVarPath = "/projectVersions/action/test"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call testProjectVersionValidateBeforeCall(ProjectVersionTestRequest projectVersionTestRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'projectVersionTestRequest' is set + if (projectVersionTestRequest == null) { + throw new ApiException("Missing the required parameter 'projectVersionTestRequest' when calling testProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = testProjectVersionCall(projectVersionTestRequest, progressListener, progressRequestListener); + return call; + + } + + /** + * test + * + * @param projectVersionTestRequest projectVersionTestRequest (required) + * @return ApiResultProjectVersionTestResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersionTestResponse testProjectVersion(ProjectVersionTestRequest projectVersionTestRequest) throws ApiException { + ApiResponse resp = testProjectVersionWithHttpInfo(projectVersionTestRequest); + return resp.getData(); + } + + /** + * test + * + * @param projectVersionTestRequest projectVersionTestRequest (required) + * @return ApiResponse<ApiResultProjectVersionTestResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse testProjectVersionWithHttpInfo(ProjectVersionTestRequest projectVersionTestRequest) throws ApiException { + com.squareup.okhttp.Call call = testProjectVersionValidateBeforeCall(projectVersionTestRequest, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * test (asynchronously) + * + * @param projectVersionTestRequest projectVersionTestRequest (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call testProjectVersionAsync(ProjectVersionTestRequest projectVersionTestRequest, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = testProjectVersionValidateBeforeCall(projectVersionTestRequest, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for trainAuditAssistantProjectVersion + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call trainAuditAssistantProjectVersionCall(ProjectVersionTrainAuditAssistantRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/action/trainAuditAssistant"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call trainAuditAssistantProjectVersionValidateBeforeCall(ProjectVersionTrainAuditAssistantRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling trainAuditAssistantProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = trainAuditAssistantProjectVersionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * trainAuditAssistant + * + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid trainAuditAssistantProjectVersion(ProjectVersionTrainAuditAssistantRequest resource) throws ApiException { + ApiResponse resp = trainAuditAssistantProjectVersionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * trainAuditAssistant + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse trainAuditAssistantProjectVersionWithHttpInfo(ProjectVersionTrainAuditAssistantRequest resource) throws ApiException { + com.squareup.okhttp.Call call = trainAuditAssistantProjectVersionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * trainAuditAssistant (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call trainAuditAssistantProjectVersionAsync(ProjectVersionTrainAuditAssistantRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = trainAuditAssistantProjectVersionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateProjectVersion + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateProjectVersionCall(Long id, ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateProjectVersionValidateBeforeCall(Long id, ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateProjectVersionCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersion updateProjectVersion(Long id, ProjectVersion resource) throws ApiException { + ApiResponse resp = updateProjectVersionWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateProjectVersionWithHttpInfo(Long id, ProjectVersion resource) throws ApiException { + com.squareup.okhttp.Call call = updateProjectVersionValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateProjectVersionAsync(Long id, ProjectVersion resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateProjectVersionValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApi.java new file mode 100644 index 0000000..a983088 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApi.java @@ -0,0 +1,211 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectVersionOfAlertDefinitionControllerApi { + private ApiClient apiClient; + + public ProjectVersionOfAlertDefinitionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectVersionOfAlertDefinitionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listProjectVersionOfAlertDefinition + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfAlertDefinitionCall(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/alertDefinitions/{parentId}/projectVersions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectVersionOfAlertDefinitionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listProjectVersionOfAlertDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = listProjectVersionOfAlertDefinitionCall(parentId, fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion listProjectVersionOfAlertDefinition(Long parentId, String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listProjectVersionOfAlertDefinitionWithHttpInfo(parentId, fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectVersionOfAlertDefinitionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listProjectVersionOfAlertDefinitionValidateBeforeCall(parentId, fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfAlertDefinitionAsync(Long parentId, String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectVersionOfAlertDefinitionValidateBeforeCall(parentId, fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApi.java new file mode 100644 index 0000000..1e32caa --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApi.java @@ -0,0 +1,734 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ProjectVersionAuthEntityAssignRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectVersionOfAuthEntityControllerApi { + private ApiClient apiClient; + + public ProjectVersionOfAuthEntityControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectVersionOfAuthEntityControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for assignProjectVersionOfAuthEntity + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call assignProjectVersionOfAuthEntityCall(Long parentId, ProjectVersionAuthEntityAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/projectVersions/action/assign" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call assignProjectVersionOfAuthEntityValidateBeforeCall(Long parentId, ProjectVersionAuthEntityAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling assignProjectVersionOfAuthEntity(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling assignProjectVersionOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = assignProjectVersionOfAuthEntityCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid assignProjectVersionOfAuthEntity(Long parentId, ProjectVersionAuthEntityAssignRequest resource) throws ApiException { + ApiResponse resp = assignProjectVersionOfAuthEntityWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse assignProjectVersionOfAuthEntityWithHttpInfo(Long parentId, ProjectVersionAuthEntityAssignRequest resource) throws ApiException { + com.squareup.okhttp.Call call = assignProjectVersionOfAuthEntityValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * assign (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call assignProjectVersionOfAuthEntityAsync(Long parentId, ProjectVersionAuthEntityAssignRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = assignProjectVersionOfAuthEntityValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionProjectVersionOfAuthEntity + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionOfAuthEntityCall(Long parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/projectVersions/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionProjectVersionOfAuthEntityValidateBeforeCall(Long parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionProjectVersionOfAuthEntity(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionProjectVersionOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = doActionProjectVersionOfAuthEntityCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionProjectVersionOfAuthEntity(Long parentId, ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doActionProjectVersionOfAuthEntityWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionProjectVersionOfAuthEntityWithHttpInfo(Long parentId, ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionProjectVersionOfAuthEntityValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionOfAuthEntityAsync(Long parentId, ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionProjectVersionOfAuthEntityValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listProjectVersionOfAuthEntity + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfAuthEntityCall(Long parentId, Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/projectVersions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectVersionOfAuthEntityValidateBeforeCall(Long parentId, Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listProjectVersionOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = listProjectVersionOfAuthEntityCall(parentId, start, limit, q, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion listProjectVersionOfAuthEntity(Long parentId, Integer start, Integer limit, String q, String fields) throws ApiException { + ApiResponse resp = listProjectVersionOfAuthEntityWithHttpInfo(parentId, start, limit, q, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectVersionOfAuthEntityWithHttpInfo(Long parentId, Integer start, Integer limit, String q, String fields) throws ApiException { + com.squareup.okhttp.Call call = listProjectVersionOfAuthEntityValidateBeforeCall(parentId, start, limit, q, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfAuthEntityAsync(Long parentId, Integer start, Integer limit, String q, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectVersionOfAuthEntityValidateBeforeCall(parentId, start, limit, q, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteProjectVersionOfAuthEntity + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteProjectVersionOfAuthEntityCall(Long parentId, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/projectVersions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteProjectVersionOfAuthEntityValidateBeforeCall(Long parentId, String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling multiDeleteProjectVersionOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteProjectVersionOfAuthEntityCall(parentId, ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (optional) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteProjectVersionOfAuthEntity(Long parentId, String ids) throws ApiException { + ApiResponse resp = multiDeleteProjectVersionOfAuthEntityWithHttpInfo(parentId, ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (optional) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteProjectVersionOfAuthEntityWithHttpInfo(Long parentId, String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteProjectVersionOfAuthEntityValidateBeforeCall(parentId, ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param parentId parentId (required) + * @param ids A comma-separated list of resource identifiers (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteProjectVersionOfAuthEntityAsync(Long parentId, String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteProjectVersionOfAuthEntityValidateBeforeCall(parentId, ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateProjectVersionOfAuthEntity + * @param parentId parentId (required) + * @param resources resources (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateProjectVersionOfAuthEntityCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resources; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/projectVersions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateProjectVersionOfAuthEntityValidateBeforeCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateProjectVersionOfAuthEntity(Async)"); + } + + // verify the required parameter 'resources' is set + if (resources == null) { + throw new ApiException("Missing the required parameter 'resources' when calling updateProjectVersionOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = updateProjectVersionOfAuthEntityCall(parentId, resources, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion updateProjectVersionOfAuthEntity(Long parentId, List resources) throws ApiException { + ApiResponse resp = updateProjectVersionOfAuthEntityWithHttpInfo(parentId, resources); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateProjectVersionOfAuthEntityWithHttpInfo(Long parentId, List resources) throws ApiException { + com.squareup.okhttp.Call call = updateProjectVersionOfAuthEntityValidateBeforeCall(parentId, resources, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param resources resources (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateProjectVersionOfAuthEntityAsync(Long parentId, List resources, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateProjectVersionOfAuthEntityValidateBeforeCall(parentId, resources, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApi.java new file mode 100644 index 0000000..2f508e5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApi.java @@ -0,0 +1,606 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolProjectVersionActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.CloudPoolProjectVersionAssignRequest; +import com.fortify.ssc.restclient.model.CloudPoolProjectVersionReplaceRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectVersionOfCloudPoolControllerApi { + private ApiClient apiClient; + + public ProjectVersionOfCloudPoolControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectVersionOfCloudPoolControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for assignProjectVersionOfCloudPool + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call assignProjectVersionOfCloudPoolCall(String parentId, CloudPoolProjectVersionAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/versions/action/assign" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call assignProjectVersionOfCloudPoolValidateBeforeCall(String parentId, CloudPoolProjectVersionAssignRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling assignProjectVersionOfCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling assignProjectVersionOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = assignProjectVersionOfCloudPoolCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCloudPoolProjectVersionActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolProjectVersionActionResponse assignProjectVersionOfCloudPool(String parentId, CloudPoolProjectVersionAssignRequest resource) throws ApiException { + ApiResponse resp = assignProjectVersionOfCloudPoolWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * assign + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPoolProjectVersionActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse assignProjectVersionOfCloudPoolWithHttpInfo(String parentId, CloudPoolProjectVersionAssignRequest resource) throws ApiException { + com.squareup.okhttp.Call call = assignProjectVersionOfCloudPoolValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * assign (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call assignProjectVersionOfCloudPoolAsync(String parentId, CloudPoolProjectVersionAssignRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = assignProjectVersionOfCloudPoolValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for doActionProjectVersionOfCloudPool + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionOfCloudPoolCall(String parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = collectionAction; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/versions/action" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doActionProjectVersionOfCloudPoolValidateBeforeCall(String parentId, ApiCollectionActionlong collectionAction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling doActionProjectVersionOfCloudPool(Async)"); + } + + // verify the required parameter 'collectionAction' is set + if (collectionAction == null) { + throw new ApiException("Missing the required parameter 'collectionAction' when calling doActionProjectVersionOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = doActionProjectVersionOfCloudPoolCall(parentId, collectionAction, progressListener, progressRequestListener); + return call; + + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResultApiActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultApiActionResponse doActionProjectVersionOfCloudPool(String parentId, ApiCollectionActionlong collectionAction) throws ApiException { + ApiResponse resp = doActionProjectVersionOfCloudPoolWithHttpInfo(parentId, collectionAction); + return resp.getData(); + } + + /** + * doAction + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @return ApiResponse<ApiResultApiActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doActionProjectVersionOfCloudPoolWithHttpInfo(String parentId, ApiCollectionActionlong collectionAction) throws ApiException { + com.squareup.okhttp.Call call = doActionProjectVersionOfCloudPoolValidateBeforeCall(parentId, collectionAction, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * doAction (asynchronously) + * + * @param parentId parentId (required) + * @param collectionAction collectionAction (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doActionProjectVersionOfCloudPoolAsync(String parentId, ApiCollectionActionlong collectionAction, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doActionProjectVersionOfCloudPoolValidateBeforeCall(parentId, collectionAction, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listProjectVersionOfCloudPool + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfCloudPoolCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/versions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectVersionOfCloudPoolValidateBeforeCall(String parentId, String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listProjectVersionOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = listProjectVersionOfCloudPoolCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion listProjectVersionOfCloudPool(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + ApiResponse resp = listProjectVersionOfCloudPoolWithHttpInfo(parentId, fields, start, limit, orderby); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectVersionOfCloudPoolWithHttpInfo(String parentId, String fields, Integer start, Integer limit, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listProjectVersionOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfCloudPoolAsync(String parentId, String fields, Integer start, Integer limit, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectVersionOfCloudPoolValidateBeforeCall(parentId, fields, start, limit, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for replaceProjectVersionOfCloudPool + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call replaceProjectVersionOfCloudPoolCall(String parentId, CloudPoolProjectVersionReplaceRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/cloudpools/{parentId}/versions/action/replace" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call replaceProjectVersionOfCloudPoolValidateBeforeCall(String parentId, CloudPoolProjectVersionReplaceRequest resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling replaceProjectVersionOfCloudPool(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling replaceProjectVersionOfCloudPool(Async)"); + } + + + com.squareup.okhttp.Call call = replaceProjectVersionOfCloudPoolCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * replace + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultCloudPoolProjectVersionActionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultCloudPoolProjectVersionActionResponse replaceProjectVersionOfCloudPool(String parentId, CloudPoolProjectVersionReplaceRequest resource) throws ApiException { + ApiResponse resp = replaceProjectVersionOfCloudPoolWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * replace + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultCloudPoolProjectVersionActionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse replaceProjectVersionOfCloudPoolWithHttpInfo(String parentId, CloudPoolProjectVersionReplaceRequest resource) throws ApiException { + com.squareup.okhttp.Call call = replaceProjectVersionOfCloudPoolValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * replace (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call replaceProjectVersionOfCloudPoolAsync(String parentId, CloudPoolProjectVersionReplaceRequest resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = replaceProjectVersionOfCloudPoolValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApi.java new file mode 100644 index 0000000..6596623 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApi.java @@ -0,0 +1,363 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersion; +import com.fortify.ssc.restclient.model.ProjectVersion; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProjectVersionOfProjectControllerApi { + private ApiClient apiClient; + + public ProjectVersionOfProjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ProjectVersionOfProjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createProjectVersionOfProject + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createProjectVersionOfProjectCall(Long parentId, ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projects/{parentId}/versions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createProjectVersionOfProjectValidateBeforeCall(Long parentId, ProjectVersion resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling createProjectVersionOfProject(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createProjectVersionOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = createProjectVersionOfProjectCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultProjectVersion createProjectVersionOfProject(Long parentId, ProjectVersion resource) throws ApiException { + ApiResponse resp = createProjectVersionOfProjectWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * create + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createProjectVersionOfProjectWithHttpInfo(Long parentId, ProjectVersion resource) throws ApiException { + com.squareup.okhttp.Call call = createProjectVersionOfProjectValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createProjectVersionOfProjectAsync(Long parentId, ProjectVersion resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createProjectVersionOfProjectValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listProjectVersionOfProject + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfProjectCall(Long parentId, String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/versions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (includeInactive != null) + localVarQueryParams.addAll(apiClient.parameterToPair("includeInactive", includeInactive)); + if (myAssignedIssues != null) + localVarQueryParams.addAll(apiClient.parameterToPair("myAssignedIssues", myAssignedIssues)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectVersionOfProjectValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listProjectVersionOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = listProjectVersionOfProjectCall(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @return ApiResultListProjectVersion + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListProjectVersion listProjectVersionOfProject(Long parentId, String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues) throws ApiException { + ApiResponse resp = listProjectVersionOfProjectWithHttpInfo(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @return ApiResponse<ApiResultListProjectVersion> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectVersionOfProjectWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues) throws ApiException { + com.squareup.okhttp.Call call = listProjectVersionOfProjectValidateBeforeCall(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param orderby Fields to order by (optional) + * @param includeInactive includeInactive (optional, default to false) + * @param myAssignedIssues myAssignedIssues (optional, default to false) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listProjectVersionOfProjectAsync(Long parentId, String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String orderby, Boolean includeInactive, Boolean myAssignedIssues, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectVersionOfProjectValidateBeforeCall(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApi.java new file mode 100644 index 0000000..9055485 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApi.java @@ -0,0 +1,834 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListReportDefinition; +import com.fortify.ssc.restclient.model.ApiResultReportDefinition; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ReportDefinition; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ReportDefinitionControllerApi { + private ApiClient apiClient; + + public ReportDefinitionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReportDefinitionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createReportDefinition + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createReportDefinitionCall(ReportDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/reportDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createReportDefinitionValidateBeforeCall(ReportDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = createReportDefinitionCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultReportDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportDefinition createReportDefinition(ReportDefinition resource) throws ApiException { + ApiResponse resp = createReportDefinitionWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultReportDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createReportDefinitionWithHttpInfo(ReportDefinition resource) throws ApiException { + com.squareup.okhttp.Call call = createReportDefinitionValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createReportDefinitionAsync(ReportDefinition resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createReportDefinitionValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteReportDefinition + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteReportDefinitionCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteReportDefinitionValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = deleteReportDefinitionCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteReportDefinition(Long id) throws ApiException { + ApiResponse resp = deleteReportDefinitionWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteReportDefinitionWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteReportDefinitionValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteReportDefinitionAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteReportDefinitionValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listReportDefinition + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param groupby Fields to group by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listReportDefinitionCall(String fields, Integer start, Integer limit, String q, String groupby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (groupby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("groupby", groupby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listReportDefinitionValidateBeforeCall(String fields, Integer start, Integer limit, String q, String groupby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listReportDefinitionCall(fields, start, limit, q, groupby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param groupby Fields to group by (optional) + * @return ApiResultListReportDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListReportDefinition listReportDefinition(String fields, Integer start, Integer limit, String q, String groupby) throws ApiException { + ApiResponse resp = listReportDefinitionWithHttpInfo(fields, start, limit, q, groupby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param groupby Fields to group by (optional) + * @return ApiResponse<ApiResultListReportDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listReportDefinitionWithHttpInfo(String fields, Integer start, Integer limit, String q, String groupby) throws ApiException { + com.squareup.okhttp.Call call = listReportDefinitionValidateBeforeCall(fields, start, limit, q, groupby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param groupby Fields to group by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listReportDefinitionAsync(String fields, Integer start, Integer limit, String q, String groupby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listReportDefinitionValidateBeforeCall(fields, start, limit, q, groupby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteReportDefinition + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteReportDefinitionCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteReportDefinitionValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteReportDefinitionCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteReportDefinition(String ids) throws ApiException { + ApiResponse resp = multiDeleteReportDefinitionWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteReportDefinitionWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteReportDefinitionValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteReportDefinitionAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteReportDefinitionValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readReportDefinition + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readReportDefinitionCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readReportDefinitionValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = readReportDefinitionCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultReportDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportDefinition readReportDefinition(Long id, String fields) throws ApiException { + ApiResponse resp = readReportDefinitionWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultReportDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readReportDefinitionWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readReportDefinitionValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readReportDefinitionAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readReportDefinitionValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateReportDefinition + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateReportDefinitionCall(Long id, ReportDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/reportDefinitions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateReportDefinitionValidateBeforeCall(Long id, ReportDefinition resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateReportDefinition(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = updateReportDefinitionCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultReportDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportDefinition updateReportDefinition(Long id, ReportDefinition resource) throws ApiException { + ApiResponse resp = updateReportDefinitionWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultReportDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateReportDefinitionWithHttpInfo(Long id, ReportDefinition resource) throws ApiException { + com.squareup.okhttp.Call call = updateReportDefinitionValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateReportDefinitionAsync(Long id, ReportDefinition resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateReportDefinitionValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApi.java new file mode 100644 index 0000000..ccf8f9b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApi.java @@ -0,0 +1,822 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListReportLibrary; +import com.fortify.ssc.restclient.model.ApiResultReportLibrary; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ReportLibrary; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ReportLibraryControllerApi { + private ApiClient apiClient; + + public ReportLibraryControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReportLibraryControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createReportLibrary + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createReportLibraryCall(ReportLibrary resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/reportLibraries"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createReportLibraryValidateBeforeCall(ReportLibrary resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createReportLibrary(Async)"); + } + + + com.squareup.okhttp.Call call = createReportLibraryCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultReportLibrary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportLibrary createReportLibrary(ReportLibrary resource) throws ApiException { + ApiResponse resp = createReportLibraryWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultReportLibrary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createReportLibraryWithHttpInfo(ReportLibrary resource) throws ApiException { + com.squareup.okhttp.Call call = createReportLibraryValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createReportLibraryAsync(ReportLibrary resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createReportLibraryValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteReportLibrary + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteReportLibraryCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportLibraries/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteReportLibraryValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteReportLibrary(Async)"); + } + + + com.squareup.okhttp.Call call = deleteReportLibraryCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteReportLibrary(Long id) throws ApiException { + ApiResponse resp = deleteReportLibraryWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteReportLibraryWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteReportLibraryValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteReportLibraryAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteReportLibraryValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listReportLibrary + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listReportLibraryCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportLibraries"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listReportLibraryValidateBeforeCall(String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listReportLibraryCall(fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListReportLibrary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListReportLibrary listReportLibrary(String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listReportLibraryWithHttpInfo(fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListReportLibrary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listReportLibraryWithHttpInfo(String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listReportLibraryValidateBeforeCall(fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listReportLibraryAsync(String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listReportLibraryValidateBeforeCall(fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteReportLibrary + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteReportLibraryCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportLibraries"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteReportLibraryValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteReportLibrary(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteReportLibraryCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteReportLibrary(String ids) throws ApiException { + ApiResponse resp = multiDeleteReportLibraryWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteReportLibraryWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteReportLibraryValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteReportLibraryAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteReportLibraryValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readReportLibrary + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readReportLibraryCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reportLibraries/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readReportLibraryValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readReportLibrary(Async)"); + } + + + com.squareup.okhttp.Call call = readReportLibraryCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultReportLibrary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportLibrary readReportLibrary(Long id, String fields) throws ApiException { + ApiResponse resp = readReportLibraryWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultReportLibrary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readReportLibraryWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readReportLibraryValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readReportLibraryAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readReportLibraryValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateReportLibrary + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateReportLibraryCall(Long id, ReportLibrary resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/reportLibraries/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateReportLibraryValidateBeforeCall(Long id, ReportLibrary resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateReportLibrary(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateReportLibrary(Async)"); + } + + + com.squareup.okhttp.Call call = updateReportLibraryCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultReportLibrary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultReportLibrary updateReportLibrary(Long id, ReportLibrary resource) throws ApiException { + ApiResponse resp = updateReportLibraryWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultReportLibrary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateReportLibraryWithHttpInfo(Long id, ReportLibrary resource) throws ApiException { + com.squareup.okhttp.Call call = updateReportLibraryValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateReportLibraryAsync(Long id, ReportLibrary resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateReportLibraryValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApi.java new file mode 100644 index 0000000..ea2af78 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApi.java @@ -0,0 +1,478 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ApiResultResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResponsibilityAssignmentOfProjectControllerApi { + private ApiClient apiClient; + + public ResponsibilityAssignmentOfProjectControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ResponsibilityAssignmentOfProjectControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listResponsibilityAssignmentOfProject + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/responsibilities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listResponsibilityAssignmentOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResultListResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResponsibilityAssignment listResponsibilityAssignmentOfProject(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + ApiResponse resp = listResponsibilityAssignmentOfProjectWithHttpInfo(parentId, fields, start, limit, q); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResponse<ApiResultListResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listResponsibilityAssignmentOfProjectWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, fields, start, limit, q, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectAsync(Long parentId, String fields, Integer start, Integer limit, String q, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readResponsibilityAssignmentOfProject + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectCall(Long parentId, String guid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projects/{parentId}/responsibilities/{guid}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectValidateBeforeCall(Long parentId, String guid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readResponsibilityAssignmentOfProject(Async)"); + } + + // verify the required parameter 'guid' is set + if (guid == null) { + throw new ApiException("Missing the required parameter 'guid' when calling readResponsibilityAssignmentOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectCall(parentId, guid, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @return ApiResultResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultResponsibilityAssignment readResponsibilityAssignmentOfProject(Long parentId, String guid, String fields) throws ApiException { + ApiResponse resp = readResponsibilityAssignmentOfProjectWithHttpInfo(parentId, guid, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readResponsibilityAssignmentOfProjectWithHttpInfo(Long parentId, String guid, String fields) throws ApiException { + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, guid, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectAsync(Long parentId, String guid, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, guid, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionResponsibilityAssignmentOfProject + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projects/{parentId}/responsibilities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionResponsibilityAssignmentOfProject(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionResponsibilityAssignmentOfProject(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResponsibilityAssignment updateCollectionResponsibilityAssignmentOfProject(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionResponsibilityAssignmentOfProjectWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionResponsibilityAssignmentOfProjectWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApi.java new file mode 100644 index 0000000..610be3a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApi.java @@ -0,0 +1,478 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ApiResultResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResponsibilityAssignmentOfProjectVersionControllerApi { + private ApiClient apiClient; + + public ResponsibilityAssignmentOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ResponsibilityAssignmentOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listResponsibilityAssignmentOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/responsibilities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listResponsibilityAssignmentOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectVersionCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResultListResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResponsibilityAssignment listResponsibilityAssignmentOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + ApiResponse resp = listResponsibilityAssignmentOfProjectVersionWithHttpInfo(parentId, fields, start, limit, q); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResponse<ApiResultListResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listResponsibilityAssignmentOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listResponsibilityAssignmentOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String q, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readResponsibilityAssignmentOfProjectVersion + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectVersionCall(Long parentId, String guid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/responsibilities/{guid}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectVersionValidateBeforeCall(Long parentId, String guid, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readResponsibilityAssignmentOfProjectVersion(Async)"); + } + + // verify the required parameter 'guid' is set + if (guid == null) { + throw new ApiException("Missing the required parameter 'guid' when calling readResponsibilityAssignmentOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectVersionCall(parentId, guid, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @return ApiResultResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultResponsibilityAssignment readResponsibilityAssignmentOfProjectVersion(Long parentId, String guid, String fields) throws ApiException { + ApiResponse resp = readResponsibilityAssignmentOfProjectVersionWithHttpInfo(parentId, guid, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readResponsibilityAssignmentOfProjectVersionWithHttpInfo(Long parentId, String guid, String fields) throws ApiException { + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, guid, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param guid guid (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readResponsibilityAssignmentOfProjectVersionAsync(Long parentId, String guid, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, guid, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionResponsibilityAssignmentOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/responsibilities" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionResponsibilityAssignmentOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionResponsibilityAssignmentOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListResponsibilityAssignment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResponsibilityAssignment updateCollectionResponsibilityAssignmentOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionResponsibilityAssignmentOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListResponsibilityAssignment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionResponsibilityAssignmentOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionResponsibilityAssignmentOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionResponsibilityAssignmentOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApi.java new file mode 100644 index 0000000..2c97233 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApi.java @@ -0,0 +1,320 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResultProcessingRule; +import com.fortify.ssc.restclient.model.ResultProcessingRule; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResultProcessingRuleOfProjectVersionControllerApi { + private ApiClient apiClient; + + public ResultProcessingRuleOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ResultProcessingRuleOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listResultProcessingRuleOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listResultProcessingRuleOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/resultProcessingRules" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listResultProcessingRuleOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listResultProcessingRuleOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listResultProcessingRuleOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListResultProcessingRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResultProcessingRule listResultProcessingRuleOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listResultProcessingRuleOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListResultProcessingRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listResultProcessingRuleOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listResultProcessingRuleOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listResultProcessingRuleOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listResultProcessingRuleOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateCollectionResultProcessingRuleOfProjectVersion + * @param parentId parentId (required) + * @param data data (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateCollectionResultProcessingRuleOfProjectVersionCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/resultProcessingRules" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateCollectionResultProcessingRuleOfProjectVersionValidateBeforeCall(Long parentId, List data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateCollectionResultProcessingRuleOfProjectVersion(Async)"); + } + + // verify the required parameter 'data' is set + if (data == null) { + throw new ApiException("Missing the required parameter 'data' when calling updateCollectionResultProcessingRuleOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateCollectionResultProcessingRuleOfProjectVersionCall(parentId, data, progressListener, progressRequestListener); + return call; + + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResultListResultProcessingRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListResultProcessingRule updateCollectionResultProcessingRuleOfProjectVersion(Long parentId, List data) throws ApiException { + ApiResponse resp = updateCollectionResultProcessingRuleOfProjectVersionWithHttpInfo(parentId, data); + return resp.getData(); + } + + /** + * updateCollection + * + * @param parentId parentId (required) + * @param data data (required) + * @return ApiResponse<ApiResultListResultProcessingRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateCollectionResultProcessingRuleOfProjectVersionWithHttpInfo(Long parentId, List data) throws ApiException { + com.squareup.okhttp.Call call = updateCollectionResultProcessingRuleOfProjectVersionValidateBeforeCall(parentId, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * updateCollection (asynchronously) + * + * @param parentId parentId (required) + * @param data data (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateCollectionResultProcessingRuleOfProjectVersionAsync(Long parentId, List data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateCollectionResultProcessingRuleOfProjectVersionValidateBeforeCall(parentId, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/RoleControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/RoleControllerApi.java new file mode 100644 index 0000000..1f02710 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/RoleControllerApi.java @@ -0,0 +1,840 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRole; +import com.fortify.ssc.restclient.model.ApiResultRole; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Role; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class RoleControllerApi { + private ApiClient apiClient; + + public RoleControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public RoleControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createRole + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createRoleCall(Role resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/roles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createRoleValidateBeforeCall(Role resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createRole(Async)"); + } + + + com.squareup.okhttp.Call call = createRoleCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultRole + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultRole createRole(Role resource) throws ApiException { + ApiResponse resp = createRoleWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultRole> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createRoleWithHttpInfo(Role resource) throws ApiException { + com.squareup.okhttp.Call call = createRoleValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createRoleAsync(Role resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createRoleValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteRole + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRoleCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/roles/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRoleValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteRole(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRoleCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteRole(String id) throws ApiException { + ApiResponse resp = deleteRoleWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRoleWithHttpInfo(String id) throws ApiException { + com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRoleAsync(String id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRole + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param excludeuseronly excludeuseronly (optional, default to false) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRoleCall(Integer start, Integer limit, String q, String orderby, String fields, Boolean excludeuseronly, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/roles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (excludeuseronly != null) + localVarQueryParams.addAll(apiClient.parameterToPair("excludeuseronly", excludeuseronly)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRoleValidateBeforeCall(Integer start, Integer limit, String q, String orderby, String fields, Boolean excludeuseronly, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRoleCall(start, limit, q, orderby, fields, excludeuseronly, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param excludeuseronly excludeuseronly (optional, default to false) + * @return ApiResultListRole + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListRole listRole(Integer start, Integer limit, String q, String orderby, String fields, Boolean excludeuseronly) throws ApiException { + ApiResponse resp = listRoleWithHttpInfo(start, limit, q, orderby, fields, excludeuseronly); + return resp.getData(); + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param excludeuseronly excludeuseronly (optional, default to false) + * @return ApiResponse<ApiResultListRole> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRoleWithHttpInfo(Integer start, Integer limit, String q, String orderby, String fields, Boolean excludeuseronly) throws ApiException { + com.squareup.okhttp.Call call = listRoleValidateBeforeCall(start, limit, q, orderby, fields, excludeuseronly, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param fields Output fields (optional) + * @param excludeuseronly excludeuseronly (optional, default to false) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRoleAsync(Integer start, Integer limit, String q, String orderby, String fields, Boolean excludeuseronly, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRoleValidateBeforeCall(start, limit, q, orderby, fields, excludeuseronly, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteRole + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteRoleCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/roles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteRoleValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteRole(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteRoleCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteRole(String ids) throws ApiException { + ApiResponse resp = multiDeleteRoleWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteRoleWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteRoleValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteRoleAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteRoleValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readRole + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readRoleCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/roles/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readRoleValidateBeforeCall(String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readRole(Async)"); + } + + + com.squareup.okhttp.Call call = readRoleCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultRole + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultRole readRole(String id, String fields) throws ApiException { + ApiResponse resp = readRoleWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultRole> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readRoleWithHttpInfo(String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readRoleValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readRoleAsync(String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readRoleValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateRole + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateRoleCall(String id, Role resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/roles/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateRoleValidateBeforeCall(String id, Role resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateRole(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateRole(Async)"); + } + + + com.squareup.okhttp.Call call = updateRoleCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultRole + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultRole updateRole(String id, Role resource) throws ApiException { + ApiResponse resp = updateRoleWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultRole> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateRoleWithHttpInfo(String id, Role resource) throws ApiException { + com.squareup.okhttp.Call call = updateRoleValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateRoleAsync(String id, Role resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateRoleValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApi.java new file mode 100644 index 0000000..3fb10d4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRole; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class RoleOfAuthEntityControllerApi { + private ApiClient apiClient; + + public RoleOfAuthEntityControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public RoleOfAuthEntityControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listRoleOfAuthEntity + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRoleOfAuthEntityCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/authEntities/{parentId}/roles" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRoleOfAuthEntityValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listRoleOfAuthEntity(Async)"); + } + + + com.squareup.okhttp.Call call = listRoleOfAuthEntityCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListRole + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListRole listRoleOfAuthEntity(Long parentId, String fields) throws ApiException { + ApiResponse resp = listRoleOfAuthEntityWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListRole> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRoleOfAuthEntityWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listRoleOfAuthEntityValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRoleOfAuthEntityAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRoleOfAuthEntityValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApi.java new file mode 100644 index 0000000..c3230f3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApi.java @@ -0,0 +1,449 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRulepackCore; +import com.fortify.ssc.restclient.model.ApiResultVoid; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class RulepackCoreControllerApi { + private ApiClient apiClient; + + public RulepackCoreControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public RulepackCoreControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for deleteRulepackCore + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRulepackCoreCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/coreRulepacks/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRulepackCoreValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteRulepackCore(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRulepackCoreCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteRulepackCore(Long id) throws ApiException { + ApiResponse resp = deleteRulepackCoreWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRulepackCoreWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteRulepackCoreValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRulepackCoreAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRulepackCoreValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRulepackCore + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRulepackCoreCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/coreRulepacks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRulepackCoreValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRulepackCoreCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListRulepackCore + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListRulepackCore listRulepackCore(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listRulepackCoreWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListRulepackCore> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRulepackCoreWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listRulepackCoreValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRulepackCoreAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRulepackCoreValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteRulepackCore + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteRulepackCoreCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/coreRulepacks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteRulepackCoreValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteRulepackCore(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteRulepackCoreCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteRulepackCore(String ids) throws ApiException { + ApiResponse resp = multiDeleteRulepackCoreWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteRulepackCoreWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteRulepackCoreValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteRulepackCoreAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteRulepackCoreValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApi.java new file mode 100644 index 0000000..2f3f9de --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApi.java @@ -0,0 +1,171 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRulepacksBatchProcessStatus; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class RulepackUpdateControllerApi { + private ApiClient apiClient; + + public RulepackUpdateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public RulepackUpdateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listRulepackUpdate + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRulepackUpdateCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/updateRulepacks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRulepackUpdateValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRulepackUpdateCall(progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @return ApiResultListRulepacksBatchProcessStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListRulepacksBatchProcessStatus listRulepackUpdate() throws ApiException { + ApiResponse resp = listRulepackUpdateWithHttpInfo(); + return resp.getData(); + } + + /** + * list + * + * @return ApiResponse<ApiResultListRulepacksBatchProcessStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRulepackUpdateWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = listRulepackUpdateValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRulepackUpdateAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRulepackUpdateValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/SavedReportControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/SavedReportControllerApi.java new file mode 100644 index 0000000..7630594 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/SavedReportControllerApi.java @@ -0,0 +1,596 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSavedReport; +import com.fortify.ssc.restclient.model.ApiResultSavedReport; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.SavedReport; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SavedReportControllerApi { + private ApiClient apiClient; + + public SavedReportControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public SavedReportControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createSavedReport + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createSavedReportCall(SavedReport resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/reports"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createSavedReportValidateBeforeCall(SavedReport resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createSavedReport(Async)"); + } + + + com.squareup.okhttp.Call call = createSavedReportCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultSavedReport + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultSavedReport createSavedReport(SavedReport resource) throws ApiException { + ApiResponse resp = createSavedReportWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultSavedReport> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createSavedReportWithHttpInfo(SavedReport resource) throws ApiException { + com.squareup.okhttp.Call call = createSavedReportValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createSavedReportAsync(SavedReport resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createSavedReportValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteSavedReport + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteSavedReportCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reports/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteSavedReportValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteSavedReport(Async)"); + } + + + com.squareup.okhttp.Call call = deleteSavedReportCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteSavedReport(Long id) throws ApiException { + ApiResponse resp = deleteSavedReportWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteSavedReportWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteSavedReportValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteSavedReportAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteSavedReportValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listSavedReport + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param embed Fields to embed (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listSavedReportCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String embed, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reports"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fulltextsearch != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fulltextsearch", fulltextsearch)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listSavedReportValidateBeforeCall(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String embed, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listSavedReportCall(fields, start, limit, q, fulltextsearch, embed, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param embed Fields to embed (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListSavedReport + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListSavedReport listSavedReport(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String embed, String orderby) throws ApiException { + ApiResponse resp = listSavedReportWithHttpInfo(fields, start, limit, q, fulltextsearch, embed, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param embed Fields to embed (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListSavedReport> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listSavedReportWithHttpInfo(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String embed, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listSavedReportValidateBeforeCall(fields, start, limit, q, fulltextsearch, embed, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search-spec of full text search query (see fulltextsearch parameter) (optional) + * @param fulltextsearch If 'true', interpret 'q' parameter as full text search query, defaults to 'false' (optional, default to false) + * @param embed Fields to embed (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listSavedReportAsync(String fields, Integer start, Integer limit, String q, Boolean fulltextsearch, String embed, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listSavedReportValidateBeforeCall(fields, start, limit, q, fulltextsearch, embed, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readSavedReport + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readSavedReportCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reports/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (embed != null) + localVarQueryParams.addAll(apiClient.parameterToPair("embed", embed)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readSavedReportValidateBeforeCall(Long id, String fields, String embed, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readSavedReport(Async)"); + } + + + com.squareup.okhttp.Call call = readSavedReportCall(id, fields, embed, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResultSavedReport + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultSavedReport readSavedReport(Long id, String fields, String embed) throws ApiException { + ApiResponse resp = readSavedReportWithHttpInfo(id, fields, embed); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @return ApiResponse<ApiResultSavedReport> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readSavedReportWithHttpInfo(Long id, String fields, String embed) throws ApiException { + com.squareup.okhttp.Call call = readSavedReportValidateBeforeCall(id, fields, embed, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param embed Fields to embed (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readSavedReportAsync(Long id, String fields, String embed, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readSavedReportValidateBeforeCall(id, fields, embed, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ScanControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ScanControllerApi.java new file mode 100644 index 0000000..840d61c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ScanControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultScan; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ScanControllerApi { + private ApiClient apiClient; + + public ScanControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ScanControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for readScan + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readScanCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/scans/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readScanValidateBeforeCall(Long id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readScan(Async)"); + } + + + com.squareup.okhttp.Call call = readScanCall(id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultScan + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultScan readScan(Long id, String fields) throws ApiException { + ApiResponse resp = readScanWithHttpInfo(id, fields); + return resp.getData(); + } + + /** + * read + * + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultScan> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readScanWithHttpInfo(Long id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readScanValidateBeforeCall(id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readScanAsync(Long id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readScanValidateBeforeCall(id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApi.java new file mode 100644 index 0000000..d650ded --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApi.java @@ -0,0 +1,199 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListscanError; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ScanErrorOfArtifactControllerApi { + private ApiClient apiClient; + + public ScanErrorOfArtifactControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ScanErrorOfArtifactControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listScanErrorOfArtifact + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listScanErrorOfArtifactCall(Long parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/artifacts/{parentId}/scanerrors" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listScanErrorOfArtifactValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listScanErrorOfArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = listScanErrorOfArtifactCall(parentId, fields, start, limit, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResultListscanError + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListscanError listScanErrorOfArtifact(Long parentId, String fields, Integer start, Integer limit) throws ApiException { + ApiResponse resp = listScanErrorOfArtifactWithHttpInfo(parentId, fields, start, limit); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @return ApiResponse<ApiResultListscanError> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listScanErrorOfArtifactWithHttpInfo(Long parentId, String fields, Integer start, Integer limit) throws ApiException { + com.squareup.okhttp.Call call = listScanErrorOfArtifactValidateBeforeCall(parentId, fields, start, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listScanErrorOfArtifactAsync(Long parentId, String fields, Integer start, Integer limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listScanErrorOfArtifactValidateBeforeCall(parentId, fields, start, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApi.java new file mode 100644 index 0000000..9038821 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApi.java @@ -0,0 +1,187 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListScan; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ScanOfArtifactControllerApi { + private ApiClient apiClient; + + public ScanOfArtifactControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ScanOfArtifactControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listScanOfArtifact + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listScanOfArtifactCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/artifacts/{parentId}/scans" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listScanOfArtifactValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listScanOfArtifact(Async)"); + } + + + com.squareup.okhttp.Call call = listScanOfArtifactCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListScan + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListScan listScanOfArtifact(Long parentId, String fields) throws ApiException { + ApiResponse resp = listScanOfArtifactWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListScan> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listScanOfArtifactWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listScanOfArtifactValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listScanOfArtifactAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listScanOfArtifactValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApi.java new file mode 100644 index 0000000..05a5391 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApi.java @@ -0,0 +1,345 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSourceFileDto; +import com.fortify.ssc.restclient.model.ApiResultSourceFileDto; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SourceFileOfProjectVersionControllerApi { + private ApiClient apiClient; + + public SourceFileOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public SourceFileOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listSourceFileOfProjectVersion + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listSourceFileOfProjectVersionCall(Long parentId, Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/sourceFiles" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listSourceFileOfProjectVersionValidateBeforeCall(Long parentId, Integer start, Integer limit, String q, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listSourceFileOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listSourceFileOfProjectVersionCall(parentId, start, limit, q, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResultListSourceFileDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListSourceFileDto listSourceFileOfProjectVersion(Long parentId, Integer start, Integer limit, String q, String fields) throws ApiException { + ApiResponse resp = listSourceFileOfProjectVersionWithHttpInfo(parentId, start, limit, q, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListSourceFileDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listSourceFileOfProjectVersionWithHttpInfo(Long parentId, Integer start, Integer limit, String q, String fields) throws ApiException { + com.squareup.okhttp.Call call = listSourceFileOfProjectVersionValidateBeforeCall(parentId, start, limit, q, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listSourceFileOfProjectVersionAsync(Long parentId, Integer start, Integer limit, String q, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listSourceFileOfProjectVersionValidateBeforeCall(parentId, start, limit, q, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readSourceFileOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readSourceFileOfProjectVersionCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/sourceFiles/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readSourceFileOfProjectVersionValidateBeforeCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readSourceFileOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readSourceFileOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readSourceFileOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultSourceFileDto + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultSourceFileDto readSourceFileOfProjectVersion(Long parentId, String id, String fields) throws ApiException { + ApiResponse resp = readSourceFileOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultSourceFileDto> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readSourceFileOfProjectVersionWithHttpInfo(Long parentId, String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readSourceFileOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readSourceFileOfProjectVersionAsync(Long parentId, String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readSourceFileOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApi.java new file mode 100644 index 0000000..186aa60 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApi.java @@ -0,0 +1,307 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSystemConfiguration; +import com.fortify.ssc.restclient.model.ApiResultSystemConfiguration; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SystemConfigurationControllerApi { + private ApiClient apiClient; + + public SystemConfigurationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public SystemConfigurationControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listSystemConfiguration + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listSystemConfigurationCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/systemConfiguration"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listSystemConfigurationValidateBeforeCall(String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listSystemConfigurationCall(fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResultListSystemConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListSystemConfiguration listSystemConfiguration(String fields) throws ApiException { + ApiResponse resp = listSystemConfigurationWithHttpInfo(fields); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListSystemConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listSystemConfigurationWithHttpInfo(String fields) throws ApiException { + com.squareup.okhttp.Call call = listSystemConfigurationValidateBeforeCall(fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listSystemConfigurationAsync(String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listSystemConfigurationValidateBeforeCall(fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readSystemConfiguration + * @param name name (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readSystemConfigurationCall(String name, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/systemConfiguration/{name}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readSystemConfigurationValidateBeforeCall(String name, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readSystemConfiguration(Async)"); + } + + + com.squareup.okhttp.Call call = readSystemConfigurationCall(name, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param name name (required) + * @param fields Output fields (optional) + * @return ApiResultSystemConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultSystemConfiguration readSystemConfiguration(String name, String fields) throws ApiException { + ApiResponse resp = readSystemConfigurationWithHttpInfo(name, fields); + return resp.getData(); + } + + /** + * read + * + * @param name name (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultSystemConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readSystemConfigurationWithHttpInfo(String name, String fields) throws ApiException { + com.squareup.okhttp.Call call = readSystemConfigurationValidateBeforeCall(name, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param name name (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readSystemConfigurationAsync(String name, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readSystemConfigurationValidateBeforeCall(name, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApi.java new file mode 100644 index 0000000..2beec6c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApi.java @@ -0,0 +1,201 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListTokenDefinition; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TokenDefinitionControllerApi { + private ApiClient apiClient; + + public TokenDefinitionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public TokenDefinitionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listTokenDefinition + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listTokenDefinitionCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tokenDefinitions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listTokenDefinitionValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listTokenDefinitionCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListTokenDefinition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListTokenDefinition listTokenDefinition(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listTokenDefinitionWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListTokenDefinition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listTokenDefinitionWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listTokenDefinitionValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listTokenDefinitionAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listTokenDefinitionValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApi.java new file mode 100644 index 0000000..70ff736 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApi.java @@ -0,0 +1,195 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UnassignedCloudWorkerOfCloudPoolControllerApi { + private ApiClient apiClient; + + public UnassignedCloudWorkerOfCloudPoolControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UnassignedCloudWorkerOfCloudPoolControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listUnassignedCloudWorkerOfCloudPool + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listUnassignedCloudWorkerOfCloudPoolCall(String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cloudpools/disabledWorkers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listUnassignedCloudWorkerOfCloudPoolValidateBeforeCall(String fields, Integer start, Integer limit, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listUnassignedCloudWorkerOfCloudPoolCall(fields, start, limit, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResultListCloudWorker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListCloudWorker listUnassignedCloudWorkerOfCloudPool(String fields, Integer start, Integer limit, String orderby) throws ApiException { + ApiResponse resp = listUnassignedCloudWorkerOfCloudPoolWithHttpInfo(fields, start, limit, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListCloudWorker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listUnassignedCloudWorkerOfCloudPoolWithHttpInfo(String fields, Integer start, Integer limit, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listUnassignedCloudWorkerOfCloudPoolValidateBeforeCall(fields, start, limit, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listUnassignedCloudWorkerOfCloudPoolAsync(String fields, Integer start, Integer limit, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listUnassignedCloudWorkerOfCloudPoolValidateBeforeCall(fields, start, limit, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApi.java new file mode 100644 index 0000000..dea16ac --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApi.java @@ -0,0 +1,487 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueSearchOption; +import com.fortify.ssc.restclient.model.ApiResultListIssueSearchOption; +import com.fortify.ssc.restclient.model.IssueSearchOption; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserIssueSearchOptionOfProjectVersionControllerApi { + private ApiClient apiClient; + + public UserIssueSearchOptionOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserIssueSearchOptionOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listUserIssueSearchOptionOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call listUserIssueSearchOptionOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueSearchOptions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listUserIssueSearchOptionOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listUserIssueSearchOptionOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listUserIssueSearchOptionOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultListIssueSearchOption + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResultListIssueSearchOption listUserIssueSearchOptionOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = listUserIssueSearchOptionOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultListIssueSearchOption> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResponse listUserIssueSearchOptionOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = listUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call listUserIssueSearchOptionOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readUserIssueSearchOptionOfProjectVersion + * @param parentId parentId (required) + * @param optionType optionType (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call readUserIssueSearchOptionOfProjectVersionCall(Long parentId, String optionType, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueSearchOptions/{optionType}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "optionType" + "\\}", apiClient.escapeString(optionType.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readUserIssueSearchOptionOfProjectVersionValidateBeforeCall(Long parentId, String optionType, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readUserIssueSearchOptionOfProjectVersion(Async)"); + } + + // verify the required parameter 'optionType' is set + if (optionType == null) { + throw new ApiException("Missing the required parameter 'optionType' when calling readUserIssueSearchOptionOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readUserIssueSearchOptionOfProjectVersionCall(parentId, optionType, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param optionType optionType (required) + * @param fields Output fields (optional) + * @return ApiResultIssueSearchOption + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResultIssueSearchOption readUserIssueSearchOptionOfProjectVersion(Long parentId, String optionType, String fields) throws ApiException { + ApiResponse resp = readUserIssueSearchOptionOfProjectVersionWithHttpInfo(parentId, optionType, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param optionType optionType (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultIssueSearchOption> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResponse readUserIssueSearchOptionOfProjectVersionWithHttpInfo(Long parentId, String optionType, String fields) throws ApiException { + com.squareup.okhttp.Call call = readUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, optionType, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param optionType optionType (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call readUserIssueSearchOptionOfProjectVersionAsync(Long parentId, String optionType, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, optionType, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateUserIssueSearchOptionOfProjectVersion + * @param parentId parentId (required) + * @param resources resources (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call updateUserIssueSearchOptionOfProjectVersionCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resources; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/issueSearchOptions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateUserIssueSearchOptionOfProjectVersionValidateBeforeCall(Long parentId, List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateUserIssueSearchOptionOfProjectVersion(Async)"); + } + + // verify the required parameter 'resources' is set + if (resources == null) { + throw new ApiException("Missing the required parameter 'resources' when calling updateUserIssueSearchOptionOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionOfProjectVersionCall(parentId, resources, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResultListIssueSearchOption + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResultListIssueSearchOption updateUserIssueSearchOptionOfProjectVersion(Long parentId, List resources) throws ApiException { + ApiResponse resp = updateUserIssueSearchOptionOfProjectVersionWithHttpInfo(parentId, resources); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param resources resources (required) + * @return ApiResponse<ApiResultListIssueSearchOption> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated + */ + @Deprecated + public ApiResponse updateUserIssueSearchOptionOfProjectVersionWithHttpInfo(Long parentId, List resources) throws ApiException { + com.squareup.okhttp.Call call = updateUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, resources, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param resources resources (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @deprecated + */ + @Deprecated + public com.squareup.okhttp.Call updateUserIssueSearchOptionOfProjectVersionAsync(Long parentId, List resources, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionOfProjectVersionValidateBeforeCall(parentId, resources, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApi.java new file mode 100644 index 0000000..d35f3f0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApi.java @@ -0,0 +1,294 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserIssueSearchOptions; +import com.fortify.ssc.restclient.model.UserIssueSearchOptions; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserIssueSearchOptionsControllerApi { + private ApiClient apiClient; + + public UserIssueSearchOptionsControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserIssueSearchOptionsControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getUserIssueSearchOptions + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getUserIssueSearchOptionsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/userIssueSearchOptions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getUserIssueSearchOptionsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getUserIssueSearchOptionsCall(progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @return ApiResultUserIssueSearchOptions + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserIssueSearchOptions getUserIssueSearchOptions() throws ApiException { + ApiResponse resp = getUserIssueSearchOptionsWithHttpInfo(); + return resp.getData(); + } + + /** + * get + * + * @return ApiResponse<ApiResultUserIssueSearchOptions> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getUserIssueSearchOptionsWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = getUserIssueSearchOptionsValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getUserIssueSearchOptionsAsync(final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getUserIssueSearchOptionsValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateUserIssueSearchOptions + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateUserIssueSearchOptionsCall(UserIssueSearchOptions resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/userIssueSearchOptions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateUserIssueSearchOptionsValidateBeforeCall(UserIssueSearchOptions resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateUserIssueSearchOptions(Async)"); + } + + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResultUserIssueSearchOptions + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserIssueSearchOptions updateUserIssueSearchOptions(UserIssueSearchOptions resource) throws ApiException { + ApiResponse resp = updateUserIssueSearchOptionsWithHttpInfo(resource); + return resp.getData(); + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResponse<ApiResultUserIssueSearchOptions> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateUserIssueSearchOptionsWithHttpInfo(UserIssueSearchOptions resource) throws ApiException { + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateUserIssueSearchOptionsAsync(UserIssueSearchOptions resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApi.java new file mode 100644 index 0000000..9f05af8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApi.java @@ -0,0 +1,320 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserIssueSearchOptions; +import com.fortify.ssc.restclient.model.UserIssueSearchOptions; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserIssueSearchOptionsOfProjectVersionControllerApi { + private ApiClient apiClient; + + public UserIssueSearchOptionsOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserIssueSearchOptionsOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getUserIssueSearchOptionsOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getUserIssueSearchOptionsOfProjectVersionCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/userIssueSearchOptions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(Long parentId, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling getUserIssueSearchOptionsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = getUserIssueSearchOptionsOfProjectVersionCall(parentId, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * get + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResultUserIssueSearchOptions + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserIssueSearchOptions getUserIssueSearchOptionsOfProjectVersion(Long parentId, String fields) throws ApiException { + ApiResponse resp = getUserIssueSearchOptionsOfProjectVersionWithHttpInfo(parentId, fields); + return resp.getData(); + } + + /** + * get + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultUserIssueSearchOptions> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getUserIssueSearchOptionsOfProjectVersionWithHttpInfo(Long parentId, String fields) throws ApiException { + com.squareup.okhttp.Call call = getUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(parentId, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getUserIssueSearchOptionsOfProjectVersionAsync(Long parentId, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(parentId, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateUserIssueSearchOptionsOfProjectVersion + * @param parentId parentId (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateUserIssueSearchOptionsOfProjectVersionCall(Long parentId, UserIssueSearchOptions resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/userIssueSearchOptions" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(Long parentId, UserIssueSearchOptions resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling updateUserIssueSearchOptionsOfProjectVersion(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateUserIssueSearchOptionsOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsOfProjectVersionCall(parentId, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResultUserIssueSearchOptions + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserIssueSearchOptions updateUserIssueSearchOptionsOfProjectVersion(Long parentId, UserIssueSearchOptions resource) throws ApiException { + ApiResponse resp = updateUserIssueSearchOptionsOfProjectVersionWithHttpInfo(parentId, resource); + return resp.getData(); + } + + /** + * update + * + * @param parentId parentId (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultUserIssueSearchOptions> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateUserIssueSearchOptionsOfProjectVersionWithHttpInfo(Long parentId, UserIssueSearchOptions resource) throws ApiException { + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(parentId, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param parentId parentId (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateUserIssueSearchOptionsOfProjectVersionAsync(Long parentId, UserIssueSearchOptions resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateUserIssueSearchOptionsOfProjectVersionValidateBeforeCall(parentId, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApi.java new file mode 100644 index 0000000..f23bb19 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApi.java @@ -0,0 +1,303 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserPreferences; +import com.fortify.ssc.restclient.model.UserPreferences; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserPreferencesControllerApi { + private ApiClient apiClient; + + public UserPreferencesControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserPreferencesControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for postUserPreferences + * @param username username (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call postUserPreferencesCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = username; + + // create path and map variables + String localVarPath = "/userSession/prefs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call postUserPreferencesValidateBeforeCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling postUserPreferences(Async)"); + } + + + com.squareup.okhttp.Call call = postUserPreferencesCall(username, progressListener, progressRequestListener); + return call; + + } + + /** + * post + * + * @param username username (required) + * @return ApiResultUserPreferences + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserPreferences postUserPreferences(String username) throws ApiException { + ApiResponse resp = postUserPreferencesWithHttpInfo(username); + return resp.getData(); + } + + /** + * post + * + * @param username username (required) + * @return ApiResponse<ApiResultUserPreferences> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse postUserPreferencesWithHttpInfo(String username) throws ApiException { + com.squareup.okhttp.Call call = postUserPreferencesValidateBeforeCall(username, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * post (asynchronously) + * + * @param username username (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call postUserPreferencesAsync(String username, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = postUserPreferencesValidateBeforeCall(username, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateUserPreferences + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateUserPreferencesCall(UserPreferences resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/userSession/prefs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateUserPreferencesValidateBeforeCall(UserPreferences resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateUserPreferences(Async)"); + } + + + com.squareup.okhttp.Call call = updateUserPreferencesCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResultUserPreferences + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserPreferences updateUserPreferences(UserPreferences resource) throws ApiException { + ApiResponse resp = updateUserPreferencesWithHttpInfo(resource); + return resp.getData(); + } + + /** + * update + * + * @param resource resource (required) + * @return ApiResponse<ApiResultUserPreferences> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateUserPreferencesWithHttpInfo(UserPreferences resource) throws ApiException { + com.squareup.okhttp.Call call = updateUserPreferencesValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateUserPreferencesAsync(UserPreferences resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateUserPreferencesValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApi.java new file mode 100644 index 0000000..1028135 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApi.java @@ -0,0 +1,180 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserSessionInformation; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserSessionInfoControllerApi { + private ApiClient apiClient; + + public UserSessionInfoControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserSessionInfoControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for postUserSessionInfo + * @param username username (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call postUserSessionInfoCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = username; + + // create path and map variables + String localVarPath = "/userSession/info"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call postUserSessionInfoValidateBeforeCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling postUserSessionInfo(Async)"); + } + + + com.squareup.okhttp.Call call = postUserSessionInfoCall(username, progressListener, progressRequestListener); + return call; + + } + + /** + * post + * + * @param username username (required) + * @return ApiResultUserSessionInformation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultUserSessionInformation postUserSessionInfo(String username) throws ApiException { + ApiResponse resp = postUserSessionInfoWithHttpInfo(username); + return resp.getData(); + } + + /** + * post + * + * @param username username (required) + * @return ApiResponse<ApiResultUserSessionInformation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse postUserSessionInfoWithHttpInfo(String username) throws ApiException { + com.squareup.okhttp.Call call = postUserSessionInfoValidateBeforeCall(username, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * post (asynchronously) + * + * @param username username (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call postUserSessionInfoAsync(String username, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = postUserSessionInfoValidateBeforeCall(username, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApi.java new file mode 100644 index 0000000..5737ac4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApi.java @@ -0,0 +1,312 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListUserSessionState; +import com.fortify.ssc.restclient.model.UserSessionState; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserSessionStateControllerApi { + private ApiClient apiClient; + + public UserSessionStateControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserSessionStateControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listUserSessionState + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listUserSessionStateCall(Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/userSession/state"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listUserSessionStateValidateBeforeCall(Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listUserSessionStateCall(start, limit, q, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResultListUserSessionState + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListUserSessionState listUserSessionState(Integer start, Integer limit, String q) throws ApiException { + ApiResponse resp = listUserSessionStateWithHttpInfo(start, limit, q); + return resp.getData(); + } + + /** + * list + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResponse<ApiResultListUserSessionState> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listUserSessionStateWithHttpInfo(Integer start, Integer limit, String q) throws ApiException { + com.squareup.okhttp.Call call = listUserSessionStateValidateBeforeCall(start, limit, q, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listUserSessionStateAsync(Integer start, Integer limit, String q, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listUserSessionStateValidateBeforeCall(start, limit, q, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for putUserSessionState + * @param resources resources (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call putUserSessionStateCall(List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resources; + + // create path and map variables + String localVarPath = "/userSession/state"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putUserSessionStateValidateBeforeCall(List resources, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resources' is set + if (resources == null) { + throw new ApiException("Missing the required parameter 'resources' when calling putUserSessionState(Async)"); + } + + + com.squareup.okhttp.Call call = putUserSessionStateCall(resources, progressListener, progressRequestListener); + return call; + + } + + /** + * put + * + * @param resources resources (required) + * @return ApiResultListUserSessionState + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListUserSessionState putUserSessionState(List resources) throws ApiException { + ApiResponse resp = putUserSessionStateWithHttpInfo(resources); + return resp.getData(); + } + + /** + * put + * + * @param resources resources (required) + * @return ApiResponse<ApiResultListUserSessionState> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putUserSessionStateWithHttpInfo(List resources) throws ApiException { + com.squareup.okhttp.Call call = putUserSessionStateValidateBeforeCall(resources, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * put (asynchronously) + * + * @param resources resources (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call putUserSessionStateAsync(List resources, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = putUserSessionStateValidateBeforeCall(resources, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApi.java new file mode 100644 index 0000000..5ca1494 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApi.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultValidationStatus; +import com.fortify.ssc.restclient.model.ValidationRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ValidateEquationControllerApi { + private ApiClient apiClient; + + public ValidateEquationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ValidateEquationControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doValidateEquation + * @param request request (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doValidateEquationCall(ValidationRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = request; + + // create path and map variables + String localVarPath = "/validateEquation"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doValidateEquationValidateBeforeCall(ValidationRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException("Missing the required parameter 'request' when calling doValidateEquation(Async)"); + } + + + com.squareup.okhttp.Call call = doValidateEquationCall(request, progressListener, progressRequestListener); + return call; + + } + + /** + * DoValidation + * + * @param request request (required) + * @return ApiResultValidationStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultValidationStatus doValidateEquation(ValidationRequest request) throws ApiException { + ApiResponse resp = doValidateEquationWithHttpInfo(request); + return resp.getData(); + } + + /** + * DoValidation + * + * @param request request (required) + * @return ApiResponse<ApiResultValidationStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doValidateEquationWithHttpInfo(ValidationRequest request) throws ApiException { + com.squareup.okhttp.Call call = doValidateEquationValidateBeforeCall(request, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * DoValidation (asynchronously) + * + * @param request request (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doValidateEquationAsync(ValidationRequest request, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doValidateEquationValidateBeforeCall(request, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApi.java new file mode 100644 index 0000000..cc337aa --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApi.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultValidationStatus; +import com.fortify.ssc.restclient.model.ValidationRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ValidateSearchStringControllerApi { + private ApiClient apiClient; + + public ValidateSearchStringControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public ValidateSearchStringControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for doValidateSearchString + * @param request request (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call doValidateSearchStringCall(ValidationRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = request; + + // create path and map variables + String localVarPath = "/validateSearchString"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call doValidateSearchStringValidateBeforeCall(ValidationRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException("Missing the required parameter 'request' when calling doValidateSearchString(Async)"); + } + + + com.squareup.okhttp.Call call = doValidateSearchStringCall(request, progressListener, progressRequestListener); + return call; + + } + + /** + * DoValidation + * + * @param request request (required) + * @return ApiResultValidationStatus + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultValidationStatus doValidateSearchString(ValidationRequest request) throws ApiException { + ApiResponse resp = doValidateSearchStringWithHttpInfo(request); + return resp.getData(); + } + + /** + * DoValidation + * + * @param request request (required) + * @return ApiResponse<ApiResultValidationStatus> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse doValidateSearchStringWithHttpInfo(ValidationRequest request) throws ApiException { + com.squareup.okhttp.Call call = doValidateSearchStringValidateBeforeCall(request, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * DoValidation (asynchronously) + * + * @param request request (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call doValidateSearchStringAsync(ValidationRequest request, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = doValidateSearchStringValidateBeforeCall(request, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/VariableControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/VariableControllerApi.java new file mode 100644 index 0000000..9f14e38 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/VariableControllerApi.java @@ -0,0 +1,705 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListVariable; +import com.fortify.ssc.restclient.model.ApiResultVariable; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Variable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class VariableControllerApi { + private ApiClient apiClient; + + public VariableControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public VariableControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createVariable + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createVariableCall(Variable resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/variables"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createVariableValidateBeforeCall(Variable resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling createVariable(Async)"); + } + + + com.squareup.okhttp.Call call = createVariableCall(resource, progressListener, progressRequestListener); + return call; + + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResultVariable + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVariable createVariable(Variable resource) throws ApiException { + ApiResponse resp = createVariableWithHttpInfo(resource); + return resp.getData(); + } + + /** + * create + * + * @param resource resource (required) + * @return ApiResponse<ApiResultVariable> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createVariableWithHttpInfo(Variable resource) throws ApiException { + com.squareup.okhttp.Call call = createVariableValidateBeforeCall(resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * create (asynchronously) + * + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createVariableAsync(Variable resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createVariableValidateBeforeCall(resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteVariable + * @param id id (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteVariableCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/variables/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteVariableValidateBeforeCall(Long id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteVariable(Async)"); + } + + + com.squareup.okhttp.Call call = deleteVariableCall(id, progressListener, progressRequestListener); + return call; + + } + + /** + * delete + * + * @param id id (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid deleteVariable(Long id) throws ApiException { + ApiResponse resp = deleteVariableWithHttpInfo(id); + return resp.getData(); + } + + /** + * delete + * + * @param id id (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteVariableWithHttpInfo(Long id) throws ApiException { + com.squareup.okhttp.Call call = deleteVariableValidateBeforeCall(id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * delete (asynchronously) + * + * @param id id (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteVariableAsync(Long id, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteVariableValidateBeforeCall(id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listVariable + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listVariableCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/variables"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + if (orderby != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orderby", orderby)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listVariableValidateBeforeCall(String fields, Integer start, Integer limit, String q, String orderby, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listVariableCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResultListVariable + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListVariable listVariable(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + ApiResponse resp = listVariableWithHttpInfo(fields, start, limit, q, orderby); + return resp.getData(); + } + + /** + * list + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @return ApiResponse<ApiResultListVariable> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listVariableWithHttpInfo(String fields, Integer start, Integer limit, String q, String orderby) throws ApiException { + com.squareup.okhttp.Call call = listVariableValidateBeforeCall(fields, start, limit, q, orderby, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param orderby Fields to order by (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listVariableAsync(String fields, Integer start, Integer limit, String q, String orderby, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listVariableValidateBeforeCall(fields, start, limit, q, orderby, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for multiDeleteVariable + * @param ids A comma-separated list of resource identifiers (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call multiDeleteVariableCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/variables"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (ids != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ids", ids)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call multiDeleteVariableValidateBeforeCall(String ids, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling multiDeleteVariable(Async)"); + } + + + com.squareup.okhttp.Call call = multiDeleteVariableCall(ids, progressListener, progressRequestListener); + return call; + + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResultVoid + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVoid multiDeleteVariable(String ids) throws ApiException { + ApiResponse resp = multiDeleteVariableWithHttpInfo(ids); + return resp.getData(); + } + + /** + * multiDelete + * + * @param ids A comma-separated list of resource identifiers (required) + * @return ApiResponse<ApiResultVoid> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse multiDeleteVariableWithHttpInfo(String ids) throws ApiException { + com.squareup.okhttp.Call call = multiDeleteVariableValidateBeforeCall(ids, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * multiDelete (asynchronously) + * + * @param ids A comma-separated list of resource identifiers (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call multiDeleteVariableAsync(String ids, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = multiDeleteVariableValidateBeforeCall(ids, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateVariable + * @param id id (required) + * @param resource resource (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateVariableCall(Long id, Variable resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = resource; + + // create path and map variables + String localVarPath = "/variables/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateVariableValidateBeforeCall(Long id, Variable resource, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateVariable(Async)"); + } + + // verify the required parameter 'resource' is set + if (resource == null) { + throw new ApiException("Missing the required parameter 'resource' when calling updateVariable(Async)"); + } + + + com.squareup.okhttp.Call call = updateVariableCall(id, resource, progressListener, progressRequestListener); + return call; + + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResultVariable + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVariable updateVariable(Long id, Variable resource) throws ApiException { + ApiResponse resp = updateVariableWithHttpInfo(id, resource); + return resp.getData(); + } + + /** + * update + * + * @param id id (required) + * @param resource resource (required) + * @return ApiResponse<ApiResultVariable> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateVariableWithHttpInfo(Long id, Variable resource) throws ApiException { + com.squareup.okhttp.Call call = updateVariableValidateBeforeCall(id, resource, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * update (asynchronously) + * + * @param id id (required) + * @param resource resource (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateVariableAsync(Long id, Variable resource, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateVariableValidateBeforeCall(id, resource, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApi.java b/src/main/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApi.java new file mode 100644 index 0000000..e4a8afc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApi.java @@ -0,0 +1,345 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiCallback; +import com.fortify.ssc.restclient.ApiClient; +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.ApiResponse; +import com.fortify.ssc.restclient.Configuration; +import com.fortify.ssc.restclient.Pair; +import com.fortify.ssc.restclient.ProgressRequestBody; +import com.fortify.ssc.restclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListVariableHistory; +import com.fortify.ssc.restclient.model.ApiResultVariableHistory; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class VariableHistoryOfProjectVersionControllerApi { + private ApiClient apiClient; + + public VariableHistoryOfProjectVersionControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public VariableHistoryOfProjectVersionControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for listVariableHistoryOfProjectVersion + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listVariableHistoryOfProjectVersionCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/variableHistories" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + if (start != null) + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); + if (q != null) + localVarQueryParams.addAll(apiClient.parameterToPair("q", q)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listVariableHistoryOfProjectVersionValidateBeforeCall(Long parentId, String fields, Integer start, Integer limit, String q, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling listVariableHistoryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = listVariableHistoryOfProjectVersionCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + return call; + + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResultListVariableHistory + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultListVariableHistory listVariableHistoryOfProjectVersion(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + ApiResponse resp = listVariableHistoryOfProjectVersionWithHttpInfo(parentId, fields, start, limit, q); + return resp.getData(); + } + + /** + * list + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @return ApiResponse<ApiResultListVariableHistory> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listVariableHistoryOfProjectVersionWithHttpInfo(Long parentId, String fields, Integer start, Integer limit, String q) throws ApiException { + com.squareup.okhttp.Call call = listVariableHistoryOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * list (asynchronously) + * + * @param parentId parentId (required) + * @param fields Output fields (optional) + * @param start A start offset in object listing (optional, default to 0) + * @param limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied (optional, default to 200) + * @param q A search query (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listVariableHistoryOfProjectVersionAsync(Long parentId, String fields, Integer start, Integer limit, String q, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listVariableHistoryOfProjectVersionValidateBeforeCall(parentId, fields, start, limit, q, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for readVariableHistoryOfProjectVersion + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call readVariableHistoryOfProjectVersionCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/projectVersions/{parentId}/variableHistories/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (fields != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fields", fields)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "FortifyToken" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call readVariableHistoryOfProjectVersionValidateBeforeCall(Long parentId, String id, String fields, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException("Missing the required parameter 'parentId' when calling readVariableHistoryOfProjectVersion(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling readVariableHistoryOfProjectVersion(Async)"); + } + + + com.squareup.okhttp.Call call = readVariableHistoryOfProjectVersionCall(parentId, id, fields, progressListener, progressRequestListener); + return call; + + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResultVariableHistory + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResultVariableHistory readVariableHistoryOfProjectVersion(Long parentId, String id, String fields) throws ApiException { + ApiResponse resp = readVariableHistoryOfProjectVersionWithHttpInfo(parentId, id, fields); + return resp.getData(); + } + + /** + * read + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @return ApiResponse<ApiResultVariableHistory> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse readVariableHistoryOfProjectVersionWithHttpInfo(Long parentId, String id, String fields) throws ApiException { + com.squareup.okhttp.Call call = readVariableHistoryOfProjectVersionValidateBeforeCall(parentId, id, fields, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * read (asynchronously) + * + * @param parentId parentId (required) + * @param id id (required) + * @param fields Output fields (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call readVariableHistoryOfProjectVersionAsync(Long parentId, String id, String fields, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = readVariableHistoryOfProjectVersionValidateBeforeCall(parentId, id, fields, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/auth/ApiKeyAuth.java b/src/main/java/com/fortify/ssc/restclient/auth/ApiKeyAuth.java new file mode 100644 index 0000000..3409f2c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/auth/ApiKeyAuth.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.auth; + +import com.fortify.ssc.restclient.Pair; + +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiKeyAuth implements Authentication { + private final String location; + private final String paramName; + + private String apiKey; + private String apiKeyPrefix; + + public ApiKeyAuth(String location, String paramName) { + this.location = location; + this.paramName = paramName; + } + + public String getLocation() { + return location; + } + + public String getParamName() { + return paramName; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getApiKeyPrefix() { + return apiKeyPrefix; + } + + public void setApiKeyPrefix(String apiKeyPrefix) { + this.apiKeyPrefix = apiKeyPrefix; + } + + @Override + public void applyToParams(List queryParams, Map headerParams) { + if (apiKey == null) { + return; + } + String value; + if (apiKeyPrefix != null) { + value = apiKeyPrefix + " " + apiKey; + } else { + value = apiKey; + } + if ("query".equals(location)) { + queryParams.add(new Pair(paramName, value)); + } else if ("header".equals(location)) { + headerParams.put(paramName, value); + } + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/auth/Authentication.java b/src/main/java/com/fortify/ssc/restclient/auth/Authentication.java new file mode 100644 index 0000000..378f6eb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/auth/Authentication.java @@ -0,0 +1,29 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.auth; + +import com.fortify.ssc.restclient.Pair; + +import java.util.Map; +import java.util.List; + +public interface Authentication { + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + */ + void applyToParams(List queryParams, Map headerParams); +} diff --git a/src/main/java/com/fortify/ssc/restclient/auth/HttpBasicAuth.java b/src/main/java/com/fortify/ssc/restclient/auth/HttpBasicAuth.java new file mode 100644 index 0000000..d3b3f86 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/auth/HttpBasicAuth.java @@ -0,0 +1,54 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.auth; + +import com.fortify.ssc.restclient.Pair; + +import com.squareup.okhttp.Credentials; + +import java.util.Map; +import java.util.List; + +import java.io.UnsupportedEncodingException; + +public class HttpBasicAuth implements Authentication { + private String username; + private String password; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public void applyToParams(List queryParams, Map headerParams) { + if (username == null && password == null) { + return; + } + headerParams.put("Authorization", Credentials.basic( + username == null ? "" : username, + password == null ? "" : password)); + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/auth/OAuth.java b/src/main/java/com/fortify/ssc/restclient/auth/OAuth.java new file mode 100644 index 0000000..5dba539 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/auth/OAuth.java @@ -0,0 +1,39 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.auth; + +import com.fortify.ssc.restclient.Pair; + +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class OAuth implements Authentication { + private String accessToken; + + public String getAccessToken() { + return accessToken; + } + + public void setAccessToken(String accessToken) { + this.accessToken = accessToken; + } + + @Override + public void applyToParams(List queryParams, Map headerParams) { + if (accessToken != null) { + headerParams.put("Authorization", "Bearer " + accessToken); + } + } +} diff --git a/src/main/java/com/fortify/ssc/restclient/auth/OAuthFlow.java b/src/main/java/com/fortify/ssc/restclient/auth/OAuthFlow.java new file mode 100644 index 0000000..f0dcad9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/auth/OAuthFlow.java @@ -0,0 +1,18 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.auth; + +public enum OAuthFlow { + accessCode, implicit, password, application +} diff --git a/src/main/java/com/fortify/ssc/restclient/model/AATrainingStatus.java b/src/main/java/com/fortify/ssc/restclient/model/AATrainingStatus.java new file mode 100644 index 0000000..2244845 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AATrainingStatus.java @@ -0,0 +1,238 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Audit Assistant Training (AATrainingStatus) DTO object. + */ +@ApiModel(description = "Audit Assistant Training (AATrainingStatus) DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AATrainingStatus { + @SerializedName("lastTrainingTime") + private OffsetDateTime lastTrainingTime = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + NONE("NONE"), + + TRAINING_SUBMITTED("TRAINING_SUBMITTED"), + + TRAINING_FAILED("TRAINING_FAILED"), + + TRAINING_COMPLETE("TRAINING_COMPLETE"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("userName") + private String userName = null; + + public AATrainingStatus lastTrainingTime(OffsetDateTime lastTrainingTime) { + this.lastTrainingTime = lastTrainingTime; + return this; + } + + /** + * Get lastTrainingTime + * @return lastTrainingTime + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getLastTrainingTime() { + return lastTrainingTime; + } + + public void setLastTrainingTime(OffsetDateTime lastTrainingTime) { + this.lastTrainingTime = lastTrainingTime; + } + + public AATrainingStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public AATrainingStatus projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public AATrainingStatus status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public AATrainingStatus userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AATrainingStatus aaTrainingStatus = (AATrainingStatus) o; + return Objects.equals(this.lastTrainingTime, aaTrainingStatus.lastTrainingTime) && + Objects.equals(this.message, aaTrainingStatus.message) && + Objects.equals(this.projectVersionId, aaTrainingStatus.projectVersionId) && + Objects.equals(this.status, aaTrainingStatus.status) && + Objects.equals(this.userName, aaTrainingStatus.userName); + } + + @Override + public int hashCode() { + return Objects.hash(lastTrainingTime, message, projectVersionId, status, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AATrainingStatus {\n"); + + sb.append(" lastTrainingTime: ").append(toIndentedString(lastTrainingTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ActivityFeed.java b/src/main/java/com/fortify/ssc/restclient/model/ActivityFeed.java new file mode 100644 index 0000000..b7a06a0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ActivityFeed.java @@ -0,0 +1,661 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuthenticationEntity; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Activity Feed DTO object + */ +@ApiModel(description = "Activity Feed DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ActivityFeed { + @SerializedName("authEntity") + private AuthenticationEntity authEntity = null; + + @SerializedName("detailedNote") + private String detailedNote = null; + + @SerializedName("entityId") + private Long entityId = null; + + @SerializedName("eventDate") + private OffsetDateTime eventDate = null; + + /** + * Gets or Sets eventType + */ + @JsonAdapter(EventTypeEnum.Adapter.class) + public enum EventTypeEnum { + WEBUI_LOGIN_SUCCESS("WEBUI_LOGIN_SUCCESS"), + + WEBUI_LOGIN_FAILED("WEBUI_LOGIN_FAILED"), + + WEBUI_LOGOUT("WEBUI_LOGOUT"), + + WS_LOGIN_SUCCESS("WS_LOGIN_SUCCESS"), + + WS_LOGIN_FAILED("WS_LOGIN_FAILED"), + + LOCAL_USER_CREATED("LOCAL_USER_CREATED"), + + LOCAL_USER_UPDATED("LOCAL_USER_UPDATED"), + + LOCAL_USER_DELETED("LOCAL_USER_DELETED"), + + AGENT_CREDENTIAL_CREATED("AGENT_CREDENTIAL_CREATED"), + + AGENT_CREDENTIAL_UPDATED("AGENT_CREDENTIAL_UPDATED"), + + AGENT_CREDENTIAL_DELETED("AGENT_CREDENTIAL_DELETED"), + + LDAP_ENTITY_CREATED("LDAP_ENTITY_CREATED"), + + LDAP_ENTITY_UPDATED("LDAP_ENTITY_UPDATED"), + + LDAP_ENTITY_DELETED("LDAP_ENTITY_DELETED"), + + LDAP_CACHE_REFRESH_REQUESTED("LDAP_CACHE_REFRESH_REQUESTED"), + + LDAP_CACHE_REFRESH_STARTED("LDAP_CACHE_REFRESH_STARTED"), + + LDAP_CACHE_REFRESH_COMPLETED("LDAP_CACHE_REFRESH_COMPLETED"), + + PROJECT_VERSION_CREATED("PROJECT_VERSION_CREATED"), + + PROJECT_VERSION_CREATED_FROM_PREVIOUS("PROJECT_VERSION_CREATED_FROM_PREVIOUS"), + + PROJECT_VERSION_UPDATED("PROJECT_VERSION_UPDATED"), + + PROJECT_VERSION_DELETED("PROJECT_VERSION_DELETED"), + + PROJECT_VERSION_METADATA_UPDATED("PROJECT_VERSION_METADATA_UPDATED"), + + PROJECT_VERSION_ACCESS_ADDED("PROJECT_VERSION_ACCESS_ADDED"), + + PROJECT_VERSION_ACCESS_REMOVED("PROJECT_VERSION_ACCESS_REMOVED"), + + PROJECT_VERSION_BUG_TRACKER_UPDATED("PROJECT_VERSION_BUG_TRACKER_UPDATED"), + + SCA_RESULT_PROCESSED("SCA_RESULT_PROCESSED"), + + RUNTIME_RESULT_PROCESSED("RUNTIME_RESULT_PROCESSED"), + + EXTERNAL_RESULT_PROCESSED("EXTERNAL_RESULT_PROCESSED"), + + PTA_RESULT_PROCESSED("PTA_RESULT_PROCESSED"), + + RTA_RESULT_PROCESSED("RTA_RESULT_PROCESSED"), + + ARTIFACT_UPLOAD_REQUESTED("ARTIFACT_UPLOAD_REQUESTED"), + + ARTIFACT_UPLOAD_STARTED("ARTIFACT_UPLOAD_STARTED"), + + ARTIFACT_UPLOAD_COMPLETED("ARTIFACT_UPLOAD_COMPLETED"), + + ARTIFACT_UPLOAD_FAILED("ARTIFACT_UPLOAD_FAILED"), + + ARTIFACT_UPLOAD_CANCELLED("ARTIFACT_UPLOAD_CANCELLED"), + + ARTIFACT_DELETE_REQUESTED("ARTIFACT_DELETE_REQUESTED"), + + ARTIFACT_DELETE_STARTED("ARTIFACT_DELETE_STARTED"), + + ARTIFACT_DELETE_COMPLETED("ARTIFACT_DELETE_COMPLETED"), + + ARTIFACT_DELETE_FAILED("ARTIFACT_DELETE_FAILED"), + + ARTIFACT_DELETE_CANCELLED("ARTIFACT_DELETE_CANCELLED"), + + JOB_CANCELLED("JOB_CANCELLED"), + + ARTIFACT_PURGE_REQUESTED("ARTIFACT_PURGE_REQUESTED"), + + ARTIFACT_PURGE_REQUEST_STARTED("ARTIFACT_PURGE_REQUEST_STARTED"), + + ARTIFACT_PURGE_COMPLETED("ARTIFACT_PURGE_COMPLETED"), + + ARTIFACT_PURGE_FAILED("ARTIFACT_PURGE_FAILED"), + + ARTIFACT_PURGE_REQUEST_FINISHED("ARTIFACT_PURGE_REQUEST_FINISHED"), + + ARTIFACT_PURGE_CANCELLED("ARTIFACT_PURGE_CANCELLED"), + + HISTORICAL_SNAPSHOT_COLLECTION_STARTED("HISTORICAL_SNAPSHOT_COLLECTION_STARTED"), + + HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED("HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED"), + + HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED("HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED"), + + HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES("HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES"), + + AUDIT_PERFORMED("AUDIT_PERFORMED"), + + ARTIFACT_UPLOAD_REQUIRES_AUTH("ARTIFACT_UPLOAD_REQUIRES_AUTH"), + + SOURCE_CODE_UPLOADED("SOURCE_CODE_UPLOADED"), + + FILTERSET_FOLDER_REFRESH_REQUESTED("FILTERSET_FOLDER_REFRESH_REQUESTED"), + + FILTERSET_FOLDER_REFRESH_COMPLETED("FILTERSET_FOLDER_REFRESH_COMPLETED"), + + FILTERSET_FOLDER_REFRESH_FAILED("FILTERSET_FOLDER_REFRESH_FAILED"), + + DYNAMIC_SCAN_CREATED("DYNAMIC_SCAN_CREATED"), + + DYNAMIC_SCAN_EDITED("DYNAMIC_SCAN_EDITED"), + + DYNAMIC_SCAN_CANCELED("DYNAMIC_SCAN_CANCELED"), + + DYNAMIC_SCAN_COMPLETED("DYNAMIC_SCAN_COMPLETED"), + + DYNAMIC_SCAN_PICKED_UP("DYNAMIC_SCAN_PICKED_UP"), + + BATCH_BUG_FILING_REQUESTED("BATCH_BUG_FILING_REQUESTED"), + + BATCH_BUG_FILING_REQUEST_FAILED("BATCH_BUG_FILING_REQUEST_FAILED"), + + BATCH_BUG_FILING_STARTED("BATCH_BUG_FILING_STARTED"), + + BATCH_BUG_FILING_ENDED("BATCH_BUG_FILING_ENDED"), + + BATCH_BUG_FILING_FAILED("BATCH_BUG_FILING_FAILED"), + + BUG_FILED("BUG_FILED"), + + BUG_FAILED_TO_FILE("BUG_FAILED_TO_FILE"), + + BUG_STATE_MANAGEMENT_STARTED("BUG_STATE_MANAGEMENT_STARTED"), + + BUG_STATE_MANAGEMENT_ENDED("BUG_STATE_MANAGEMENT_ENDED"), + + BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS("BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS"), + + BUG_UPDATED("BUG_UPDATED"), + + BUG_FAILED_TO_UPDATE("BUG_FAILED_TO_UPDATE"), + + COMMENT_ADDED_TO_ISSUE("COMMENT_ADDED_TO_ISSUE"), + + AUDIT_ASSISTANT_ISSUES_SUBMITTED("AUDIT_ASSISTANT_ISSUES_SUBMITTED"), + + AUDIT_ASSISTANT_ISSUES_RETRIEVED("AUDIT_ASSISTANT_ISSUES_RETRIEVED"), + + AUDIT_ASSISTANT_FPR_UPLOAD_STARTED("AUDIT_ASSISTANT_FPR_UPLOAD_STARTED"), + + AUDIT_ASSISTANT_TRAINING_SENT("AUDIT_ASSISTANT_TRAINING_SENT"), + + AUDIT_ASSISTANT_TEST_CONNECTION_FAILED("AUDIT_ASSISTANT_TEST_CONNECTION_FAILED"), + + AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED("AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED"), + + AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED("AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED"), + + AUDIT_ASSISTANT_FPR_UPLOAD_FAILED("AUDIT_ASSISTANT_FPR_UPLOAD_FAILED"), + + AUDIT_ASSISTANT_TRAINING_SENT_FAILED("AUDIT_ASSISTANT_TRAINING_SENT_FAILED"), + + REPORT_GENERATION_REQUESTED("REPORT_GENERATION_REQUESTED"), + + REPORT_GENERATION_COMPLETED("REPORT_GENERATION_COMPLETED"), + + REPORT_GENERATION_FAILED("REPORT_GENERATION_FAILED"), + + REPORT_GENERATION_CANCELLED("REPORT_GENERATION_CANCELLED"), + + REPORT_DELETED("REPORT_DELETED"), + + RULEPACK_SERVER_UPDATE("RULEPACK_SERVER_UPDATE"), + + RULEPACK_USER_UPLOAD("RULEPACK_USER_UPLOAD"), + + RULEPACK_DELETED("RULEPACK_DELETED"), + + RULEPACK_DOWNLOAD("RULEPACK_DOWNLOAD"), + + RULEPACK_CLIENT_UPDATE("RULEPACK_CLIENT_UPDATE"), + + DOCUMENT_ARTIFACT_CREATED("DOCUMENT_ARTIFACT_CREATED"), + + DOCUMENT_ARTIFACT_UPDATED("DOCUMENT_ARTIFACT_UPDATED"), + + DOCUMENT_ARTIFACT_DELETED("DOCUMENT_ARTIFACT_DELETED"), + + TASK_INSTANCE_CREATED("TASK_INSTANCE_CREATED"), + + TASK_INSTANCE_UPDATED("TASK_INSTANCE_UPDATED"), + + TASK_INSTANCE_DELETED("TASK_INSTANCE_DELETED"), + + TASK_INSTANCE_SIGNOFF_UPDATED("TASK_INSTANCE_SIGNOFF_UPDATED"), + + ACTIVITY_INSTANCE_SIGNOFF_UPDATED("ACTIVITY_INSTANCE_SIGNOFF_UPDATED"), + + REQUIREMENT_INSTANCE_SIGNOFF_UPDATED("REQUIREMENT_INSTANCE_SIGNOFF_UPDATED"), + + REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED("REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED"), + + TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF("REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF"), + + SDL_COMMENT_CREATED("SDL_COMMENT_CREATED"), + + PROJECT_PERSONA_ASSIGNMENT_UPDATED("PROJECT_PERSONA_ASSIGNMENT_UPDATED"), + + PERSONA_ASSIGNMENT_UPDATED("PERSONA_ASSIGNMENT_UPDATED"), + + WORK_OWNER_UPDATED("WORK_OWNER_UPDATED"), + + DUE_DATE_UPDATED("DUE_DATE_UPDATED"), + + SESSION_TIMEOUT("SESSION_TIMEOUT"), + + REQ_TEMPLATE_CREATED("REQ_TEMPLATE_CREATED"), + + REQ_TEMPLATE_UPDATED("REQ_TEMPLATE_UPDATED"), + + ACTIVITY_CREATED("ACTIVITY_CREATED"), + + ACTIVITY_UPDATED("ACTIVITY_UPDATED"), + + VARIABLE_CREATED("VARIABLE_CREATED"), + + VARIABLE_UPDATED("VARIABLE_UPDATED"), + + VARIABLE_DELETED("VARIABLE_DELETED"), + + MEASUREMENT_AGENT_CREATED("MEASUREMENT_AGENT_CREATED"), + + MEASUREMENT_AGENT_UPDATED("MEASUREMENT_AGENT_UPDATED"), + + MEASUREMENT_AGENT_DELETED("MEASUREMENT_AGENT_DELETED"), + + DOCUMENT_DEF_CREATED("DOCUMENT_DEF_CREATED"), + + DOCUMENT_DEF_UPDATED("DOCUMENT_DEF_UPDATED"), + + PROJECT_TEMPLATE_CREATED("PROJECT_TEMPLATE_CREATED"), + + PROJECT_TEMPLATE_UPDATED("PROJECT_TEMPLATE_UPDATED"), + + PROJECT_TEMPLATE_DELETED("PROJECT_TEMPLATE_DELETED"), + + ASSIGNMENT_RULES_UPDATED("ASSIGNMENT_RULES_UPDATED"), + + PERSONA_CREATED("PERSONA_CREATED"), + + PERSONA_UPDATED("PERSONA_UPDATED"), + + PERSONA_DELETED("PERSONA_DELETED"), + + ATTR_CREATED("ATTR_CREATED"), + + ATTR_UPDATED("ATTR_UPDATED"), + + ATTR_DELETED("ATTR_DELETED"), + + PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT("PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT"), + + PROJECT_VERSION_PRIMARY_TAG_UPDATE("PROJECT_VERSION_PRIMARY_TAG_UPDATE"), + + REPORT_DEFINITION_CREATED("REPORT_DEFINITION_CREATED"), + + REPORT_DEFINITION_UPDATED("REPORT_DEFINITION_UPDATED"), + + REPORT_DEFINITION_DELETED("REPORT_DEFINITION_DELETED"), + + REPORT_LIBRARY_CREATED("REPORT_LIBRARY_CREATED"), + + REPORT_LIBRARY_UPDATED("REPORT_LIBRARY_UPDATED"), + + REPORT_LIBRARY_DELETED("REPORT_LIBRARY_DELETED"), + + RUNTIME_HOST_CONNECTED("RUNTIME_HOST_CONNECTED"), + + RUNTIME_HOST_DISCONNECTED("RUNTIME_HOST_DISCONNECTED"), + + RUNTIME_HOST_CREATED("RUNTIME_HOST_CREATED"), + + RUNTIME_HOST_DELETED("RUNTIME_HOST_DELETED"), + + RUNTIME_HOST_DISCOVERED("RUNTIME_HOST_DISCOVERED"), + + RUNTIME_HOST_ENABLED("RUNTIME_HOST_ENABLED"), + + RUNTIME_HOST_DISABLED("RUNTIME_HOST_DISABLED"), + + RUNTIME_HOST_AUTH_RESET("RUNTIME_HOST_AUTH_RESET"), + + ACCEPT_NEW_HOSTS_ENABLED("ACCEPT_NEW_HOSTS_ENABLED"), + + ACCEPT_NEW_HOSTS_DISABLED("ACCEPT_NEW_HOSTS_DISABLED"), + + DISABLED_HOST_CONNECTION("DISABLED_HOST_CONNECTION"), + + RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED("RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED"), + + RUNTIME_CONFIGURATION_CREATED("RUNTIME_CONFIGURATION_CREATED"), + + RUNTIME_CONFIGURATION_UPDATED("RUNTIME_CONFIGURATION_UPDATED"), + + RUNTIME_CONFIGURATION_DELETED("RUNTIME_CONFIGURATION_DELETED"), + + RUNTIME_CONFIGURATION_TEMPLATE_UPDATED("RUNTIME_CONFIGURATION_TEMPLATE_UPDATED"), + + RUNTIME_EH_CREATED("RUNTIME_EH_CREATED"), + + RUNTIME_EH_UPDATED("RUNTIME_EH_UPDATED"), + + RUNTIME_EH_DELETED("RUNTIME_EH_DELETED"), + + RUNTIME_SETTINGS_UPDATED("RUNTIME_SETTINGS_UPDATED"), + + RUNTIME_RULEPACK_CONFIG_UPDATED("RUNTIME_RULEPACK_CONFIG_UPDATED"), + + RUNTIME_EVENT_RECEIVED("RUNTIME_EVENT_RECEIVED"), + + RUNTIME_ALERT_RECEIVED("RUNTIME_ALERT_RECEIVED"), + + FEDERATION_CREATED("FEDERATION_CREATED"), + + FEDERATION_UPDATED("FEDERATION_UPDATED"), + + FEDERATION_DELETED("FEDERATION_DELETED"), + + RTAPP_CREATED("RTAPP_CREATED"), + + RTAPP_UPDATED("RTAPP_UPDATED"), + + RTAPP_DELETED("RTAPP_DELETED"), + + RTAPP_ACCESS_ADDED("RTAPP_ACCESS_ADDED"), + + RTAPP_ACCESS_REMOVED("RTAPP_ACCESS_REMOVED"), + + USERROLE_CREATED("USERROLE_CREATED"), + + USERROLE_UPDATED("USERROLE_UPDATED"), + + USERROLE_DELETED("USERROLE_DELETED"), + + CLOUD_SCAN_POLLED("CLOUD_SCAN_POLLED"), + + CLOUD_POOL_CREATED("CLOUD_POOL_CREATED"), + + CLOUD_POOL_UPDATED("CLOUD_POOL_UPDATED"), + + CLOUD_POOL_DELETED("CLOUD_POOL_DELETED"), + + CLOUD_POOL_AVS_UPDATED("CLOUD_POOL_AVS_UPDATED"), + + CLOUD_POOL_SENSORS_UPDATED("CLOUD_POOL_SENSORS_UPDATED"), + + CLOUD_JOB_CANCELED("CLOUD_JOB_CANCELED"), + + CLOUD_JOB_FPR_DOWNLOADED("CLOUD_JOB_FPR_DOWNLOADED"), + + CLOUD_JOB_LOG_DOWNLOADED("CLOUD_JOB_LOG_DOWNLOADED"), + + INDEX_MAINTENANCE_STARTED("INDEX_MAINTENANCE_STARTED"), + + INDEX_MAINTENANCE_COMPLETED("INDEX_MAINTENANCE_COMPLETED"), + + FULL_REINDEX_STARTED("FULL_REINDEX_STARTED"), + + FULL_REINDEX_COMPLETED("FULL_REINDEX_COMPLETED"), + + INDEX_NEW_ISSUES_STARTED("INDEX_NEW_ISSUES_STARTED"), + + INDEX_NEW_ISSUES_COMPLETED("INDEX_NEW_ISSUES_COMPLETED"), + + SSC_CONFIGURATION_UPDATED("SSC_CONFIGURATION_UPDATED"), + + LDAP_CONFIG_CREATED("LDAP_CONFIG_CREATED"), + + LDAP_CONFIG_UPDATED("LDAP_CONFIG_UPDATED"), + + LDAP_CONFIG_DELETED("LDAP_CONFIG_DELETED"), + + LDAP_CONFIG_DEFAULT_CHANGED("LDAP_CONFIG_DEFAULT_CHANGED"), + + SEED_BUNDLE_UPLOAD_COMPLETED("SEED_BUNDLE_UPLOAD_COMPLETED"), + + SEED_BUNDLE_UPLOAD_FAILED("SEED_BUNDLE_UPLOAD_FAILED"), + + SEED_BUNDLE_COMPLETED("SEED_BUNDLE_COMPLETED"), + + SEED_BUNDLE_FAILED("SEED_BUNDLE_FAILED"); + + private String value; + + EventTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EventTypeEnum fromValue(String text) { + for (EventTypeEnum b : EventTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EventTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EventTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EventTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("eventType") + private EventTypeEnum eventType = null; + + @SerializedName("eventTypeDesc") + private String eventTypeDesc = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("userName") + private String userName = null; + + public ActivityFeed authEntity(AuthenticationEntity authEntity) { + this.authEntity = authEntity; + return this; + } + + /** + * Entity + * @return authEntity + **/ + @ApiModelProperty(value = "Entity") + public AuthenticationEntity getAuthEntity() { + return authEntity; + } + + public void setAuthEntity(AuthenticationEntity authEntity) { + this.authEntity = authEntity; + } + + /** + * Get detailedNote + * @return detailedNote + **/ + @ApiModelProperty(value = "") + public String getDetailedNote() { + return detailedNote; + } + + /** + * Get entityId + * @return entityId + **/ + @ApiModelProperty(value = "") + public Long getEntityId() { + return entityId; + } + + /** + * Get eventDate + * @return eventDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getEventDate() { + return eventDate; + } + + /** + * Get eventType + * @return eventType + **/ + @ApiModelProperty(value = "") + public EventTypeEnum getEventType() { + return eventType; + } + + /** + * Description + * @return eventTypeDesc + **/ + @ApiModelProperty(value = "Description") + public String getEventTypeDesc() { + return eventTypeDesc; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivityFeed activityFeed = (ActivityFeed) o; + return Objects.equals(this.authEntity, activityFeed.authEntity) && + Objects.equals(this.detailedNote, activityFeed.detailedNote) && + Objects.equals(this.entityId, activityFeed.entityId) && + Objects.equals(this.eventDate, activityFeed.eventDate) && + Objects.equals(this.eventType, activityFeed.eventType) && + Objects.equals(this.eventTypeDesc, activityFeed.eventTypeDesc) && + Objects.equals(this.id, activityFeed.id) && + Objects.equals(this.projectVersionId, activityFeed.projectVersionId) && + Objects.equals(this.userName, activityFeed.userName); + } + + @Override + public int hashCode() { + return Objects.hash(authEntity, detailedNote, entityId, eventDate, eventType, eventTypeDesc, id, projectVersionId, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActivityFeed {\n"); + + sb.append(" authEntity: ").append(toIndentedString(authEntity)).append("\n"); + sb.append(" detailedNote: ").append(toIndentedString(detailedNote)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" eventDate: ").append(toIndentedString(eventDate)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" eventTypeDesc: ").append(toIndentedString(eventTypeDesc)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AlertDefinitionDto.java b/src/main/java/com/fortify/ssc/restclient/model/AlertDefinitionDto.java new file mode 100644 index 0000000..9393f85 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AlertDefinitionDto.java @@ -0,0 +1,833 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AlertTriggerDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * Alert definitions can include variable or performance indicator to determine when Software Security Center is to generate an alert notification in the Todo List on the Dashboard. + */ +@ApiModel(description = "Alert definitions can include variable or performance indicator to determine when Software Security Center is to generate an alert notification in the Todo List on the Dashboard.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AlertDefinitionDto { + @SerializedName("alertAllChildren") + private Boolean alertAllChildren = null; + + @SerializedName("alertStakeholders") + private Boolean alertStakeholders = null; + + @SerializedName("alertTriggers") + private List alertTriggers = new ArrayList(); + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("creationDate") + private OffsetDateTime creationDate = null; + + @SerializedName("customMessage") + private String customMessage = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("enabled") + private Boolean enabled = null; + + @SerializedName("endDate") + private OffsetDateTime endDate = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("monitorAllApps") + private Boolean monitorAllApps = null; + + @SerializedName("monitoredEntityName") + private String monitoredEntityName = null; + + /** + * Gets or Sets monitoredEntityType + */ + @JsonAdapter(MonitoredEntityTypeEnum.Adapter.class) + public enum MonitoredEntityTypeEnum { + RT_INSTANCE("RT_INSTANCE"), + + REQ_INSTANCE("REQ_INSTANCE"), + + ACTIVITY_INSTANCE("ACTIVITY_INSTANCE"), + + MEASUREMENT_AGENT("MEASUREMENT_AGENT"), + + VARIABLE("VARIABLE"), + + RUNTIME_ALERT("RUNTIME_ALERT"), + + EVENT("EVENT"), + + SCHEDULED_ALERT("SCHEDULED_ALERT"); + + private String value; + + MonitoredEntityTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MonitoredEntityTypeEnum fromValue(String text) { + for (MonitoredEntityTypeEnum b : MonitoredEntityTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MonitoredEntityTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MonitoredEntityTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MonitoredEntityTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("monitoredEntityType") + private MonitoredEntityTypeEnum monitoredEntityType = null; + + @SerializedName("monitoredInstanceId") + private Long monitoredInstanceId = null; + + @SerializedName("monitorsProjectVersions") + private Boolean monitorsProjectVersions = null; + + @SerializedName("monitorsRuntimeApp") + private Boolean monitorsRuntimeApp = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("projectVersionIds") + private List projectVersionIds = null; + + /** + * Gets or Sets recipientType + */ + @JsonAdapter(RecipientTypeEnum.Adapter.class) + public enum RecipientTypeEnum { + ME_ONLY("ME_ONLY"), + + PROCESS_ENTITY_STAKEHOLDERS("PROCESS_ENTITY_STAKEHOLDERS"), + + ALL_USERS("ALL_USERS"), + + ALL_SYSTEM_USERS("ALL_SYSTEM_USERS"); + + private String value; + + RecipientTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RecipientTypeEnum fromValue(String text) { + for (RecipientTypeEnum b : RecipientTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RecipientTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RecipientTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RecipientTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("recipientType") + private RecipientTypeEnum recipientType = null; + + @SerializedName("remindPeriodically") + private Boolean remindPeriodically = null; + + @SerializedName("reminderPeriod") + private Integer reminderPeriod = null; + + @SerializedName("startAtDueDate") + private Boolean startAtDueDate = null; + + @SerializedName("startDate") + private OffsetDateTime startDate = null; + + @SerializedName("triggerDescription") + private String triggerDescription = null; + + @SerializedName("triggerDescriptionName") + private String triggerDescriptionName = null; + + @SerializedName("triggerDescriptionOperation") + private String triggerDescriptionOperation = null; + + @SerializedName("triggerDescriptionValue") + private String triggerDescriptionValue = null; + + @SerializedName("userCanModify") + private Boolean userCanModify = null; + + public AlertDefinitionDto alertAllChildren(Boolean alertAllChildren) { + this.alertAllChildren = alertAllChildren; + return this; + } + + /** + * Get alertAllChildren + * @return alertAllChildren + **/ + @ApiModelProperty(value = "") + public Boolean isAlertAllChildren() { + return alertAllChildren; + } + + public void setAlertAllChildren(Boolean alertAllChildren) { + this.alertAllChildren = alertAllChildren; + } + + public AlertDefinitionDto alertStakeholders(Boolean alertStakeholders) { + this.alertStakeholders = alertStakeholders; + return this; + } + + /** + * Get alertStakeholders + * @return alertStakeholders + **/ + @ApiModelProperty(value = "") + public Boolean isAlertStakeholders() { + return alertStakeholders; + } + + public void setAlertStakeholders(Boolean alertStakeholders) { + this.alertStakeholders = alertStakeholders; + } + + public AlertDefinitionDto alertTriggers(List alertTriggers) { + this.alertTriggers = alertTriggers; + return this; + } + + public AlertDefinitionDto addAlertTriggersItem(AlertTriggerDto alertTriggersItem) { + this.alertTriggers.add(alertTriggersItem); + return this; + } + + /** + * Get alertTriggers + * @return alertTriggers + **/ + @ApiModelProperty(required = true, value = "") + public List getAlertTriggers() { + return alertTriggers; + } + + public void setAlertTriggers(List alertTriggers) { + this.alertTriggers = alertTriggers; + } + + public AlertDefinitionDto createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public AlertDefinitionDto creationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * Get creationDate + * @return creationDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public AlertDefinitionDto customMessage(String customMessage) { + this.customMessage = customMessage; + return this; + } + + /** + * Required field for Scheduled alerts, Optional for other types + * @return customMessage + **/ + @ApiModelProperty(required = true, value = "Required field for Scheduled alerts, Optional for other types") + public String getCustomMessage() { + return customMessage; + } + + public void setCustomMessage(String customMessage) { + this.customMessage = customMessage; + } + + public AlertDefinitionDto description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AlertDefinitionDto enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get enabled + * @return enabled + **/ + @ApiModelProperty(value = "") + public Boolean isEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public AlertDefinitionDto endDate(OffsetDateTime endDate) { + this.endDate = endDate; + return this; + } + + /** + * Get endDate + * @return endDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getEndDate() { + return endDate; + } + + public void setEndDate(OffsetDateTime endDate) { + this.endDate = endDate; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public AlertDefinitionDto monitorAllApps(Boolean monitorAllApps) { + this.monitorAllApps = monitorAllApps; + return this; + } + + /** + * Get monitorAllApps + * @return monitorAllApps + **/ + @ApiModelProperty(value = "") + public Boolean isMonitorAllApps() { + return monitorAllApps; + } + + public void setMonitorAllApps(Boolean monitorAllApps) { + this.monitorAllApps = monitorAllApps; + } + + public AlertDefinitionDto monitoredEntityName(String monitoredEntityName) { + this.monitoredEntityName = monitoredEntityName; + return this; + } + + /** + * Get monitoredEntityName + * @return monitoredEntityName + **/ + @ApiModelProperty(value = "") + public String getMonitoredEntityName() { + return monitoredEntityName; + } + + public void setMonitoredEntityName(String monitoredEntityName) { + this.monitoredEntityName = monitoredEntityName; + } + + public AlertDefinitionDto monitoredEntityType(MonitoredEntityTypeEnum monitoredEntityType) { + this.monitoredEntityType = monitoredEntityType; + return this; + } + + /** + * Get monitoredEntityType + * @return monitoredEntityType + **/ + @ApiModelProperty(required = true, value = "") + public MonitoredEntityTypeEnum getMonitoredEntityType() { + return monitoredEntityType; + } + + public void setMonitoredEntityType(MonitoredEntityTypeEnum monitoredEntityType) { + this.monitoredEntityType = monitoredEntityType; + } + + public AlertDefinitionDto monitoredInstanceId(Long monitoredInstanceId) { + this.monitoredInstanceId = monitoredInstanceId; + return this; + } + + /** + * Get monitoredInstanceId + * @return monitoredInstanceId + **/ + @ApiModelProperty(value = "") + public Long getMonitoredInstanceId() { + return monitoredInstanceId; + } + + public void setMonitoredInstanceId(Long monitoredInstanceId) { + this.monitoredInstanceId = monitoredInstanceId; + } + + public AlertDefinitionDto monitorsProjectVersions(Boolean monitorsProjectVersions) { + this.monitorsProjectVersions = monitorsProjectVersions; + return this; + } + + /** + * Get monitorsProjectVersions + * @return monitorsProjectVersions + **/ + @ApiModelProperty(value = "") + public Boolean isMonitorsProjectVersions() { + return monitorsProjectVersions; + } + + public void setMonitorsProjectVersions(Boolean monitorsProjectVersions) { + this.monitorsProjectVersions = monitorsProjectVersions; + } + + public AlertDefinitionDto monitorsRuntimeApp(Boolean monitorsRuntimeApp) { + this.monitorsRuntimeApp = monitorsRuntimeApp; + return this; + } + + /** + * Get monitorsRuntimeApp + * @return monitorsRuntimeApp + **/ + @ApiModelProperty(value = "") + public Boolean isMonitorsRuntimeApp() { + return monitorsRuntimeApp; + } + + public void setMonitorsRuntimeApp(Boolean monitorsRuntimeApp) { + this.monitorsRuntimeApp = monitorsRuntimeApp; + } + + public AlertDefinitionDto name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AlertDefinitionDto projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public AlertDefinitionDto addProjectVersionIdsItem(Long projectVersionIdsItem) { + if (this.projectVersionIds == null) { + this.projectVersionIds = new ArrayList(); + } + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * Get projectVersionIds + * @return projectVersionIds + **/ + @ApiModelProperty(value = "") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + public AlertDefinitionDto recipientType(RecipientTypeEnum recipientType) { + this.recipientType = recipientType; + return this; + } + + /** + * Get recipientType + * @return recipientType + **/ + @ApiModelProperty(required = true, value = "") + public RecipientTypeEnum getRecipientType() { + return recipientType; + } + + public void setRecipientType(RecipientTypeEnum recipientType) { + this.recipientType = recipientType; + } + + public AlertDefinitionDto remindPeriodically(Boolean remindPeriodically) { + this.remindPeriodically = remindPeriodically; + return this; + } + + /** + * Get remindPeriodically + * @return remindPeriodically + **/ + @ApiModelProperty(value = "") + public Boolean isRemindPeriodically() { + return remindPeriodically; + } + + public void setRemindPeriodically(Boolean remindPeriodically) { + this.remindPeriodically = remindPeriodically; + } + + public AlertDefinitionDto reminderPeriod(Integer reminderPeriod) { + this.reminderPeriod = reminderPeriod; + return this; + } + + /** + * Get reminderPeriod + * @return reminderPeriod + **/ + @ApiModelProperty(value = "") + public Integer getReminderPeriod() { + return reminderPeriod; + } + + public void setReminderPeriod(Integer reminderPeriod) { + this.reminderPeriod = reminderPeriod; + } + + public AlertDefinitionDto startAtDueDate(Boolean startAtDueDate) { + this.startAtDueDate = startAtDueDate; + return this; + } + + /** + * Get startAtDueDate + * @return startAtDueDate + **/ + @ApiModelProperty(value = "") + public Boolean isStartAtDueDate() { + return startAtDueDate; + } + + public void setStartAtDueDate(Boolean startAtDueDate) { + this.startAtDueDate = startAtDueDate; + } + + public AlertDefinitionDto startDate(OffsetDateTime startDate) { + this.startDate = startDate; + return this; + } + + /** + * Get startDate + * @return startDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getStartDate() { + return startDate; + } + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + public AlertDefinitionDto triggerDescription(String triggerDescription) { + this.triggerDescription = triggerDescription; + return this; + } + + /** + * Get triggerDescription + * @return triggerDescription + **/ + @ApiModelProperty(value = "") + public String getTriggerDescription() { + return triggerDescription; + } + + public void setTriggerDescription(String triggerDescription) { + this.triggerDescription = triggerDescription; + } + + public AlertDefinitionDto triggerDescriptionName(String triggerDescriptionName) { + this.triggerDescriptionName = triggerDescriptionName; + return this; + } + + /** + * Get triggerDescriptionName + * @return triggerDescriptionName + **/ + @ApiModelProperty(value = "") + public String getTriggerDescriptionName() { + return triggerDescriptionName; + } + + public void setTriggerDescriptionName(String triggerDescriptionName) { + this.triggerDescriptionName = triggerDescriptionName; + } + + public AlertDefinitionDto triggerDescriptionOperation(String triggerDescriptionOperation) { + this.triggerDescriptionOperation = triggerDescriptionOperation; + return this; + } + + /** + * Get triggerDescriptionOperation + * @return triggerDescriptionOperation + **/ + @ApiModelProperty(value = "") + public String getTriggerDescriptionOperation() { + return triggerDescriptionOperation; + } + + public void setTriggerDescriptionOperation(String triggerDescriptionOperation) { + this.triggerDescriptionOperation = triggerDescriptionOperation; + } + + public AlertDefinitionDto triggerDescriptionValue(String triggerDescriptionValue) { + this.triggerDescriptionValue = triggerDescriptionValue; + return this; + } + + /** + * Get triggerDescriptionValue + * @return triggerDescriptionValue + **/ + @ApiModelProperty(value = "") + public String getTriggerDescriptionValue() { + return triggerDescriptionValue; + } + + public void setTriggerDescriptionValue(String triggerDescriptionValue) { + this.triggerDescriptionValue = triggerDescriptionValue; + } + + public AlertDefinitionDto userCanModify(Boolean userCanModify) { + this.userCanModify = userCanModify; + return this; + } + + /** + * Get userCanModify + * @return userCanModify + **/ + @ApiModelProperty(value = "") + public Boolean isUserCanModify() { + return userCanModify; + } + + public void setUserCanModify(Boolean userCanModify) { + this.userCanModify = userCanModify; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertDefinitionDto alertDefinitionDto = (AlertDefinitionDto) o; + return Objects.equals(this.alertAllChildren, alertDefinitionDto.alertAllChildren) && + Objects.equals(this.alertStakeholders, alertDefinitionDto.alertStakeholders) && + Objects.equals(this.alertTriggers, alertDefinitionDto.alertTriggers) && + Objects.equals(this.createdBy, alertDefinitionDto.createdBy) && + Objects.equals(this.creationDate, alertDefinitionDto.creationDate) && + Objects.equals(this.customMessage, alertDefinitionDto.customMessage) && + Objects.equals(this.description, alertDefinitionDto.description) && + Objects.equals(this.enabled, alertDefinitionDto.enabled) && + Objects.equals(this.endDate, alertDefinitionDto.endDate) && + Objects.equals(this.id, alertDefinitionDto.id) && + Objects.equals(this.monitorAllApps, alertDefinitionDto.monitorAllApps) && + Objects.equals(this.monitoredEntityName, alertDefinitionDto.monitoredEntityName) && + Objects.equals(this.monitoredEntityType, alertDefinitionDto.monitoredEntityType) && + Objects.equals(this.monitoredInstanceId, alertDefinitionDto.monitoredInstanceId) && + Objects.equals(this.monitorsProjectVersions, alertDefinitionDto.monitorsProjectVersions) && + Objects.equals(this.monitorsRuntimeApp, alertDefinitionDto.monitorsRuntimeApp) && + Objects.equals(this.name, alertDefinitionDto.name) && + Objects.equals(this.projectVersionIds, alertDefinitionDto.projectVersionIds) && + Objects.equals(this.recipientType, alertDefinitionDto.recipientType) && + Objects.equals(this.remindPeriodically, alertDefinitionDto.remindPeriodically) && + Objects.equals(this.reminderPeriod, alertDefinitionDto.reminderPeriod) && + Objects.equals(this.startAtDueDate, alertDefinitionDto.startAtDueDate) && + Objects.equals(this.startDate, alertDefinitionDto.startDate) && + Objects.equals(this.triggerDescription, alertDefinitionDto.triggerDescription) && + Objects.equals(this.triggerDescriptionName, alertDefinitionDto.triggerDescriptionName) && + Objects.equals(this.triggerDescriptionOperation, alertDefinitionDto.triggerDescriptionOperation) && + Objects.equals(this.triggerDescriptionValue, alertDefinitionDto.triggerDescriptionValue) && + Objects.equals(this.userCanModify, alertDefinitionDto.userCanModify); + } + + @Override + public int hashCode() { + return Objects.hash(alertAllChildren, alertStakeholders, alertTriggers, createdBy, creationDate, customMessage, description, enabled, endDate, id, monitorAllApps, monitoredEntityName, monitoredEntityType, monitoredInstanceId, monitorsProjectVersions, monitorsRuntimeApp, name, projectVersionIds, recipientType, remindPeriodically, reminderPeriod, startAtDueDate, startDate, triggerDescription, triggerDescriptionName, triggerDescriptionOperation, triggerDescriptionValue, userCanModify); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertDefinitionDto {\n"); + + sb.append(" alertAllChildren: ").append(toIndentedString(alertAllChildren)).append("\n"); + sb.append(" alertStakeholders: ").append(toIndentedString(alertStakeholders)).append("\n"); + sb.append(" alertTriggers: ").append(toIndentedString(alertTriggers)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" customMessage: ").append(toIndentedString(customMessage)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" monitorAllApps: ").append(toIndentedString(monitorAllApps)).append("\n"); + sb.append(" monitoredEntityName: ").append(toIndentedString(monitoredEntityName)).append("\n"); + sb.append(" monitoredEntityType: ").append(toIndentedString(monitoredEntityType)).append("\n"); + sb.append(" monitoredInstanceId: ").append(toIndentedString(monitoredInstanceId)).append("\n"); + sb.append(" monitorsProjectVersions: ").append(toIndentedString(monitorsProjectVersions)).append("\n"); + sb.append(" monitorsRuntimeApp: ").append(toIndentedString(monitorsRuntimeApp)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append(" recipientType: ").append(toIndentedString(recipientType)).append("\n"); + sb.append(" remindPeriodically: ").append(toIndentedString(remindPeriodically)).append("\n"); + sb.append(" reminderPeriod: ").append(toIndentedString(reminderPeriod)).append("\n"); + sb.append(" startAtDueDate: ").append(toIndentedString(startAtDueDate)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" triggerDescription: ").append(toIndentedString(triggerDescription)).append("\n"); + sb.append(" triggerDescriptionName: ").append(toIndentedString(triggerDescriptionName)).append("\n"); + sb.append(" triggerDescriptionOperation: ").append(toIndentedString(triggerDescriptionOperation)).append("\n"); + sb.append(" triggerDescriptionValue: ").append(toIndentedString(triggerDescriptionValue)).append("\n"); + sb.append(" userCanModify: ").append(toIndentedString(userCanModify)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AlertHistoryEntry.java b/src/main/java/com/fortify/ssc/restclient/model/AlertHistoryEntry.java new file mode 100644 index 0000000..6035deb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AlertHistoryEntry.java @@ -0,0 +1,293 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Alert history entry contains information about firede alert, like trigger date, user name for which alert was triggered, information abotu alert definition. + */ +@ApiModel(description = "Alert history entry contains information about firede alert, like trigger date, user name for which alert was triggered, information abotu alert definition.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AlertHistoryEntry { + @SerializedName("active") + private Boolean active = null; + + @SerializedName("alertCustomMessage") + private String alertCustomMessage = null; + + @SerializedName("alertDefinitionName") + private String alertDefinitionName = null; + + @SerializedName("alertMessage") + private String alertMessage = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("monitoredEntityType") + private String monitoredEntityType = null; + + @SerializedName("projectAndVersionLabel") + private String projectAndVersionLabel = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("triggeredDate") + private OffsetDateTime triggeredDate = null; + + @SerializedName("userName") + private String userName = null; + + public AlertHistoryEntry active(Boolean active) { + this.active = active; + return this; + } + + /** + * Get active + * @return active + **/ + @ApiModelProperty(value = "") + public Boolean isActive() { + return active; + } + + public void setActive(Boolean active) { + this.active = active; + } + + public AlertHistoryEntry alertCustomMessage(String alertCustomMessage) { + this.alertCustomMessage = alertCustomMessage; + return this; + } + + /** + * Get alertCustomMessage + * @return alertCustomMessage + **/ + @ApiModelProperty(value = "") + public String getAlertCustomMessage() { + return alertCustomMessage; + } + + public void setAlertCustomMessage(String alertCustomMessage) { + this.alertCustomMessage = alertCustomMessage; + } + + public AlertHistoryEntry alertDefinitionName(String alertDefinitionName) { + this.alertDefinitionName = alertDefinitionName; + return this; + } + + /** + * Get alertDefinitionName + * @return alertDefinitionName + **/ + @ApiModelProperty(value = "") + public String getAlertDefinitionName() { + return alertDefinitionName; + } + + public void setAlertDefinitionName(String alertDefinitionName) { + this.alertDefinitionName = alertDefinitionName; + } + + public AlertHistoryEntry alertMessage(String alertMessage) { + this.alertMessage = alertMessage; + return this; + } + + /** + * Get alertMessage + * @return alertMessage + **/ + @ApiModelProperty(value = "") + public String getAlertMessage() { + return alertMessage; + } + + public void setAlertMessage(String alertMessage) { + this.alertMessage = alertMessage; + } + + /** + * alert history id + * @return id + **/ + @ApiModelProperty(value = "alert history id") + public Long getId() { + return id; + } + + public AlertHistoryEntry monitoredEntityType(String monitoredEntityType) { + this.monitoredEntityType = monitoredEntityType; + return this; + } + + /** + * Get monitoredEntityType + * @return monitoredEntityType + **/ + @ApiModelProperty(value = "") + public String getMonitoredEntityType() { + return monitoredEntityType; + } + + public void setMonitoredEntityType(String monitoredEntityType) { + this.monitoredEntityType = monitoredEntityType; + } + + public AlertHistoryEntry projectAndVersionLabel(String projectAndVersionLabel) { + this.projectAndVersionLabel = projectAndVersionLabel; + return this; + } + + /** + * Get projectAndVersionLabel + * @return projectAndVersionLabel + **/ + @ApiModelProperty(value = "") + public String getProjectAndVersionLabel() { + return projectAndVersionLabel; + } + + public void setProjectAndVersionLabel(String projectAndVersionLabel) { + this.projectAndVersionLabel = projectAndVersionLabel; + } + + public AlertHistoryEntry projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public AlertHistoryEntry triggeredDate(OffsetDateTime triggeredDate) { + this.triggeredDate = triggeredDate; + return this; + } + + /** + * Get triggeredDate + * @return triggeredDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getTriggeredDate() { + return triggeredDate; + } + + public void setTriggeredDate(OffsetDateTime triggeredDate) { + this.triggeredDate = triggeredDate; + } + + public AlertHistoryEntry userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertHistoryEntry alertHistoryEntry = (AlertHistoryEntry) o; + return Objects.equals(this.active, alertHistoryEntry.active) && + Objects.equals(this.alertCustomMessage, alertHistoryEntry.alertCustomMessage) && + Objects.equals(this.alertDefinitionName, alertHistoryEntry.alertDefinitionName) && + Objects.equals(this.alertMessage, alertHistoryEntry.alertMessage) && + Objects.equals(this.id, alertHistoryEntry.id) && + Objects.equals(this.monitoredEntityType, alertHistoryEntry.monitoredEntityType) && + Objects.equals(this.projectAndVersionLabel, alertHistoryEntry.projectAndVersionLabel) && + Objects.equals(this.projectVersionId, alertHistoryEntry.projectVersionId) && + Objects.equals(this.triggeredDate, alertHistoryEntry.triggeredDate) && + Objects.equals(this.userName, alertHistoryEntry.userName); + } + + @Override + public int hashCode() { + return Objects.hash(active, alertCustomMessage, alertDefinitionName, alertMessage, id, monitoredEntityType, projectAndVersionLabel, projectVersionId, triggeredDate, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertHistoryEntry {\n"); + + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" alertCustomMessage: ").append(toIndentedString(alertCustomMessage)).append("\n"); + sb.append(" alertDefinitionName: ").append(toIndentedString(alertDefinitionName)).append("\n"); + sb.append(" alertMessage: ").append(toIndentedString(alertMessage)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" monitoredEntityType: ").append(toIndentedString(monitoredEntityType)).append("\n"); + sb.append(" projectAndVersionLabel: ").append(toIndentedString(projectAndVersionLabel)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" triggeredDate: ").append(toIndentedString(triggeredDate)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AlertSetStatusRequest.java b/src/main/java/com/fortify/ssc/restclient/model/AlertSetStatusRequest.java new file mode 100644 index 0000000..a668f6d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AlertSetStatusRequest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of setting status for alerts + */ +@ApiModel(description = "Request of setting status for alerts") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AlertSetStatusRequest { + @SerializedName("alertHistoryIds") + private List alertHistoryIds = new ArrayList(); + + @SerializedName("status") + private String status = null; + + public AlertSetStatusRequest alertHistoryIds(List alertHistoryIds) { + this.alertHistoryIds = alertHistoryIds; + return this; + } + + public AlertSetStatusRequest addAlertHistoryIdsItem(Long alertHistoryIdsItem) { + this.alertHistoryIds.add(alertHistoryIdsItem); + return this; + } + + /** + * Alert history ids to set status + * @return alertHistoryIds + **/ + @ApiModelProperty(required = true, value = "Alert history ids to set status") + public List getAlertHistoryIds() { + return alertHistoryIds; + } + + public void setAlertHistoryIds(List alertHistoryIds) { + this.alertHistoryIds = alertHistoryIds; + } + + public AlertSetStatusRequest status(String status) { + this.status = status; + return this; + } + + /** + * Status of alerts, classified as read or unread + * @return status + **/ + @ApiModelProperty(required = true, value = "Status of alerts, classified as read or unread") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertSetStatusRequest alertSetStatusRequest = (AlertSetStatusRequest) o; + return Objects.equals(this.alertHistoryIds, alertSetStatusRequest.alertHistoryIds) && + Objects.equals(this.status, alertSetStatusRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(alertHistoryIds, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertSetStatusRequest {\n"); + + sb.append(" alertHistoryIds: ").append(toIndentedString(alertHistoryIds)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AlertTriggerDto.java b/src/main/java/com/fortify/ssc/restclient/model/AlertTriggerDto.java new file mode 100644 index 0000000..6712fe1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AlertTriggerDto.java @@ -0,0 +1,221 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AlertTriggerDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AlertTriggerDto { + @SerializedName("alertDefinitionId") + private Long alertDefinitionId = null; + + /** + * Gets or Sets monitoredAttribute + */ + @JsonAdapter(MonitoredAttributeEnum.Adapter.class) + public enum MonitoredAttributeEnum { + SIGN_OFF_STATE("SIGN_OFF_STATE"), + + VALUE_GT("VALUE_GT"), + + VALUE_LT("VALUE_LT"), + + VALUE_EQ("VALUE_EQ"), + + VALUE_GTE("VALUE_GTE"), + + VALUE_LTE("VALUE_LTE"), + + EVENT_TYPE("EVENT_TYPE"), + + SCHEDULED_ALERT_TIME("SCHEDULED_ALERT_TIME"); + + private String value; + + MonitoredAttributeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MonitoredAttributeEnum fromValue(String text) { + for (MonitoredAttributeEnum b : MonitoredAttributeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MonitoredAttributeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MonitoredAttributeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MonitoredAttributeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("monitoredAttribute") + private MonitoredAttributeEnum monitoredAttribute = null; + + @SerializedName("resetAfterTriggering") + private Boolean resetAfterTriggering = null; + + @SerializedName("triggeredValue") + private String triggeredValue = null; + + public AlertTriggerDto alertDefinitionId(Long alertDefinitionId) { + this.alertDefinitionId = alertDefinitionId; + return this; + } + + /** + * Get alertDefinitionId + * @return alertDefinitionId + **/ + @ApiModelProperty(value = "") + public Long getAlertDefinitionId() { + return alertDefinitionId; + } + + public void setAlertDefinitionId(Long alertDefinitionId) { + this.alertDefinitionId = alertDefinitionId; + } + + public AlertTriggerDto monitoredAttribute(MonitoredAttributeEnum monitoredAttribute) { + this.monitoredAttribute = monitoredAttribute; + return this; + } + + /** + * Get monitoredAttribute + * @return monitoredAttribute + **/ + @ApiModelProperty(value = "") + public MonitoredAttributeEnum getMonitoredAttribute() { + return monitoredAttribute; + } + + public void setMonitoredAttribute(MonitoredAttributeEnum monitoredAttribute) { + this.monitoredAttribute = monitoredAttribute; + } + + public AlertTriggerDto resetAfterTriggering(Boolean resetAfterTriggering) { + this.resetAfterTriggering = resetAfterTriggering; + return this; + } + + /** + * Get resetAfterTriggering + * @return resetAfterTriggering + **/ + @ApiModelProperty(value = "") + public Boolean isResetAfterTriggering() { + return resetAfterTriggering; + } + + public void setResetAfterTriggering(Boolean resetAfterTriggering) { + this.resetAfterTriggering = resetAfterTriggering; + } + + public AlertTriggerDto triggeredValue(String triggeredValue) { + this.triggeredValue = triggeredValue; + return this; + } + + /** + * Get triggeredValue + * @return triggeredValue + **/ + @ApiModelProperty(value = "") + public String getTriggeredValue() { + return triggeredValue; + } + + public void setTriggeredValue(String triggeredValue) { + this.triggeredValue = triggeredValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertTriggerDto alertTriggerDto = (AlertTriggerDto) o; + return Objects.equals(this.alertDefinitionId, alertTriggerDto.alertDefinitionId) && + Objects.equals(this.monitoredAttribute, alertTriggerDto.monitoredAttribute) && + Objects.equals(this.resetAfterTriggering, alertTriggerDto.resetAfterTriggering) && + Objects.equals(this.triggeredValue, alertTriggerDto.triggeredValue); + } + + @Override + public int hashCode() { + return Objects.hash(alertDefinitionId, monitoredAttribute, resetAfterTriggering, triggeredValue); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertTriggerDto {\n"); + + sb.append(" alertDefinitionId: ").append(toIndentedString(alertDefinitionId)).append("\n"); + sb.append(" monitoredAttribute: ").append(toIndentedString(monitoredAttribute)).append("\n"); + sb.append(" resetAfterTriggering: ").append(toIndentedString(resetAfterTriggering)).append("\n"); + sb.append(" triggeredValue: ").append(toIndentedString(triggeredValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AlertableEventType.java b/src/main/java/com/fortify/ssc/restclient/model/AlertableEventType.java new file mode 100644 index 0000000..3570b01 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AlertableEventType.java @@ -0,0 +1,280 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AlertableEventType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AlertableEventType { + /** + * Gets or Sets category + */ + @JsonAdapter(CategoryEnum.Adapter.class) + public enum CategoryEnum { + USER_ADMINISTRATION("USER_ADMINISTRATION"), + + PV_ADMINISTRATION("PV_ADMINISTRATION"), + + PV_ISSUES("PV_ISSUES"), + + REPORT("REPORT"), + + GENERAL_ADMINISTRATION("GENERAL_ADMINISTRATION"), + + GOVERNANCE("GOVERNANCE"), + + RUNTIME_HOST("RUNTIME_HOST"), + + RUNTIME_FEDERATION("RUNTIME_FEDERATION"), + + RUNTIME_CONFIGURATION("RUNTIME_CONFIGURATION"), + + RUNTIME_APP_ADMINISTRATION("RUNTIME_APP_ADMINISTRATION"), + + FULLTEXT("FULLTEXT"), + + CLOUDSCAN("CLOUDSCAN"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryEnum fromValue(String text) { + for (CategoryEnum b : CategoryEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("category") + private CategoryEnum category = null; + + @SerializedName("displayName") + private String displayName = null; + + @SerializedName("eventTypeConstant") + private String eventTypeConstant = null; + + /** + * Gets or Sets scope + */ + @JsonAdapter(ScopeEnum.Adapter.class) + public enum ScopeEnum { + PROJECT_VERSION("PROJECT_VERSION"), + + RUNTIME_APP("RUNTIME_APP"), + + NONE("NONE"), + + ALL("ALL"); + + private String value; + + ScopeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ScopeEnum fromValue(String text) { + for (ScopeEnum b : ScopeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ScopeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ScopeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ScopeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("scope") + private ScopeEnum scope = null; + + public AlertableEventType category(CategoryEnum category) { + this.category = category; + return this; + } + + /** + * Get category + * @return category + **/ + @ApiModelProperty(value = "") + public CategoryEnum getCategory() { + return category; + } + + public void setCategory(CategoryEnum category) { + this.category = category; + } + + public AlertableEventType displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public AlertableEventType eventTypeConstant(String eventTypeConstant) { + this.eventTypeConstant = eventTypeConstant; + return this; + } + + /** + * Get eventTypeConstant + * @return eventTypeConstant + **/ + @ApiModelProperty(value = "") + public String getEventTypeConstant() { + return eventTypeConstant; + } + + public void setEventTypeConstant(String eventTypeConstant) { + this.eventTypeConstant = eventTypeConstant; + } + + public AlertableEventType scope(ScopeEnum scope) { + this.scope = scope; + return this; + } + + /** + * Get scope + * @return scope + **/ + @ApiModelProperty(value = "") + public ScopeEnum getScope() { + return scope; + } + + public void setScope(ScopeEnum scope) { + this.scope = scope; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertableEventType alertableEventType = (AlertableEventType) o; + return Objects.equals(this.category, alertableEventType.category) && + Objects.equals(this.displayName, alertableEventType.displayName) && + Objects.equals(this.eventTypeConstant, alertableEventType.eventTypeConstant) && + Objects.equals(this.scope, alertableEventType.scope); + } + + @Override + public int hashCode() { + return Objects.hash(category, displayName, eventTypeConstant, scope); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertableEventType {\n"); + + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" eventTypeConstant: ").append(toIndentedString(eventTypeConstant)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiActionResponse.java new file mode 100644 index 0000000..14a15c3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiActionResponse.java @@ -0,0 +1,188 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiActionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiActionResponse { + @SerializedName("message") + private String message = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + SUCCESS("success"), + + CREATED("created"), + + ERROR("error"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("values") + private Object values = null; + + public ApiActionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiActionResponse status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public ApiActionResponse values(Object values) { + this.values = values; + return this; + } + + /** + * Get values + * @return values + **/ + @ApiModelProperty(value = "") + public Object getValues() { + return values; + } + + public void setValues(Object values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiActionResponse apiActionResponse = (ApiActionResponse) o; + return Objects.equals(this.message, apiActionResponse.message) && + Objects.equals(this.status, apiActionResponse.status) && + Objects.equals(this.values, apiActionResponse.values); + } + + @Override + public int hashCode() { + return Objects.hash(message, status, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiActionResponse {\n"); + + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiBulkRequestItem.java b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkRequestItem.java new file mode 100644 index 0000000..e5fb7bd --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkRequestItem.java @@ -0,0 +1,190 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiBulkRequestItem + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiBulkRequestItem { + /** + * Gets or Sets httpVerb + */ + @JsonAdapter(HttpVerbEnum.Adapter.class) + public enum HttpVerbEnum { + GET("GET"), + + PUT("PUT"), + + POST("POST"), + + DELETE("DELETE"); + + private String value; + + HttpVerbEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static HttpVerbEnum fromValue(String text) { + for (HttpVerbEnum b : HttpVerbEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final HttpVerbEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public HttpVerbEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return HttpVerbEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("httpVerb") + private HttpVerbEnum httpVerb = null; + + @SerializedName("postData") + private Object postData = null; + + @SerializedName("uri") + private String uri = null; + + public ApiBulkRequestItem httpVerb(HttpVerbEnum httpVerb) { + this.httpVerb = httpVerb; + return this; + } + + /** + * Get httpVerb + * @return httpVerb + **/ + @ApiModelProperty(value = "") + public HttpVerbEnum getHttpVerb() { + return httpVerb; + } + + public void setHttpVerb(HttpVerbEnum httpVerb) { + this.httpVerb = httpVerb; + } + + public ApiBulkRequestItem postData(Object postData) { + this.postData = postData; + return this; + } + + /** + * Get postData + * @return postData + **/ + @ApiModelProperty(value = "") + public Object getPostData() { + return postData; + } + + public void setPostData(Object postData) { + this.postData = postData; + } + + public ApiBulkRequestItem uri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get uri + * @return uri + **/ + @ApiModelProperty(value = "") + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiBulkRequestItem apiBulkRequestItem = (ApiBulkRequestItem) o; + return Objects.equals(this.httpVerb, apiBulkRequestItem.httpVerb) && + Objects.equals(this.postData, apiBulkRequestItem.postData) && + Objects.equals(this.uri, apiBulkRequestItem.uri); + } + + @Override + public int hashCode() { + return Objects.hash(httpVerb, postData, uri); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiBulkRequestItem {\n"); + + sb.append(" httpVerb: ").append(toIndentedString(httpVerb)).append("\n"); + sb.append(" postData: ").append(toIndentedString(postData)).append("\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseData.java b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseData.java new file mode 100644 index 0000000..565d2cf --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseData.java @@ -0,0 +1,254 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiBulkResponseData + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiBulkResponseData { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Object data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiBulkResponseData count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiBulkResponseData data(Object data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Object getData() { + return data; + } + + public void setData(Object data) { + this.data = data; + } + + public ApiBulkResponseData errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiBulkResponseData links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiBulkResponseData message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiBulkResponseData responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiBulkResponseData stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiBulkResponseData successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiBulkResponseData apiBulkResponseData = (ApiBulkResponseData) o; + return Objects.equals(this.count, apiBulkResponseData.count) && + Objects.equals(this.data, apiBulkResponseData.data) && + Objects.equals(this.errorCode, apiBulkResponseData.errorCode) && + Objects.equals(this.links, apiBulkResponseData.links) && + Objects.equals(this.message, apiBulkResponseData.message) && + Objects.equals(this.responseCode, apiBulkResponseData.responseCode) && + Objects.equals(this.stackTrace, apiBulkResponseData.stackTrace) && + Objects.equals(this.successCount, apiBulkResponseData.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiBulkResponseData {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseItemResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseItemResponse.java new file mode 100644 index 0000000..93499ba --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiBulkResponseItemResponse.java @@ -0,0 +1,151 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApiBulkResponseData; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * ApiBulkResponseItemResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiBulkResponseItemResponse { + @SerializedName("body") + private ApiBulkResponseData body = null; + + @SerializedName("headers") + private Map headers = null; + + @SerializedName("requestUrl") + private String requestUrl = null; + + public ApiBulkResponseItemResponse body(ApiBulkResponseData body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + **/ + @ApiModelProperty(value = "") + public ApiBulkResponseData getBody() { + return body; + } + + public void setBody(ApiBulkResponseData body) { + this.body = body; + } + + public ApiBulkResponseItemResponse headers(Map headers) { + this.headers = headers; + return this; + } + + public ApiBulkResponseItemResponse putHeadersItem(String key, String headersItem) { + if (this.headers == null) { + this.headers = new HashMap(); + } + this.headers.put(key, headersItem); + return this; + } + + /** + * Get headers + * @return headers + **/ + @ApiModelProperty(value = "") + public Map getHeaders() { + return headers; + } + + public void setHeaders(Map headers) { + this.headers = headers; + } + + public ApiBulkResponseItemResponse requestUrl(String requestUrl) { + this.requestUrl = requestUrl; + return this; + } + + /** + * Get requestUrl + * @return requestUrl + **/ + @ApiModelProperty(value = "") + public String getRequestUrl() { + return requestUrl; + } + + public void setRequestUrl(String requestUrl) { + this.requestUrl = requestUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiBulkResponseItemResponse apiBulkResponseItemResponse = (ApiBulkResponseItemResponse) o; + return Objects.equals(this.body, apiBulkResponseItemResponse.body) && + Objects.equals(this.headers, apiBulkResponseItemResponse.headers) && + Objects.equals(this.requestUrl, apiBulkResponseItemResponse.requestUrl); + } + + @Override + public int hashCode() { + return Objects.hash(body, headers, requestUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiBulkResponseItemResponse {\n"); + + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append(" requestUrl: ").append(toIndentedString(requestUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionlong.java b/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionlong.java new file mode 100644 index 0000000..a3cf865 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionlong.java @@ -0,0 +1,248 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiCollectionActionlong + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiCollectionActionlong { + @SerializedName("ids") + private List ids = null; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CREATE("create"), + + LOGIN("login"), + + APPROVE("approve"), + + PURGE("purge"), + + REVOKE("revoke"), + + CANCEL("cancel"), + + REVIEW("review"), + + ASSIGN("assign"), + + ENABLE("enable"), + + DISABLE("disable"), + + REPLACE("replace"), + + DELEGATE("delegate"), + + UPDATE_ISSUE_TAG("update_issue_tag"), + + SET_ISSUE_SUPPRESSED("set_issue_suppressed"), + + ASSIGN_ISSUE_TO_USER("assign_issue_to_user"), + + AUDIT_ISSUE("audit_issue"), + + SET_STATUS("set_status"), + + FILE_BUG("file_bug"), + + REFRESH("refresh"), + + TEST("test"), + + CHECK_PASSWORD_STRENGTH("check_password_strength"), + + COPY_FROM_PARTIAL("copy_from_partial"), + + COPY_CURRENT_STATE("copy_current_state"), + + SEND_TO_AUDITASSISTANT("send_to_auditassistant"), + + SEND_FOR_TRAINING("send_for_training"), + + EXPORT_TO_CSV("export_to_csv"), + + EXPORT_ISSUE_STATS_TO_CSV("export_issue_stats_to_csv"), + + EXPORT_AUDIT_TO_CSV("export_audit_to_csv"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("values") + private Object values = null; + + public ApiCollectionActionlong ids(List ids) { + this.ids = ids; + return this; + } + + public ApiCollectionActionlong addIdsItem(Long idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @ApiModelProperty(value = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public ApiCollectionActionlong type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ApiCollectionActionlong values(Object values) { + this.values = values; + return this; + } + + /** + * Get values + * @return values + **/ + @ApiModelProperty(value = "") + public Object getValues() { + return values; + } + + public void setValues(Object values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiCollectionActionlong apiCollectionActionlong = (ApiCollectionActionlong) o; + return Objects.equals(this.ids, apiCollectionActionlong.ids) && + Objects.equals(this.type, apiCollectionActionlong.type) && + Objects.equals(this.values, apiCollectionActionlong.values); + } + + @Override + public int hashCode() { + return Objects.hash(ids, type, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiCollectionActionlong {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionstring.java b/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionstring.java new file mode 100644 index 0000000..9937ccd --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiCollectionActionstring.java @@ -0,0 +1,248 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiCollectionActionstring + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiCollectionActionstring { + @SerializedName("ids") + private List ids = null; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CREATE("create"), + + LOGIN("login"), + + APPROVE("approve"), + + PURGE("purge"), + + REVOKE("revoke"), + + CANCEL("cancel"), + + REVIEW("review"), + + ASSIGN("assign"), + + ENABLE("enable"), + + DISABLE("disable"), + + REPLACE("replace"), + + DELEGATE("delegate"), + + UPDATE_ISSUE_TAG("update_issue_tag"), + + SET_ISSUE_SUPPRESSED("set_issue_suppressed"), + + ASSIGN_ISSUE_TO_USER("assign_issue_to_user"), + + AUDIT_ISSUE("audit_issue"), + + SET_STATUS("set_status"), + + FILE_BUG("file_bug"), + + REFRESH("refresh"), + + TEST("test"), + + CHECK_PASSWORD_STRENGTH("check_password_strength"), + + COPY_FROM_PARTIAL("copy_from_partial"), + + COPY_CURRENT_STATE("copy_current_state"), + + SEND_TO_AUDITASSISTANT("send_to_auditassistant"), + + SEND_FOR_TRAINING("send_for_training"), + + EXPORT_TO_CSV("export_to_csv"), + + EXPORT_ISSUE_STATS_TO_CSV("export_issue_stats_to_csv"), + + EXPORT_AUDIT_TO_CSV("export_audit_to_csv"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("values") + private Object values = null; + + public ApiCollectionActionstring ids(List ids) { + this.ids = ids; + return this; + } + + public ApiCollectionActionstring addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @ApiModelProperty(value = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public ApiCollectionActionstring type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ApiCollectionActionstring values(Object values) { + this.values = values; + return this; + } + + /** + * Get values + * @return values + **/ + @ApiModelProperty(value = "") + public Object getValues() { + return values; + } + + public void setValues(Object values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiCollectionActionstring apiCollectionActionstring = (ApiCollectionActionstring) o; + return Objects.equals(this.ids, apiCollectionActionstring.ids) && + Objects.equals(this.type, apiCollectionActionstring.type) && + Objects.equals(this.values, apiCollectionActionstring.values); + } + + @Override + public int hashCode() { + return Objects.hash(ids, type, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiCollectionActionstring {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResourceAction.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResourceAction.java new file mode 100644 index 0000000..738109a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResourceAction.java @@ -0,0 +1,215 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResourceAction + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResourceAction { + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CREATE("create"), + + LOGIN("login"), + + APPROVE("approve"), + + PURGE("purge"), + + REVOKE("revoke"), + + CANCEL("cancel"), + + REVIEW("review"), + + ASSIGN("assign"), + + ENABLE("enable"), + + DISABLE("disable"), + + REPLACE("replace"), + + DELEGATE("delegate"), + + UPDATE_ISSUE_TAG("update_issue_tag"), + + SET_ISSUE_SUPPRESSED("set_issue_suppressed"), + + ASSIGN_ISSUE_TO_USER("assign_issue_to_user"), + + AUDIT_ISSUE("audit_issue"), + + SET_STATUS("set_status"), + + FILE_BUG("file_bug"), + + REFRESH("refresh"), + + TEST("test"), + + CHECK_PASSWORD_STRENGTH("check_password_strength"), + + COPY_FROM_PARTIAL("copy_from_partial"), + + COPY_CURRENT_STATE("copy_current_state"), + + SEND_TO_AUDITASSISTANT("send_to_auditassistant"), + + SEND_FOR_TRAINING("send_for_training"), + + EXPORT_TO_CSV("export_to_csv"), + + EXPORT_ISSUE_STATS_TO_CSV("export_issue_stats_to_csv"), + + EXPORT_AUDIT_TO_CSV("export_audit_to_csv"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("values") + private Object values = null; + + public ApiResourceAction type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ApiResourceAction values(Object values) { + this.values = values; + return this; + } + + /** + * Get values + * @return values + **/ + @ApiModelProperty(value = "") + public Object getValues() { + return values; + } + + public void setValues(Object values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResourceAction apiResourceAction = (ApiResourceAction) o; + return Objects.equals(this.type, apiResourceAction.type) && + Objects.equals(this.values, apiResourceAction.values); + } + + @Override + public int hashCode() { + return Objects.hash(type, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResourceAction {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResult.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResult.java new file mode 100644 index 0000000..e8cc32e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResult.java @@ -0,0 +1,254 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResult + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResult { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Object data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResult count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResult data(Object data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Object getData() { + return data; + } + + public void setData(Object data) { + this.data = data; + } + + public ApiResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResult links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResult message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResult responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResult stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResult successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResult apiResult = (ApiResult) o; + return Objects.equals(this.count, apiResult.count) && + Objects.equals(this.data, apiResult.data) && + Objects.equals(this.errorCode, apiResult.errorCode) && + Objects.equals(this.links, apiResult.links) && + Objects.equals(this.message, apiResult.message) && + Objects.equals(this.responseCode, apiResult.responseCode) && + Objects.equals(this.stackTrace, apiResult.stackTrace) && + Objects.equals(this.successCount, apiResult.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResult {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultAlertDefinitionDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAlertDefinitionDto.java new file mode 100644 index 0000000..6c2d4f5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAlertDefinitionDto.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AlertDefinitionDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultAlertDefinitionDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultAlertDefinitionDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private AlertDefinitionDto data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultAlertDefinitionDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultAlertDefinitionDto data(AlertDefinitionDto data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public AlertDefinitionDto getData() { + return data; + } + + public void setData(AlertDefinitionDto data) { + this.data = data; + } + + public ApiResultAlertDefinitionDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultAlertDefinitionDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultAlertDefinitionDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultAlertDefinitionDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultAlertDefinitionDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultAlertDefinitionDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultAlertDefinitionDto apiResultAlertDefinitionDto = (ApiResultAlertDefinitionDto) o; + return Objects.equals(this.count, apiResultAlertDefinitionDto.count) && + Objects.equals(this.data, apiResultAlertDefinitionDto.data) && + Objects.equals(this.errorCode, apiResultAlertDefinitionDto.errorCode) && + Objects.equals(this.links, apiResultAlertDefinitionDto.links) && + Objects.equals(this.message, apiResultAlertDefinitionDto.message) && + Objects.equals(this.responseCode, apiResultAlertDefinitionDto.responseCode) && + Objects.equals(this.stackTrace, apiResultAlertDefinitionDto.stackTrace) && + Objects.equals(this.successCount, apiResultAlertDefinitionDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultAlertDefinitionDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultApiActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApiActionResponse.java new file mode 100644 index 0000000..330be5a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApiActionResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApiActionResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultApiActionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultApiActionResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ApiActionResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultApiActionResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultApiActionResponse data(ApiActionResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ApiActionResponse getData() { + return data; + } + + public void setData(ApiActionResponse data) { + this.data = data; + } + + public ApiResultApiActionResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultApiActionResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultApiActionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultApiActionResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultApiActionResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultApiActionResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultApiActionResponse apiResultApiActionResponse = (ApiResultApiActionResponse) o; + return Objects.equals(this.count, apiResultApiActionResponse.count) && + Objects.equals(this.data, apiResultApiActionResponse.data) && + Objects.equals(this.errorCode, apiResultApiActionResponse.errorCode) && + Objects.equals(this.links, apiResultApiActionResponse.links) && + Objects.equals(this.message, apiResultApiActionResponse.message) && + Objects.equals(this.responseCode, apiResultApiActionResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultApiActionResponse.stackTrace) && + Objects.equals(this.successCount, apiResultApiActionResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultApiActionResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationNameTestResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationNameTestResponse.java new file mode 100644 index 0000000..c8d45b1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationNameTestResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApplicationNameTestResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultApplicationNameTestResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultApplicationNameTestResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ApplicationNameTestResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultApplicationNameTestResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultApplicationNameTestResponse data(ApplicationNameTestResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ApplicationNameTestResponse getData() { + return data; + } + + public void setData(ApplicationNameTestResponse data) { + this.data = data; + } + + public ApiResultApplicationNameTestResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultApplicationNameTestResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultApplicationNameTestResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultApplicationNameTestResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultApplicationNameTestResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultApplicationNameTestResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultApplicationNameTestResponse apiResultApplicationNameTestResponse = (ApiResultApplicationNameTestResponse) o; + return Objects.equals(this.count, apiResultApplicationNameTestResponse.count) && + Objects.equals(this.data, apiResultApplicationNameTestResponse.data) && + Objects.equals(this.errorCode, apiResultApplicationNameTestResponse.errorCode) && + Objects.equals(this.links, apiResultApplicationNameTestResponse.links) && + Objects.equals(this.message, apiResultApplicationNameTestResponse.message) && + Objects.equals(this.responseCode, apiResultApplicationNameTestResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultApplicationNameTestResponse.stackTrace) && + Objects.equals(this.successCount, apiResultApplicationNameTestResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultApplicationNameTestResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationState.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationState.java new file mode 100644 index 0000000..70f82e0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultApplicationState.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApplicationState; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultApplicationState + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultApplicationState { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ApplicationState data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultApplicationState count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultApplicationState data(ApplicationState data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ApplicationState getData() { + return data; + } + + public void setData(ApplicationState data) { + this.data = data; + } + + public ApiResultApplicationState errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultApplicationState links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultApplicationState message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultApplicationState responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultApplicationState stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultApplicationState successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultApplicationState apiResultApplicationState = (ApiResultApplicationState) o; + return Objects.equals(this.count, apiResultApplicationState.count) && + Objects.equals(this.data, apiResultApplicationState.data) && + Objects.equals(this.errorCode, apiResultApplicationState.errorCode) && + Objects.equals(this.links, apiResultApplicationState.links) && + Objects.equals(this.message, apiResultApplicationState.message) && + Objects.equals(this.responseCode, apiResultApplicationState.responseCode) && + Objects.equals(this.stackTrace, apiResultApplicationState.stackTrace) && + Objects.equals(this.successCount, apiResultApplicationState.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultApplicationState {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultArraystring.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultArraystring.java new file mode 100644 index 0000000..1de7de2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultArraystring.java @@ -0,0 +1,264 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultArraystring + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultArraystring { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultArraystring count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultArraystring data(List data) { + this.data = data; + return this; + } + + public ApiResultArraystring addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultArraystring errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultArraystring links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultArraystring message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultArraystring responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultArraystring stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultArraystring successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultArraystring apiResultArraystring = (ApiResultArraystring) o; + return Objects.equals(this.count, apiResultArraystring.count) && + Objects.equals(this.data, apiResultArraystring.data) && + Objects.equals(this.errorCode, apiResultArraystring.errorCode) && + Objects.equals(this.links, apiResultArraystring.links) && + Objects.equals(this.message, apiResultArraystring.message) && + Objects.equals(this.responseCode, apiResultArraystring.responseCode) && + Objects.equals(this.stackTrace, apiResultArraystring.stackTrace) && + Objects.equals(this.successCount, apiResultArraystring.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultArraystring {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultArtifact.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultArtifact.java new file mode 100644 index 0000000..e404a9a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultArtifact.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Artifact; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultArtifact + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultArtifact { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Artifact data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultArtifact count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultArtifact data(Artifact data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Artifact getData() { + return data; + } + + public void setData(Artifact data) { + this.data = data; + } + + public ApiResultArtifact errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultArtifact links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultArtifact message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultArtifact responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultArtifact stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultArtifact successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultArtifact apiResultArtifact = (ApiResultArtifact) o; + return Objects.equals(this.count, apiResultArtifact.count) && + Objects.equals(this.data, apiResultArtifact.data) && + Objects.equals(this.errorCode, apiResultArtifact.errorCode) && + Objects.equals(this.links, apiResultArtifact.links) && + Objects.equals(this.message, apiResultArtifact.message) && + Objects.equals(this.responseCode, apiResultArtifact.responseCode) && + Objects.equals(this.stackTrace, apiResultArtifact.stackTrace) && + Objects.equals(this.successCount, apiResultArtifact.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultArtifact {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttribute.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttribute.java new file mode 100644 index 0000000..c155e2d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttribute.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Attribute; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultAttribute + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultAttribute { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Attribute data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultAttribute count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultAttribute data(Attribute data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Attribute getData() { + return data; + } + + public void setData(Attribute data) { + this.data = data; + } + + public ApiResultAttribute errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultAttribute links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultAttribute message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultAttribute responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultAttribute stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultAttribute successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultAttribute apiResultAttribute = (ApiResultAttribute) o; + return Objects.equals(this.count, apiResultAttribute.count) && + Objects.equals(this.data, apiResultAttribute.data) && + Objects.equals(this.errorCode, apiResultAttribute.errorCode) && + Objects.equals(this.links, apiResultAttribute.links) && + Objects.equals(this.message, apiResultAttribute.message) && + Objects.equals(this.responseCode, apiResultAttribute.responseCode) && + Objects.equals(this.stackTrace, apiResultAttribute.stackTrace) && + Objects.equals(this.successCount, apiResultAttribute.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultAttribute {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttributeDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttributeDefinition.java new file mode 100644 index 0000000..6bf1b17 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAttributeDefinition.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AttributeDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultAttributeDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultAttributeDefinition { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private AttributeDefinition data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultAttributeDefinition count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultAttributeDefinition data(AttributeDefinition data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public AttributeDefinition getData() { + return data; + } + + public void setData(AttributeDefinition data) { + this.data = data; + } + + public ApiResultAttributeDefinition errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultAttributeDefinition links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultAttributeDefinition message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultAttributeDefinition responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultAttributeDefinition stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultAttributeDefinition successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultAttributeDefinition apiResultAttributeDefinition = (ApiResultAttributeDefinition) o; + return Objects.equals(this.count, apiResultAttributeDefinition.count) && + Objects.equals(this.data, apiResultAttributeDefinition.data) && + Objects.equals(this.errorCode, apiResultAttributeDefinition.errorCode) && + Objects.equals(this.links, apiResultAttributeDefinition.links) && + Objects.equals(this.message, apiResultAttributeDefinition.message) && + Objects.equals(this.responseCode, apiResultAttributeDefinition.responseCode) && + Objects.equals(this.stackTrace, apiResultAttributeDefinition.stackTrace) && + Objects.equals(this.successCount, apiResultAttributeDefinition.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultAttributeDefinition {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationEntity.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationEntity.java new file mode 100644 index 0000000..c230cdb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationEntity.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuthenticationEntity; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultAuthenticationEntity + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultAuthenticationEntity { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private AuthenticationEntity data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultAuthenticationEntity count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultAuthenticationEntity data(AuthenticationEntity data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public AuthenticationEntity getData() { + return data; + } + + public void setData(AuthenticationEntity data) { + this.data = data; + } + + public ApiResultAuthenticationEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultAuthenticationEntity links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultAuthenticationEntity message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultAuthenticationEntity responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultAuthenticationEntity stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultAuthenticationEntity successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultAuthenticationEntity apiResultAuthenticationEntity = (ApiResultAuthenticationEntity) o; + return Objects.equals(this.count, apiResultAuthenticationEntity.count) && + Objects.equals(this.data, apiResultAuthenticationEntity.data) && + Objects.equals(this.errorCode, apiResultAuthenticationEntity.errorCode) && + Objects.equals(this.links, apiResultAuthenticationEntity.links) && + Objects.equals(this.message, apiResultAuthenticationEntity.message) && + Objects.equals(this.responseCode, apiResultAuthenticationEntity.responseCode) && + Objects.equals(this.stackTrace, apiResultAuthenticationEntity.stackTrace) && + Objects.equals(this.successCount, apiResultAuthenticationEntity.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultAuthenticationEntity {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationToken.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationToken.java new file mode 100644 index 0000000..9f45c9d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultAuthenticationToken.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuthenticationToken; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultAuthenticationToken + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultAuthenticationToken { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private AuthenticationToken data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultAuthenticationToken count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultAuthenticationToken data(AuthenticationToken data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public AuthenticationToken getData() { + return data; + } + + public void setData(AuthenticationToken data) { + this.data = data; + } + + public ApiResultAuthenticationToken errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultAuthenticationToken links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultAuthenticationToken message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultAuthenticationToken responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultAuthenticationToken stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultAuthenticationToken successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultAuthenticationToken apiResultAuthenticationToken = (ApiResultAuthenticationToken) o; + return Objects.equals(this.count, apiResultAuthenticationToken.count) && + Objects.equals(this.data, apiResultAuthenticationToken.data) && + Objects.equals(this.errorCode, apiResultAuthenticationToken.errorCode) && + Objects.equals(this.links, apiResultAuthenticationToken.links) && + Objects.equals(this.message, apiResultAuthenticationToken.message) && + Objects.equals(this.responseCode, apiResultAuthenticationToken.responseCode) && + Objects.equals(this.stackTrace, apiResultAuthenticationToken.stackTrace) && + Objects.equals(this.successCount, apiResultAuthenticationToken.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultAuthenticationToken {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugFilingRequirementsResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugFilingRequirementsResponse.java new file mode 100644 index 0000000..33be871 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugFilingRequirementsResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugFilingRequirementsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultBugFilingRequirementsResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultBugFilingRequirementsResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private BugFilingRequirementsResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultBugFilingRequirementsResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultBugFilingRequirementsResponse data(BugFilingRequirementsResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public BugFilingRequirementsResponse getData() { + return data; + } + + public void setData(BugFilingRequirementsResponse data) { + this.data = data; + } + + public ApiResultBugFilingRequirementsResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultBugFilingRequirementsResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultBugFilingRequirementsResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultBugFilingRequirementsResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultBugFilingRequirementsResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultBugFilingRequirementsResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultBugFilingRequirementsResponse apiResultBugFilingRequirementsResponse = (ApiResultBugFilingRequirementsResponse) o; + return Objects.equals(this.count, apiResultBugFilingRequirementsResponse.count) && + Objects.equals(this.data, apiResultBugFilingRequirementsResponse.data) && + Objects.equals(this.errorCode, apiResultBugFilingRequirementsResponse.errorCode) && + Objects.equals(this.links, apiResultBugFilingRequirementsResponse.links) && + Objects.equals(this.message, apiResultBugFilingRequirementsResponse.message) && + Objects.equals(this.responseCode, apiResultBugFilingRequirementsResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultBugFilingRequirementsResponse.stackTrace) && + Objects.equals(this.successCount, apiResultBugFilingRequirementsResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultBugFilingRequirementsResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugfieldTemplateGroupDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugfieldTemplateGroupDto.java new file mode 100644 index 0000000..c117d3a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultBugfieldTemplateGroupDto.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugfieldTemplateGroupDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultBugfieldTemplateGroupDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultBugfieldTemplateGroupDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private BugfieldTemplateGroupDto data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultBugfieldTemplateGroupDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultBugfieldTemplateGroupDto data(BugfieldTemplateGroupDto data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public BugfieldTemplateGroupDto getData() { + return data; + } + + public void setData(BugfieldTemplateGroupDto data) { + this.data = data; + } + + public ApiResultBugfieldTemplateGroupDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultBugfieldTemplateGroupDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultBugfieldTemplateGroupDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultBugfieldTemplateGroupDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultBugfieldTemplateGroupDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultBugfieldTemplateGroupDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultBugfieldTemplateGroupDto apiResultBugfieldTemplateGroupDto = (ApiResultBugfieldTemplateGroupDto) o; + return Objects.equals(this.count, apiResultBugfieldTemplateGroupDto.count) && + Objects.equals(this.data, apiResultBugfieldTemplateGroupDto.data) && + Objects.equals(this.errorCode, apiResultBugfieldTemplateGroupDto.errorCode) && + Objects.equals(this.links, apiResultBugfieldTemplateGroupDto.links) && + Objects.equals(this.message, apiResultBugfieldTemplateGroupDto.message) && + Objects.equals(this.responseCode, apiResultBugfieldTemplateGroupDto.responseCode) && + Objects.equals(this.stackTrace, apiResultBugfieldTemplateGroupDto.stackTrace) && + Objects.equals(this.successCount, apiResultBugfieldTemplateGroupDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultBugfieldTemplateGroupDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudJob.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudJob.java new file mode 100644 index 0000000..e916527 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudJob.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudJob; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudJob + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudJob { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudJob data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudJob count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudJob data(CloudJob data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudJob getData() { + return data; + } + + public void setData(CloudJob data) { + this.data = data; + } + + public ApiResultCloudJob errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudJob links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudJob message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudJob responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudJob stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudJob successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudJob apiResultCloudJob = (ApiResultCloudJob) o; + return Objects.equals(this.count, apiResultCloudJob.count) && + Objects.equals(this.data, apiResultCloudJob.data) && + Objects.equals(this.errorCode, apiResultCloudJob.errorCode) && + Objects.equals(this.links, apiResultCloudJob.links) && + Objects.equals(this.message, apiResultCloudJob.message) && + Objects.equals(this.responseCode, apiResultCloudJob.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudJob.stackTrace) && + Objects.equals(this.successCount, apiResultCloudJob.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudJob {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPool.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPool.java new file mode 100644 index 0000000..c21f4c5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPool.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPool; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudPool + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudPool { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudPool data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudPool count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudPool data(CloudPool data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudPool getData() { + return data; + } + + public void setData(CloudPool data) { + this.data = data; + } + + public ApiResultCloudPool errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudPool links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudPool message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudPool responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudPool stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudPool successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudPool apiResultCloudPool = (ApiResultCloudPool) o; + return Objects.equals(this.count, apiResultCloudPool.count) && + Objects.equals(this.data, apiResultCloudPool.data) && + Objects.equals(this.errorCode, apiResultCloudPool.errorCode) && + Objects.equals(this.links, apiResultCloudPool.links) && + Objects.equals(this.message, apiResultCloudPool.message) && + Objects.equals(this.responseCode, apiResultCloudPool.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudPool.stackTrace) && + Objects.equals(this.successCount, apiResultCloudPool.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudPool {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolMapping.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolMapping.java new file mode 100644 index 0000000..10889bc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolMapping.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPoolMapping; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudPoolMapping + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudPoolMapping { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudPoolMapping data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudPoolMapping count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudPoolMapping data(CloudPoolMapping data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudPoolMapping getData() { + return data; + } + + public void setData(CloudPoolMapping data) { + this.data = data; + } + + public ApiResultCloudPoolMapping errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudPoolMapping links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudPoolMapping message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudPoolMapping responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudPoolMapping stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudPoolMapping successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudPoolMapping apiResultCloudPoolMapping = (ApiResultCloudPoolMapping) o; + return Objects.equals(this.count, apiResultCloudPoolMapping.count) && + Objects.equals(this.data, apiResultCloudPoolMapping.data) && + Objects.equals(this.errorCode, apiResultCloudPoolMapping.errorCode) && + Objects.equals(this.links, apiResultCloudPoolMapping.links) && + Objects.equals(this.message, apiResultCloudPoolMapping.message) && + Objects.equals(this.responseCode, apiResultCloudPoolMapping.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudPoolMapping.stackTrace) && + Objects.equals(this.successCount, apiResultCloudPoolMapping.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudPoolMapping {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolProjectVersionActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolProjectVersionActionResponse.java new file mode 100644 index 0000000..fc4ef45 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolProjectVersionActionResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPoolProjectVersionActionResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudPoolProjectVersionActionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudPoolProjectVersionActionResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudPoolProjectVersionActionResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudPoolProjectVersionActionResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudPoolProjectVersionActionResponse data(CloudPoolProjectVersionActionResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudPoolProjectVersionActionResponse getData() { + return data; + } + + public void setData(CloudPoolProjectVersionActionResponse data) { + this.data = data; + } + + public ApiResultCloudPoolProjectVersionActionResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudPoolProjectVersionActionResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudPoolProjectVersionActionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudPoolProjectVersionActionResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudPoolProjectVersionActionResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudPoolProjectVersionActionResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudPoolProjectVersionActionResponse apiResultCloudPoolProjectVersionActionResponse = (ApiResultCloudPoolProjectVersionActionResponse) o; + return Objects.equals(this.count, apiResultCloudPoolProjectVersionActionResponse.count) && + Objects.equals(this.data, apiResultCloudPoolProjectVersionActionResponse.data) && + Objects.equals(this.errorCode, apiResultCloudPoolProjectVersionActionResponse.errorCode) && + Objects.equals(this.links, apiResultCloudPoolProjectVersionActionResponse.links) && + Objects.equals(this.message, apiResultCloudPoolProjectVersionActionResponse.message) && + Objects.equals(this.responseCode, apiResultCloudPoolProjectVersionActionResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudPoolProjectVersionActionResponse.stackTrace) && + Objects.equals(this.successCount, apiResultCloudPoolProjectVersionActionResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudPoolProjectVersionActionResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolWorkerActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolWorkerActionResponse.java new file mode 100644 index 0000000..ff24ff8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudPoolWorkerActionResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPoolWorkerActionResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudPoolWorkerActionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudPoolWorkerActionResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudPoolWorkerActionResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudPoolWorkerActionResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudPoolWorkerActionResponse data(CloudPoolWorkerActionResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudPoolWorkerActionResponse getData() { + return data; + } + + public void setData(CloudPoolWorkerActionResponse data) { + this.data = data; + } + + public ApiResultCloudPoolWorkerActionResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudPoolWorkerActionResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudPoolWorkerActionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudPoolWorkerActionResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudPoolWorkerActionResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudPoolWorkerActionResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudPoolWorkerActionResponse apiResultCloudPoolWorkerActionResponse = (ApiResultCloudPoolWorkerActionResponse) o; + return Objects.equals(this.count, apiResultCloudPoolWorkerActionResponse.count) && + Objects.equals(this.data, apiResultCloudPoolWorkerActionResponse.data) && + Objects.equals(this.errorCode, apiResultCloudPoolWorkerActionResponse.errorCode) && + Objects.equals(this.links, apiResultCloudPoolWorkerActionResponse.links) && + Objects.equals(this.message, apiResultCloudPoolWorkerActionResponse.message) && + Objects.equals(this.responseCode, apiResultCloudPoolWorkerActionResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudPoolWorkerActionResponse.stackTrace) && + Objects.equals(this.successCount, apiResultCloudPoolWorkerActionResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudPoolWorkerActionResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemMetrics.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemMetrics.java new file mode 100644 index 0000000..1e91160 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemMetrics.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudSystemMetrics; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudSystemMetrics + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudSystemMetrics { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudSystemMetrics data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudSystemMetrics count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudSystemMetrics data(CloudSystemMetrics data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudSystemMetrics getData() { + return data; + } + + public void setData(CloudSystemMetrics data) { + this.data = data; + } + + public ApiResultCloudSystemMetrics errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudSystemMetrics links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudSystemMetrics message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudSystemMetrics responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudSystemMetrics stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudSystemMetrics successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudSystemMetrics apiResultCloudSystemMetrics = (ApiResultCloudSystemMetrics) o; + return Objects.equals(this.count, apiResultCloudSystemMetrics.count) && + Objects.equals(this.data, apiResultCloudSystemMetrics.data) && + Objects.equals(this.errorCode, apiResultCloudSystemMetrics.errorCode) && + Objects.equals(this.links, apiResultCloudSystemMetrics.links) && + Objects.equals(this.message, apiResultCloudSystemMetrics.message) && + Objects.equals(this.responseCode, apiResultCloudSystemMetrics.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudSystemMetrics.stackTrace) && + Objects.equals(this.successCount, apiResultCloudSystemMetrics.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudSystemMetrics {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemPollStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemPollStatus.java new file mode 100644 index 0000000..02e92c5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemPollStatus.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudSystemPollStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudSystemPollStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudSystemPollStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudSystemPollStatus data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudSystemPollStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudSystemPollStatus data(CloudSystemPollStatus data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudSystemPollStatus getData() { + return data; + } + + public void setData(CloudSystemPollStatus data) { + this.data = data; + } + + public ApiResultCloudSystemPollStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudSystemPollStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudSystemPollStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudSystemPollStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudSystemPollStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudSystemPollStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudSystemPollStatus apiResultCloudSystemPollStatus = (ApiResultCloudSystemPollStatus) o; + return Objects.equals(this.count, apiResultCloudSystemPollStatus.count) && + Objects.equals(this.data, apiResultCloudSystemPollStatus.data) && + Objects.equals(this.errorCode, apiResultCloudSystemPollStatus.errorCode) && + Objects.equals(this.links, apiResultCloudSystemPollStatus.links) && + Objects.equals(this.message, apiResultCloudSystemPollStatus.message) && + Objects.equals(this.responseCode, apiResultCloudSystemPollStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudSystemPollStatus.stackTrace) && + Objects.equals(this.successCount, apiResultCloudSystemPollStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudSystemPollStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemSettings.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemSettings.java new file mode 100644 index 0000000..da15955 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudSystemSettings.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudSystemSettings; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudSystemSettings + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudSystemSettings { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudSystemSettings data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudSystemSettings count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudSystemSettings data(CloudSystemSettings data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudSystemSettings getData() { + return data; + } + + public void setData(CloudSystemSettings data) { + this.data = data; + } + + public ApiResultCloudSystemSettings errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudSystemSettings links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudSystemSettings message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudSystemSettings responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudSystemSettings stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudSystemSettings successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudSystemSettings apiResultCloudSystemSettings = (ApiResultCloudSystemSettings) o; + return Objects.equals(this.count, apiResultCloudSystemSettings.count) && + Objects.equals(this.data, apiResultCloudSystemSettings.data) && + Objects.equals(this.errorCode, apiResultCloudSystemSettings.errorCode) && + Objects.equals(this.links, apiResultCloudSystemSettings.links) && + Objects.equals(this.message, apiResultCloudSystemSettings.message) && + Objects.equals(this.responseCode, apiResultCloudSystemSettings.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudSystemSettings.stackTrace) && + Objects.equals(this.successCount, apiResultCloudSystemSettings.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudSystemSettings {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudWorker.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudWorker.java new file mode 100644 index 0000000..7f322f2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCloudWorker.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudWorker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCloudWorker + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCloudWorker { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CloudWorker data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCloudWorker count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCloudWorker data(CloudWorker data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CloudWorker getData() { + return data; + } + + public void setData(CloudWorker data) { + this.data = data; + } + + public ApiResultCloudWorker errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCloudWorker links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCloudWorker message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCloudWorker responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCloudWorker stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCloudWorker successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCloudWorker apiResultCloudWorker = (ApiResultCloudWorker) o; + return Objects.equals(this.count, apiResultCloudWorker.count) && + Objects.equals(this.data, apiResultCloudWorker.data) && + Objects.equals(this.errorCode, apiResultCloudWorker.errorCode) && + Objects.equals(this.links, apiResultCloudWorker.links) && + Objects.equals(this.message, apiResultCloudWorker.message) && + Objects.equals(this.responseCode, apiResultCloudWorker.responseCode) && + Objects.equals(this.stackTrace, apiResultCloudWorker.stackTrace) && + Objects.equals(this.successCount, apiResultCloudWorker.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCloudWorker {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperties.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperties.java new file mode 100644 index 0000000..2a7d669 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperties.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ConfigProperties; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultConfigProperties + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultConfigProperties { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ConfigProperties data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultConfigProperties count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultConfigProperties data(ConfigProperties data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ConfigProperties getData() { + return data; + } + + public void setData(ConfigProperties data) { + this.data = data; + } + + public ApiResultConfigProperties errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultConfigProperties links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultConfigProperties message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultConfigProperties responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultConfigProperties stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultConfigProperties successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultConfigProperties apiResultConfigProperties = (ApiResultConfigProperties) o; + return Objects.equals(this.count, apiResultConfigProperties.count) && + Objects.equals(this.data, apiResultConfigProperties.data) && + Objects.equals(this.errorCode, apiResultConfigProperties.errorCode) && + Objects.equals(this.links, apiResultConfigProperties.links) && + Objects.equals(this.message, apiResultConfigProperties.message) && + Objects.equals(this.responseCode, apiResultConfigProperties.responseCode) && + Objects.equals(this.stackTrace, apiResultConfigProperties.stackTrace) && + Objects.equals(this.successCount, apiResultConfigProperties.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultConfigProperties {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperty.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperty.java new file mode 100644 index 0000000..9572046 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultConfigProperty.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ConfigProperty; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultConfigProperty + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultConfigProperty { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ConfigProperty data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultConfigProperty count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultConfigProperty data(ConfigProperty data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ConfigProperty getData() { + return data; + } + + public void setData(ConfigProperty data) { + this.data = data; + } + + public ApiResultConfigProperty errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultConfigProperty links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultConfigProperty message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultConfigProperty responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultConfigProperty stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultConfigProperty successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultConfigProperty apiResultConfigProperty = (ApiResultConfigProperty) o; + return Objects.equals(this.count, apiResultConfigProperty.count) && + Objects.equals(this.data, apiResultConfigProperty.data) && + Objects.equals(this.errorCode, apiResultConfigProperty.errorCode) && + Objects.equals(this.links, apiResultConfigProperty.links) && + Objects.equals(this.message, apiResultConfigProperty.message) && + Objects.equals(this.responseCode, apiResultConfigProperty.responseCode) && + Objects.equals(this.stackTrace, apiResultConfigProperty.stackTrace) && + Objects.equals(this.successCount, apiResultConfigProperty.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultConfigProperty {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultCustomTag.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCustomTag.java new file mode 100644 index 0000000..e0315a2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultCustomTag.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTag; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultCustomTag + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultCustomTag { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private CustomTag data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultCustomTag count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultCustomTag data(CustomTag data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public CustomTag getData() { + return data; + } + + public void setData(CustomTag data) { + this.data = data; + } + + public ApiResultCustomTag errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultCustomTag links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultCustomTag message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultCustomTag responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultCustomTag stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultCustomTag successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultCustomTag apiResultCustomTag = (ApiResultCustomTag) o; + return Objects.equals(this.count, apiResultCustomTag.count) && + Objects.equals(this.data, apiResultCustomTag.data) && + Objects.equals(this.errorCode, apiResultCustomTag.errorCode) && + Objects.equals(this.links, apiResultCustomTag.links) && + Objects.equals(this.message, apiResultCustomTag.message) && + Objects.equals(this.responseCode, apiResultCustomTag.responseCode) && + Objects.equals(this.stackTrace, apiResultCustomTag.stackTrace) && + Objects.equals(this.successCount, apiResultCustomTag.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultCustomTag {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequest.java new file mode 100644 index 0000000..015a7f2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequest.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequest; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultDynamicScanRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultDynamicScanRequest { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private DynamicScanRequest data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultDynamicScanRequest count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultDynamicScanRequest data(DynamicScanRequest data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public DynamicScanRequest getData() { + return data; + } + + public void setData(DynamicScanRequest data) { + this.data = data; + } + + public ApiResultDynamicScanRequest errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultDynamicScanRequest links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultDynamicScanRequest message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultDynamicScanRequest responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultDynamicScanRequest stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultDynamicScanRequest successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultDynamicScanRequest apiResultDynamicScanRequest = (ApiResultDynamicScanRequest) o; + return Objects.equals(this.count, apiResultDynamicScanRequest.count) && + Objects.equals(this.data, apiResultDynamicScanRequest.data) && + Objects.equals(this.errorCode, apiResultDynamicScanRequest.errorCode) && + Objects.equals(this.links, apiResultDynamicScanRequest.links) && + Objects.equals(this.message, apiResultDynamicScanRequest.message) && + Objects.equals(this.responseCode, apiResultDynamicScanRequest.responseCode) && + Objects.equals(this.stackTrace, apiResultDynamicScanRequest.stackTrace) && + Objects.equals(this.successCount, apiResultDynamicScanRequest.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultDynamicScanRequest {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestTemplate.java new file mode 100644 index 0000000..9588a24 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestTemplate.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequestTemplate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultDynamicScanRequestTemplate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultDynamicScanRequestTemplate { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private DynamicScanRequestTemplate data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultDynamicScanRequestTemplate count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultDynamicScanRequestTemplate data(DynamicScanRequestTemplate data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public DynamicScanRequestTemplate getData() { + return data; + } + + public void setData(DynamicScanRequestTemplate data) { + this.data = data; + } + + public ApiResultDynamicScanRequestTemplate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultDynamicScanRequestTemplate links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultDynamicScanRequestTemplate message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultDynamicScanRequestTemplate responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultDynamicScanRequestTemplate stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultDynamicScanRequestTemplate successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultDynamicScanRequestTemplate apiResultDynamicScanRequestTemplate = (ApiResultDynamicScanRequestTemplate) o; + return Objects.equals(this.count, apiResultDynamicScanRequestTemplate.count) && + Objects.equals(this.data, apiResultDynamicScanRequestTemplate.data) && + Objects.equals(this.errorCode, apiResultDynamicScanRequestTemplate.errorCode) && + Objects.equals(this.links, apiResultDynamicScanRequestTemplate.links) && + Objects.equals(this.message, apiResultDynamicScanRequestTemplate.message) && + Objects.equals(this.responseCode, apiResultDynamicScanRequestTemplate.responseCode) && + Objects.equals(this.stackTrace, apiResultDynamicScanRequestTemplate.stackTrace) && + Objects.equals(this.successCount, apiResultDynamicScanRequestTemplate.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultDynamicScanRequestTemplate {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestsSummary.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestsSummary.java new file mode 100644 index 0000000..27bd054 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultDynamicScanRequestsSummary.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequestsSummary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultDynamicScanRequestsSummary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultDynamicScanRequestsSummary { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private DynamicScanRequestsSummary data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultDynamicScanRequestsSummary count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultDynamicScanRequestsSummary data(DynamicScanRequestsSummary data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public DynamicScanRequestsSummary getData() { + return data; + } + + public void setData(DynamicScanRequestsSummary data) { + this.data = data; + } + + public ApiResultDynamicScanRequestsSummary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultDynamicScanRequestsSummary links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultDynamicScanRequestsSummary message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultDynamicScanRequestsSummary responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultDynamicScanRequestsSummary stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultDynamicScanRequestsSummary successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultDynamicScanRequestsSummary apiResultDynamicScanRequestsSummary = (ApiResultDynamicScanRequestsSummary) o; + return Objects.equals(this.count, apiResultDynamicScanRequestsSummary.count) && + Objects.equals(this.data, apiResultDynamicScanRequestsSummary.data) && + Objects.equals(this.errorCode, apiResultDynamicScanRequestsSummary.errorCode) && + Objects.equals(this.links, apiResultDynamicScanRequestsSummary.links) && + Objects.equals(this.message, apiResultDynamicScanRequestsSummary.message) && + Objects.equals(this.responseCode, apiResultDynamicScanRequestsSummary.responseCode) && + Objects.equals(this.stackTrace, apiResultDynamicScanRequestsSummary.stackTrace) && + Objects.equals(this.successCount, apiResultDynamicScanRequestsSummary.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultDynamicScanRequestsSummary {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultFeature.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFeature.java new file mode 100644 index 0000000..8a0e6e2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFeature.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Feature; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultFeature + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultFeature { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Feature data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultFeature count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultFeature data(Feature data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Feature getData() { + return data; + } + + public void setData(Feature data) { + this.data = data; + } + + public ApiResultFeature errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultFeature links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultFeature message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultFeature responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultFeature stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultFeature successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultFeature apiResultFeature = (ApiResultFeature) o; + return Objects.equals(this.count, apiResultFeature.count) && + Objects.equals(this.data, apiResultFeature.data) && + Objects.equals(this.errorCode, apiResultFeature.errorCode) && + Objects.equals(this.links, apiResultFeature.links) && + Objects.equals(this.message, apiResultFeature.message) && + Objects.equals(this.responseCode, apiResultFeature.responseCode) && + Objects.equals(this.stackTrace, apiResultFeature.stackTrace) && + Objects.equals(this.successCount, apiResultFeature.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultFeature {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultFileToken.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFileToken.java new file mode 100644 index 0000000..4f08e96 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFileToken.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.FileToken; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultFileToken + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultFileToken { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private FileToken data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultFileToken count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultFileToken data(FileToken data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public FileToken getData() { + return data; + } + + public void setData(FileToken data) { + this.data = data; + } + + public ApiResultFileToken errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultFileToken links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultFileToken message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultFileToken responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultFileToken stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultFileToken successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultFileToken apiResultFileToken = (ApiResultFileToken) o; + return Objects.equals(this.count, apiResultFileToken.count) && + Objects.equals(this.data, apiResultFileToken.data) && + Objects.equals(this.errorCode, apiResultFileToken.errorCode) && + Objects.equals(this.links, apiResultFileToken.links) && + Objects.equals(this.message, apiResultFileToken.message) && + Objects.equals(this.responseCode, apiResultFileToken.responseCode) && + Objects.equals(this.stackTrace, apiResultFileToken.stackTrace) && + Objects.equals(this.successCount, apiResultFileToken.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultFileToken {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultFolder.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFolder.java new file mode 100644 index 0000000..9bda665 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultFolder.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Folder; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultFolder + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultFolder { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Folder data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultFolder count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultFolder data(Folder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Folder getData() { + return data; + } + + public void setData(Folder data) { + this.data = data; + } + + public ApiResultFolder errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultFolder links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultFolder message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultFolder responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultFolder stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultFolder successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultFolder apiResultFolder = (ApiResultFolder) o; + return Objects.equals(this.count, apiResultFolder.count) && + Objects.equals(this.data, apiResultFolder.data) && + Objects.equals(this.errorCode, apiResultFolder.errorCode) && + Objects.equals(this.links, apiResultFolder.links) && + Objects.equals(this.message, apiResultFolder.message) && + Objects.equals(this.responseCode, apiResultFolder.responseCode) && + Objects.equals(this.stackTrace, apiResultFolder.stackTrace) && + Objects.equals(this.successCount, apiResultFolder.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultFolder {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIIDMigration.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIIDMigration.java new file mode 100644 index 0000000..d686ab7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIIDMigration.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IIDMigration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIIDMigration + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIIDMigration { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IIDMigration data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIIDMigration count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIIDMigration data(IIDMigration data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IIDMigration getData() { + return data; + } + + public void setData(IIDMigration data) { + this.data = data; + } + + public ApiResultIIDMigration errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIIDMigration links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIIDMigration message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIIDMigration responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIIDMigration stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIIDMigration successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIIDMigration apiResultIIDMigration = (ApiResultIIDMigration) o; + return Objects.equals(this.count, apiResultIIDMigration.count) && + Objects.equals(this.data, apiResultIIDMigration.data) && + Objects.equals(this.errorCode, apiResultIIDMigration.errorCode) && + Objects.equals(this.links, apiResultIIDMigration.links) && + Objects.equals(this.message, apiResultIIDMigration.message) && + Objects.equals(this.responseCode, apiResultIIDMigration.responseCode) && + Objects.equals(this.stackTrace, apiResultIIDMigration.stackTrace) && + Objects.equals(this.successCount, apiResultIIDMigration.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIIDMigration {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueActionResponse.java new file mode 100644 index 0000000..87b9188 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueActionResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueActionResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueActionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueActionResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueActionResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueActionResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueActionResponse data(IssueActionResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueActionResponse getData() { + return data; + } + + public void setData(IssueActionResponse data) { + this.data = data; + } + + public ApiResultIssueActionResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueActionResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueActionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueActionResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueActionResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueActionResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueActionResponse apiResultIssueActionResponse = (ApiResultIssueActionResponse) o; + return Objects.equals(this.count, apiResultIssueActionResponse.count) && + Objects.equals(this.data, apiResultIssueActionResponse.data) && + Objects.equals(this.errorCode, apiResultIssueActionResponse.errorCode) && + Objects.equals(this.links, apiResultIssueActionResponse.links) && + Objects.equals(this.message, apiResultIssueActionResponse.message) && + Objects.equals(this.responseCode, apiResultIssueActionResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueActionResponse.stackTrace) && + Objects.equals(this.successCount, apiResultIssueActionResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueActionResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAgingPortlet.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAgingPortlet.java new file mode 100644 index 0000000..3b424eb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAgingPortlet.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAgingPortlet; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueAgingPortlet + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueAgingPortlet { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueAgingPortlet data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueAgingPortlet count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueAgingPortlet data(IssueAgingPortlet data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueAgingPortlet getData() { + return data; + } + + public void setData(IssueAgingPortlet data) { + this.data = data; + } + + public ApiResultIssueAgingPortlet errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueAgingPortlet links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueAgingPortlet message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueAgingPortlet responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueAgingPortlet stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueAgingPortlet successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueAgingPortlet apiResultIssueAgingPortlet = (ApiResultIssueAgingPortlet) o; + return Objects.equals(this.count, apiResultIssueAgingPortlet.count) && + Objects.equals(this.data, apiResultIssueAgingPortlet.data) && + Objects.equals(this.errorCode, apiResultIssueAgingPortlet.errorCode) && + Objects.equals(this.links, apiResultIssueAgingPortlet.links) && + Objects.equals(this.message, apiResultIssueAgingPortlet.message) && + Objects.equals(this.responseCode, apiResultIssueAgingPortlet.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueAgingPortlet.stackTrace) && + Objects.equals(this.successCount, apiResultIssueAgingPortlet.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueAgingPortlet {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAssignment.java new file mode 100644 index 0000000..dea1a86 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAssignment.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAssignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueAssignment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueAssignment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueAssignment data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueAssignment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueAssignment data(IssueAssignment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueAssignment getData() { + return data; + } + + public void setData(IssueAssignment data) { + this.data = data; + } + + public ApiResultIssueAssignment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueAssignment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueAssignment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueAssignment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueAssignment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueAssignment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueAssignment apiResultIssueAssignment = (ApiResultIssueAssignment) o; + return Objects.equals(this.count, apiResultIssueAssignment.count) && + Objects.equals(this.data, apiResultIssueAssignment.data) && + Objects.equals(this.errorCode, apiResultIssueAssignment.errorCode) && + Objects.equals(this.links, apiResultIssueAssignment.links) && + Objects.equals(this.message, apiResultIssueAssignment.message) && + Objects.equals(this.responseCode, apiResultIssueAssignment.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueAssignment.stackTrace) && + Objects.equals(this.successCount, apiResultIssueAssignment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueAssignment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAttachment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAttachment.java new file mode 100644 index 0000000..480e8d7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAttachment.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAttachment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueAttachment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueAttachment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueAttachment data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueAttachment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueAttachment data(IssueAttachment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueAttachment getData() { + return data; + } + + public void setData(IssueAttachment data) { + this.data = data; + } + + public ApiResultIssueAttachment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueAttachment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueAttachment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueAttachment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueAttachment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueAttachment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueAttachment apiResultIssueAttachment = (ApiResultIssueAttachment) o; + return Objects.equals(this.count, apiResultIssueAttachment.count) && + Objects.equals(this.data, apiResultIssueAttachment.data) && + Objects.equals(this.errorCode, apiResultIssueAttachment.errorCode) && + Objects.equals(this.links, apiResultIssueAttachment.links) && + Objects.equals(this.message, apiResultIssueAttachment.message) && + Objects.equals(this.responseCode, apiResultIssueAttachment.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueAttachment.stackTrace) && + Objects.equals(this.successCount, apiResultIssueAttachment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueAttachment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAuditComment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAuditComment.java new file mode 100644 index 0000000..0d3d8c0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueAuditComment.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAuditComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueAuditComment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueAuditComment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueAuditComment data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueAuditComment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueAuditComment data(IssueAuditComment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueAuditComment getData() { + return data; + } + + public void setData(IssueAuditComment data) { + this.data = data; + } + + public ApiResultIssueAuditComment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueAuditComment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueAuditComment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueAuditComment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueAuditComment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueAuditComment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueAuditComment apiResultIssueAuditComment = (ApiResultIssueAuditComment) o; + return Objects.equals(this.count, apiResultIssueAuditComment.count) && + Objects.equals(this.data, apiResultIssueAuditComment.data) && + Objects.equals(this.errorCode, apiResultIssueAuditComment.errorCode) && + Objects.equals(this.links, apiResultIssueAuditComment.links) && + Objects.equals(this.message, apiResultIssueAuditComment.message) && + Objects.equals(this.responseCode, apiResultIssueAuditComment.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueAuditComment.stackTrace) && + Objects.equals(this.successCount, apiResultIssueAuditComment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueAuditComment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFileBugResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFileBugResponse.java new file mode 100644 index 0000000..1cbff12 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFileBugResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueFileBugResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueFileBugResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueFileBugResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueFileBugResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueFileBugResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueFileBugResponse data(IssueFileBugResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueFileBugResponse getData() { + return data; + } + + public void setData(IssueFileBugResponse data) { + this.data = data; + } + + public ApiResultIssueFileBugResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueFileBugResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueFileBugResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueFileBugResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueFileBugResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueFileBugResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueFileBugResponse apiResultIssueFileBugResponse = (ApiResultIssueFileBugResponse) o; + return Objects.equals(this.count, apiResultIssueFileBugResponse.count) && + Objects.equals(this.data, apiResultIssueFileBugResponse.data) && + Objects.equals(this.errorCode, apiResultIssueFileBugResponse.errorCode) && + Objects.equals(this.links, apiResultIssueFileBugResponse.links) && + Objects.equals(this.message, apiResultIssueFileBugResponse.message) && + Objects.equals(this.responseCode, apiResultIssueFileBugResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueFileBugResponse.stackTrace) && + Objects.equals(this.successCount, apiResultIssueFileBugResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueFileBugResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFilterSelectorSet.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFilterSelectorSet.java new file mode 100644 index 0000000..3e1438c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueFilterSelectorSet.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueFilterSelectorSet; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueFilterSelectorSet + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueFilterSelectorSet { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueFilterSelectorSet data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueFilterSelectorSet count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueFilterSelectorSet data(IssueFilterSelectorSet data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueFilterSelectorSet getData() { + return data; + } + + public void setData(IssueFilterSelectorSet data) { + this.data = data; + } + + public ApiResultIssueFilterSelectorSet errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueFilterSelectorSet links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueFilterSelectorSet message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueFilterSelectorSet responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueFilterSelectorSet stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueFilterSelectorSet successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueFilterSelectorSet apiResultIssueFilterSelectorSet = (ApiResultIssueFilterSelectorSet) o; + return Objects.equals(this.count, apiResultIssueFilterSelectorSet.count) && + Objects.equals(this.data, apiResultIssueFilterSelectorSet.data) && + Objects.equals(this.errorCode, apiResultIssueFilterSelectorSet.errorCode) && + Objects.equals(this.links, apiResultIssueFilterSelectorSet.links) && + Objects.equals(this.message, apiResultIssueFilterSelectorSet.message) && + Objects.equals(this.responseCode, apiResultIssueFilterSelectorSet.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueFilterSelectorSet.stackTrace) && + Objects.equals(this.successCount, apiResultIssueFilterSelectorSet.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueFilterSelectorSet {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueSearchOption.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueSearchOption.java new file mode 100644 index 0000000..44d7dc5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueSearchOption.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueSearchOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueSearchOption + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueSearchOption { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueSearchOption data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueSearchOption count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueSearchOption data(IssueSearchOption data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueSearchOption getData() { + return data; + } + + public void setData(IssueSearchOption data) { + this.data = data; + } + + public ApiResultIssueSearchOption errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueSearchOption links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueSearchOption message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueSearchOption responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueSearchOption stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueSearchOption successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueSearchOption apiResultIssueSearchOption = (ApiResultIssueSearchOption) o; + return Objects.equals(this.count, apiResultIssueSearchOption.count) && + Objects.equals(this.data, apiResultIssueSearchOption.data) && + Objects.equals(this.errorCode, apiResultIssueSearchOption.errorCode) && + Objects.equals(this.links, apiResultIssueSearchOption.links) && + Objects.equals(this.message, apiResultIssueSearchOption.message) && + Objects.equals(this.responseCode, apiResultIssueSearchOption.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueSearchOption.stackTrace) && + Objects.equals(this.successCount, apiResultIssueSearchOption.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueSearchOption {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueTemplate.java new file mode 100644 index 0000000..8670f4d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueTemplate.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueTemplate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueTemplate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueTemplate { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueTemplate data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueTemplate count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueTemplate data(IssueTemplate data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueTemplate getData() { + return data; + } + + public void setData(IssueTemplate data) { + this.data = data; + } + + public ApiResultIssueTemplate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueTemplate links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueTemplate message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueTemplate responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueTemplate stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueTemplate successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueTemplate apiResultIssueTemplate = (ApiResultIssueTemplate) o; + return Objects.equals(this.count, apiResultIssueTemplate.count) && + Objects.equals(this.data, apiResultIssueTemplate.data) && + Objects.equals(this.errorCode, apiResultIssueTemplate.errorCode) && + Objects.equals(this.links, apiResultIssueTemplate.links) && + Objects.equals(this.message, apiResultIssueTemplate.message) && + Objects.equals(this.responseCode, apiResultIssueTemplate.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueTemplate.stackTrace) && + Objects.equals(this.successCount, apiResultIssueTemplate.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueTemplate {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueViewTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueViewTemplate.java new file mode 100644 index 0000000..96aab20 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultIssueViewTemplate.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueViewTemplate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultIssueViewTemplate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultIssueViewTemplate { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private IssueViewTemplate data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultIssueViewTemplate count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultIssueViewTemplate data(IssueViewTemplate data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public IssueViewTemplate getData() { + return data; + } + + public void setData(IssueViewTemplate data) { + this.data = data; + } + + public ApiResultIssueViewTemplate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultIssueViewTemplate links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultIssueViewTemplate message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultIssueViewTemplate responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultIssueViewTemplate stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultIssueViewTemplate successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultIssueViewTemplate apiResultIssueViewTemplate = (ApiResultIssueViewTemplate) o; + return Objects.equals(this.count, apiResultIssueViewTemplate.count) && + Objects.equals(this.data, apiResultIssueViewTemplate.data) && + Objects.equals(this.errorCode, apiResultIssueViewTemplate.errorCode) && + Objects.equals(this.links, apiResultIssueViewTemplate.links) && + Objects.equals(this.message, apiResultIssueViewTemplate.message) && + Objects.equals(this.responseCode, apiResultIssueViewTemplate.responseCode) && + Objects.equals(this.stackTrace, apiResultIssueViewTemplate.stackTrace) && + Objects.equals(this.successCount, apiResultIssueViewTemplate.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultIssueViewTemplate {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultJob.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultJob.java new file mode 100644 index 0000000..481514e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultJob.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Job; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultJob + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultJob { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Job data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultJob count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultJob data(Job data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Job getData() { + return data; + } + + public void setData(Job data) { + this.data = data; + } + + public ApiResultJob errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultJob links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultJob message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultJob responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultJob stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultJob successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultJob apiResultJob = (ApiResultJob) o; + return Objects.equals(this.count, apiResultJob.count) && + Objects.equals(this.data, apiResultJob.data) && + Objects.equals(this.errorCode, apiResultJob.errorCode) && + Objects.equals(this.links, apiResultJob.links) && + Objects.equals(this.message, apiResultJob.message) && + Objects.equals(this.responseCode, apiResultJob.responseCode) && + Objects.equals(this.stackTrace, apiResultJob.stackTrace) && + Objects.equals(this.successCount, apiResultJob.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultJob {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultLDAPEntity.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLDAPEntity.java new file mode 100644 index 0000000..522e204 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLDAPEntity.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LDAPEntity; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultLDAPEntity + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultLDAPEntity { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private LDAPEntity data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultLDAPEntity count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultLDAPEntity data(LDAPEntity data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public LDAPEntity getData() { + return data; + } + + public void setData(LDAPEntity data) { + this.data = data; + } + + public ApiResultLDAPEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultLDAPEntity links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultLDAPEntity message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultLDAPEntity responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultLDAPEntity stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultLDAPEntity successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultLDAPEntity apiResultLDAPEntity = (ApiResultLDAPEntity) o; + return Objects.equals(this.count, apiResultLDAPEntity.count) && + Objects.equals(this.data, apiResultLDAPEntity.data) && + Objects.equals(this.errorCode, apiResultLDAPEntity.errorCode) && + Objects.equals(this.links, apiResultLDAPEntity.links) && + Objects.equals(this.message, apiResultLDAPEntity.message) && + Objects.equals(this.responseCode, apiResultLDAPEntity.responseCode) && + Objects.equals(this.stackTrace, apiResultLDAPEntity.stackTrace) && + Objects.equals(this.successCount, apiResultLDAPEntity.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultLDAPEntity {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapRefreshResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapRefreshResponse.java new file mode 100644 index 0000000..71605b6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapRefreshResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LdapRefreshResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultLdapRefreshResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultLdapRefreshResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private LdapRefreshResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultLdapRefreshResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultLdapRefreshResponse data(LdapRefreshResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public LdapRefreshResponse getData() { + return data; + } + + public void setData(LdapRefreshResponse data) { + this.data = data; + } + + public ApiResultLdapRefreshResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultLdapRefreshResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultLdapRefreshResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultLdapRefreshResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultLdapRefreshResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultLdapRefreshResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultLdapRefreshResponse apiResultLdapRefreshResponse = (ApiResultLdapRefreshResponse) o; + return Objects.equals(this.count, apiResultLdapRefreshResponse.count) && + Objects.equals(this.data, apiResultLdapRefreshResponse.data) && + Objects.equals(this.errorCode, apiResultLdapRefreshResponse.errorCode) && + Objects.equals(this.links, apiResultLdapRefreshResponse.links) && + Objects.equals(this.message, apiResultLdapRefreshResponse.message) && + Objects.equals(this.responseCode, apiResultLdapRefreshResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultLdapRefreshResponse.stackTrace) && + Objects.equals(this.successCount, apiResultLdapRefreshResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultLdapRefreshResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapServerDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapServerDto.java new file mode 100644 index 0000000..0949397 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLdapServerDto.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LdapServerDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultLdapServerDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultLdapServerDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private LdapServerDto data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultLdapServerDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultLdapServerDto data(LdapServerDto data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public LdapServerDto getData() { + return data; + } + + public void setData(LdapServerDto data) { + this.data = data; + } + + public ApiResultLdapServerDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultLdapServerDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultLdapServerDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultLdapServerDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultLdapServerDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultLdapServerDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultLdapServerDto apiResultLdapServerDto = (ApiResultLdapServerDto) o; + return Objects.equals(this.count, apiResultLdapServerDto.count) && + Objects.equals(this.data, apiResultLdapServerDto.data) && + Objects.equals(this.errorCode, apiResultLdapServerDto.errorCode) && + Objects.equals(this.links, apiResultLdapServerDto.links) && + Objects.equals(this.message, apiResultLdapServerDto.message) && + Objects.equals(this.responseCode, apiResultLdapServerDto.responseCode) && + Objects.equals(this.stackTrace, apiResultLdapServerDto.stackTrace) && + Objects.equals(this.successCount, apiResultLdapServerDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultLdapServerDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultLicense.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLicense.java new file mode 100644 index 0000000..3ceb9a6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLicense.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.License; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultLicense + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultLicense { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private License data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultLicense count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultLicense data(License data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public License getData() { + return data; + } + + public void setData(License data) { + this.data = data; + } + + public ApiResultLicense errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultLicense links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultLicense message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultLicense responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultLicense stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultLicense successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultLicense apiResultLicense = (ApiResultLicense) o; + return Objects.equals(this.count, apiResultLicense.count) && + Objects.equals(this.data, apiResultLicense.data) && + Objects.equals(this.errorCode, apiResultLicense.errorCode) && + Objects.equals(this.links, apiResultLicense.links) && + Objects.equals(this.message, apiResultLicense.message) && + Objects.equals(this.responseCode, apiResultLicense.responseCode) && + Objects.equals(this.stackTrace, apiResultLicense.stackTrace) && + Objects.equals(this.successCount, apiResultLicense.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultLicense {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAATrainingStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAATrainingStatus.java new file mode 100644 index 0000000..354ff05 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAATrainingStatus.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AATrainingStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAATrainingStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAATrainingStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAATrainingStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAATrainingStatus data(List data) { + this.data = data; + return this; + } + + public ApiResultListAATrainingStatus addDataItem(AATrainingStatus dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAATrainingStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAATrainingStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAATrainingStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAATrainingStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAATrainingStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAATrainingStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAATrainingStatus apiResultListAATrainingStatus = (ApiResultListAATrainingStatus) o; + return Objects.equals(this.count, apiResultListAATrainingStatus.count) && + Objects.equals(this.data, apiResultListAATrainingStatus.data) && + Objects.equals(this.errorCode, apiResultListAATrainingStatus.errorCode) && + Objects.equals(this.links, apiResultListAATrainingStatus.links) && + Objects.equals(this.message, apiResultListAATrainingStatus.message) && + Objects.equals(this.responseCode, apiResultListAATrainingStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultListAATrainingStatus.stackTrace) && + Objects.equals(this.successCount, apiResultListAATrainingStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAATrainingStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListActivityFeed.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListActivityFeed.java new file mode 100644 index 0000000..a2e29b8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListActivityFeed.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ActivityFeed; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListActivityFeed + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListActivityFeed { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListActivityFeed count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListActivityFeed data(List data) { + this.data = data; + return this; + } + + public ApiResultListActivityFeed addDataItem(ActivityFeed dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListActivityFeed errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListActivityFeed links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListActivityFeed message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListActivityFeed responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListActivityFeed stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListActivityFeed successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListActivityFeed apiResultListActivityFeed = (ApiResultListActivityFeed) o; + return Objects.equals(this.count, apiResultListActivityFeed.count) && + Objects.equals(this.data, apiResultListActivityFeed.data) && + Objects.equals(this.errorCode, apiResultListActivityFeed.errorCode) && + Objects.equals(this.links, apiResultListActivityFeed.links) && + Objects.equals(this.message, apiResultListActivityFeed.message) && + Objects.equals(this.responseCode, apiResultListActivityFeed.responseCode) && + Objects.equals(this.stackTrace, apiResultListActivityFeed.stackTrace) && + Objects.equals(this.successCount, apiResultListActivityFeed.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListActivityFeed {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertDefinitionDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertDefinitionDto.java new file mode 100644 index 0000000..5563331 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertDefinitionDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AlertDefinitionDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAlertDefinitionDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAlertDefinitionDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAlertDefinitionDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAlertDefinitionDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListAlertDefinitionDto addDataItem(AlertDefinitionDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAlertDefinitionDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAlertDefinitionDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAlertDefinitionDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAlertDefinitionDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAlertDefinitionDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAlertDefinitionDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAlertDefinitionDto apiResultListAlertDefinitionDto = (ApiResultListAlertDefinitionDto) o; + return Objects.equals(this.count, apiResultListAlertDefinitionDto.count) && + Objects.equals(this.data, apiResultListAlertDefinitionDto.data) && + Objects.equals(this.errorCode, apiResultListAlertDefinitionDto.errorCode) && + Objects.equals(this.links, apiResultListAlertDefinitionDto.links) && + Objects.equals(this.message, apiResultListAlertDefinitionDto.message) && + Objects.equals(this.responseCode, apiResultListAlertDefinitionDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListAlertDefinitionDto.stackTrace) && + Objects.equals(this.successCount, apiResultListAlertDefinitionDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAlertDefinitionDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertHistoryEntry.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertHistoryEntry.java new file mode 100644 index 0000000..1a89b80 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertHistoryEntry.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AlertHistoryEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAlertHistoryEntry + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAlertHistoryEntry { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAlertHistoryEntry count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAlertHistoryEntry data(List data) { + this.data = data; + return this; + } + + public ApiResultListAlertHistoryEntry addDataItem(AlertHistoryEntry dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAlertHistoryEntry errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAlertHistoryEntry links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAlertHistoryEntry message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAlertHistoryEntry responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAlertHistoryEntry stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAlertHistoryEntry successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAlertHistoryEntry apiResultListAlertHistoryEntry = (ApiResultListAlertHistoryEntry) o; + return Objects.equals(this.count, apiResultListAlertHistoryEntry.count) && + Objects.equals(this.data, apiResultListAlertHistoryEntry.data) && + Objects.equals(this.errorCode, apiResultListAlertHistoryEntry.errorCode) && + Objects.equals(this.links, apiResultListAlertHistoryEntry.links) && + Objects.equals(this.message, apiResultListAlertHistoryEntry.message) && + Objects.equals(this.responseCode, apiResultListAlertHistoryEntry.responseCode) && + Objects.equals(this.stackTrace, apiResultListAlertHistoryEntry.stackTrace) && + Objects.equals(this.successCount, apiResultListAlertHistoryEntry.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAlertHistoryEntry {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertableEventType.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertableEventType.java new file mode 100644 index 0000000..934fe2a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAlertableEventType.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AlertableEventType; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAlertableEventType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAlertableEventType { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAlertableEventType count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAlertableEventType data(List data) { + this.data = data; + return this; + } + + public ApiResultListAlertableEventType addDataItem(AlertableEventType dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAlertableEventType errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAlertableEventType links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAlertableEventType message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAlertableEventType responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAlertableEventType stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAlertableEventType successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAlertableEventType apiResultListAlertableEventType = (ApiResultListAlertableEventType) o; + return Objects.equals(this.count, apiResultListAlertableEventType.count) && + Objects.equals(this.data, apiResultListAlertableEventType.data) && + Objects.equals(this.errorCode, apiResultListAlertableEventType.errorCode) && + Objects.equals(this.links, apiResultListAlertableEventType.links) && + Objects.equals(this.message, apiResultListAlertableEventType.message) && + Objects.equals(this.responseCode, apiResultListAlertableEventType.responseCode) && + Objects.equals(this.stackTrace, apiResultListAlertableEventType.stackTrace) && + Objects.equals(this.successCount, apiResultListAlertableEventType.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAlertableEventType {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListArtifact.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListArtifact.java new file mode 100644 index 0000000..e79e75c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListArtifact.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Artifact; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListArtifact + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListArtifact { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListArtifact count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListArtifact data(List data) { + this.data = data; + return this; + } + + public ApiResultListArtifact addDataItem(Artifact dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListArtifact errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListArtifact links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListArtifact message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListArtifact responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListArtifact stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListArtifact successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListArtifact apiResultListArtifact = (ApiResultListArtifact) o; + return Objects.equals(this.count, apiResultListArtifact.count) && + Objects.equals(this.data, apiResultListArtifact.data) && + Objects.equals(this.errorCode, apiResultListArtifact.errorCode) && + Objects.equals(this.links, apiResultListArtifact.links) && + Objects.equals(this.message, apiResultListArtifact.message) && + Objects.equals(this.responseCode, apiResultListArtifact.responseCode) && + Objects.equals(this.stackTrace, apiResultListArtifact.stackTrace) && + Objects.equals(this.successCount, apiResultListArtifact.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListArtifact {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttribute.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttribute.java new file mode 100644 index 0000000..b3c71c8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttribute.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Attribute; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAttribute + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAttribute { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAttribute count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAttribute data(List data) { + this.data = data; + return this; + } + + public ApiResultListAttribute addDataItem(Attribute dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAttribute errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAttribute links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAttribute message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAttribute responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAttribute stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAttribute successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAttribute apiResultListAttribute = (ApiResultListAttribute) o; + return Objects.equals(this.count, apiResultListAttribute.count) && + Objects.equals(this.data, apiResultListAttribute.data) && + Objects.equals(this.errorCode, apiResultListAttribute.errorCode) && + Objects.equals(this.links, apiResultListAttribute.links) && + Objects.equals(this.message, apiResultListAttribute.message) && + Objects.equals(this.responseCode, apiResultListAttribute.responseCode) && + Objects.equals(this.stackTrace, apiResultListAttribute.stackTrace) && + Objects.equals(this.successCount, apiResultListAttribute.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAttribute {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttributeDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttributeDefinition.java new file mode 100644 index 0000000..67a514b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAttributeDefinition.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AttributeDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAttributeDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAttributeDefinition { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAttributeDefinition count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAttributeDefinition data(List data) { + this.data = data; + return this; + } + + public ApiResultListAttributeDefinition addDataItem(AttributeDefinition dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAttributeDefinition errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAttributeDefinition links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAttributeDefinition message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAttributeDefinition responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAttributeDefinition stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAttributeDefinition successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAttributeDefinition apiResultListAttributeDefinition = (ApiResultListAttributeDefinition) o; + return Objects.equals(this.count, apiResultListAttributeDefinition.count) && + Objects.equals(this.data, apiResultListAttributeDefinition.data) && + Objects.equals(this.errorCode, apiResultListAttributeDefinition.errorCode) && + Objects.equals(this.links, apiResultListAttributeDefinition.links) && + Objects.equals(this.message, apiResultListAttributeDefinition.message) && + Objects.equals(this.responseCode, apiResultListAttributeDefinition.responseCode) && + Objects.equals(this.stackTrace, apiResultListAttributeDefinition.stackTrace) && + Objects.equals(this.successCount, apiResultListAttributeDefinition.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAttributeDefinition {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuditAssistantStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuditAssistantStatus.java new file mode 100644 index 0000000..c947786 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuditAssistantStatus.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuditAssistantStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAuditAssistantStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAuditAssistantStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAuditAssistantStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAuditAssistantStatus data(List data) { + this.data = data; + return this; + } + + public ApiResultListAuditAssistantStatus addDataItem(AuditAssistantStatus dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAuditAssistantStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAuditAssistantStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAuditAssistantStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAuditAssistantStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAuditAssistantStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAuditAssistantStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAuditAssistantStatus apiResultListAuditAssistantStatus = (ApiResultListAuditAssistantStatus) o; + return Objects.equals(this.count, apiResultListAuditAssistantStatus.count) && + Objects.equals(this.data, apiResultListAuditAssistantStatus.data) && + Objects.equals(this.errorCode, apiResultListAuditAssistantStatus.errorCode) && + Objects.equals(this.links, apiResultListAuditAssistantStatus.links) && + Objects.equals(this.message, apiResultListAuditAssistantStatus.message) && + Objects.equals(this.responseCode, apiResultListAuditAssistantStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultListAuditAssistantStatus.stackTrace) && + Objects.equals(this.successCount, apiResultListAuditAssistantStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAuditAssistantStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationEntity.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationEntity.java new file mode 100644 index 0000000..72a1ba8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationEntity.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuthenticationEntity; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAuthenticationEntity + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAuthenticationEntity { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAuthenticationEntity count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAuthenticationEntity data(List data) { + this.data = data; + return this; + } + + public ApiResultListAuthenticationEntity addDataItem(AuthenticationEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAuthenticationEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAuthenticationEntity links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAuthenticationEntity message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAuthenticationEntity responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAuthenticationEntity stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAuthenticationEntity successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAuthenticationEntity apiResultListAuthenticationEntity = (ApiResultListAuthenticationEntity) o; + return Objects.equals(this.count, apiResultListAuthenticationEntity.count) && + Objects.equals(this.data, apiResultListAuthenticationEntity.data) && + Objects.equals(this.errorCode, apiResultListAuthenticationEntity.errorCode) && + Objects.equals(this.links, apiResultListAuthenticationEntity.links) && + Objects.equals(this.message, apiResultListAuthenticationEntity.message) && + Objects.equals(this.responseCode, apiResultListAuthenticationEntity.responseCode) && + Objects.equals(this.stackTrace, apiResultListAuthenticationEntity.stackTrace) && + Objects.equals(this.successCount, apiResultListAuthenticationEntity.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAuthenticationEntity {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationToken.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationToken.java new file mode 100644 index 0000000..7161e3a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListAuthenticationToken.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AuthenticationToken; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListAuthenticationToken + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListAuthenticationToken { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListAuthenticationToken count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListAuthenticationToken data(List data) { + this.data = data; + return this; + } + + public ApiResultListAuthenticationToken addDataItem(AuthenticationToken dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListAuthenticationToken errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListAuthenticationToken links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListAuthenticationToken message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListAuthenticationToken responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListAuthenticationToken stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListAuthenticationToken successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListAuthenticationToken apiResultListAuthenticationToken = (ApiResultListAuthenticationToken) o; + return Objects.equals(this.count, apiResultListAuthenticationToken.count) && + Objects.equals(this.data, apiResultListAuthenticationToken.data) && + Objects.equals(this.errorCode, apiResultListAuthenticationToken.errorCode) && + Objects.equals(this.links, apiResultListAuthenticationToken.links) && + Objects.equals(this.message, apiResultListAuthenticationToken.message) && + Objects.equals(this.responseCode, apiResultListAuthenticationToken.responseCode) && + Objects.equals(this.stackTrace, apiResultListAuthenticationToken.stackTrace) && + Objects.equals(this.successCount, apiResultListAuthenticationToken.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListAuthenticationToken {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugFilingRequirements.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugFilingRequirements.java new file mode 100644 index 0000000..7572640 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugFilingRequirements.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugFilingRequirements; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListBugFilingRequirements + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListBugFilingRequirements { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListBugFilingRequirements count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListBugFilingRequirements data(List data) { + this.data = data; + return this; + } + + public ApiResultListBugFilingRequirements addDataItem(BugFilingRequirements dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListBugFilingRequirements errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListBugFilingRequirements links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListBugFilingRequirements message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListBugFilingRequirements responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListBugFilingRequirements stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListBugFilingRequirements successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListBugFilingRequirements apiResultListBugFilingRequirements = (ApiResultListBugFilingRequirements) o; + return Objects.equals(this.count, apiResultListBugFilingRequirements.count) && + Objects.equals(this.data, apiResultListBugFilingRequirements.data) && + Objects.equals(this.errorCode, apiResultListBugFilingRequirements.errorCode) && + Objects.equals(this.links, apiResultListBugFilingRequirements.links) && + Objects.equals(this.message, apiResultListBugFilingRequirements.message) && + Objects.equals(this.responseCode, apiResultListBugFilingRequirements.responseCode) && + Objects.equals(this.stackTrace, apiResultListBugFilingRequirements.stackTrace) && + Objects.equals(this.successCount, apiResultListBugFilingRequirements.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListBugFilingRequirements {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugTracker.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugTracker.java new file mode 100644 index 0000000..6d94382 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugTracker.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugTracker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListBugTracker + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListBugTracker { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListBugTracker count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListBugTracker data(List data) { + this.data = data; + return this; + } + + public ApiResultListBugTracker addDataItem(BugTracker dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListBugTracker errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListBugTracker links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListBugTracker message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListBugTracker responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListBugTracker stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListBugTracker successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListBugTracker apiResultListBugTracker = (ApiResultListBugTracker) o; + return Objects.equals(this.count, apiResultListBugTracker.count) && + Objects.equals(this.data, apiResultListBugTracker.data) && + Objects.equals(this.errorCode, apiResultListBugTracker.errorCode) && + Objects.equals(this.links, apiResultListBugTracker.links) && + Objects.equals(this.message, apiResultListBugTracker.message) && + Objects.equals(this.responseCode, apiResultListBugTracker.responseCode) && + Objects.equals(this.stackTrace, apiResultListBugTracker.stackTrace) && + Objects.equals(this.successCount, apiResultListBugTracker.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListBugTracker {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugfieldTemplateGroupDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugfieldTemplateGroupDto.java new file mode 100644 index 0000000..192e76d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBugfieldTemplateGroupDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugfieldTemplateGroupDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListBugfieldTemplateGroupDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListBugfieldTemplateGroupDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListBugfieldTemplateGroupDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListBugfieldTemplateGroupDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListBugfieldTemplateGroupDto addDataItem(BugfieldTemplateGroupDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListBugfieldTemplateGroupDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListBugfieldTemplateGroupDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListBugfieldTemplateGroupDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListBugfieldTemplateGroupDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListBugfieldTemplateGroupDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListBugfieldTemplateGroupDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListBugfieldTemplateGroupDto apiResultListBugfieldTemplateGroupDto = (ApiResultListBugfieldTemplateGroupDto) o; + return Objects.equals(this.count, apiResultListBugfieldTemplateGroupDto.count) && + Objects.equals(this.data, apiResultListBugfieldTemplateGroupDto.data) && + Objects.equals(this.errorCode, apiResultListBugfieldTemplateGroupDto.errorCode) && + Objects.equals(this.links, apiResultListBugfieldTemplateGroupDto.links) && + Objects.equals(this.message, apiResultListBugfieldTemplateGroupDto.message) && + Objects.equals(this.responseCode, apiResultListBugfieldTemplateGroupDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListBugfieldTemplateGroupDto.stackTrace) && + Objects.equals(this.successCount, apiResultListBugfieldTemplateGroupDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListBugfieldTemplateGroupDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBulkResponseItem.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBulkResponseItem.java new file mode 100644 index 0000000..28013f5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListBulkResponseItem.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BulkResponseItem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListBulkResponseItem + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListBulkResponseItem { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListBulkResponseItem count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListBulkResponseItem data(List data) { + this.data = data; + return this; + } + + public ApiResultListBulkResponseItem addDataItem(BulkResponseItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListBulkResponseItem errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListBulkResponseItem links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListBulkResponseItem message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListBulkResponseItem responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListBulkResponseItem stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListBulkResponseItem successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListBulkResponseItem apiResultListBulkResponseItem = (ApiResultListBulkResponseItem) o; + return Objects.equals(this.count, apiResultListBulkResponseItem.count) && + Objects.equals(this.data, apiResultListBulkResponseItem.data) && + Objects.equals(this.errorCode, apiResultListBulkResponseItem.errorCode) && + Objects.equals(this.links, apiResultListBulkResponseItem.links) && + Objects.equals(this.message, apiResultListBulkResponseItem.message) && + Objects.equals(this.responseCode, apiResultListBulkResponseItem.responseCode) && + Objects.equals(this.stackTrace, apiResultListBulkResponseItem.stackTrace) && + Objects.equals(this.successCount, apiResultListBulkResponseItem.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListBulkResponseItem {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudJob.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudJob.java new file mode 100644 index 0000000..fb2e462 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudJob.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudJob; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListCloudJob + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListCloudJob { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListCloudJob count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListCloudJob data(List data) { + this.data = data; + return this; + } + + public ApiResultListCloudJob addDataItem(CloudJob dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListCloudJob errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListCloudJob links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListCloudJob message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListCloudJob responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListCloudJob stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListCloudJob successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListCloudJob apiResultListCloudJob = (ApiResultListCloudJob) o; + return Objects.equals(this.count, apiResultListCloudJob.count) && + Objects.equals(this.data, apiResultListCloudJob.data) && + Objects.equals(this.errorCode, apiResultListCloudJob.errorCode) && + Objects.equals(this.links, apiResultListCloudJob.links) && + Objects.equals(this.message, apiResultListCloudJob.message) && + Objects.equals(this.responseCode, apiResultListCloudJob.responseCode) && + Objects.equals(this.stackTrace, apiResultListCloudJob.stackTrace) && + Objects.equals(this.successCount, apiResultListCloudJob.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListCloudJob {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPool.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPool.java new file mode 100644 index 0000000..4c76c51 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPool.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPool; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListCloudPool + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListCloudPool { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListCloudPool count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListCloudPool data(List data) { + this.data = data; + return this; + } + + public ApiResultListCloudPool addDataItem(CloudPool dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListCloudPool errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListCloudPool links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListCloudPool message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListCloudPool responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListCloudPool stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListCloudPool successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListCloudPool apiResultListCloudPool = (ApiResultListCloudPool) o; + return Objects.equals(this.count, apiResultListCloudPool.count) && + Objects.equals(this.data, apiResultListCloudPool.data) && + Objects.equals(this.errorCode, apiResultListCloudPool.errorCode) && + Objects.equals(this.links, apiResultListCloudPool.links) && + Objects.equals(this.message, apiResultListCloudPool.message) && + Objects.equals(this.responseCode, apiResultListCloudPool.responseCode) && + Objects.equals(this.stackTrace, apiResultListCloudPool.stackTrace) && + Objects.equals(this.successCount, apiResultListCloudPool.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListCloudPool {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPoolMapping.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPoolMapping.java new file mode 100644 index 0000000..d2677fc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudPoolMapping.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPoolMapping; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListCloudPoolMapping + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListCloudPoolMapping { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListCloudPoolMapping count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListCloudPoolMapping data(List data) { + this.data = data; + return this; + } + + public ApiResultListCloudPoolMapping addDataItem(CloudPoolMapping dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListCloudPoolMapping errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListCloudPoolMapping links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListCloudPoolMapping message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListCloudPoolMapping responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListCloudPoolMapping stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListCloudPoolMapping successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListCloudPoolMapping apiResultListCloudPoolMapping = (ApiResultListCloudPoolMapping) o; + return Objects.equals(this.count, apiResultListCloudPoolMapping.count) && + Objects.equals(this.data, apiResultListCloudPoolMapping.data) && + Objects.equals(this.errorCode, apiResultListCloudPoolMapping.errorCode) && + Objects.equals(this.links, apiResultListCloudPoolMapping.links) && + Objects.equals(this.message, apiResultListCloudPoolMapping.message) && + Objects.equals(this.responseCode, apiResultListCloudPoolMapping.responseCode) && + Objects.equals(this.stackTrace, apiResultListCloudPoolMapping.stackTrace) && + Objects.equals(this.successCount, apiResultListCloudPoolMapping.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListCloudPoolMapping {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudWorker.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudWorker.java new file mode 100644 index 0000000..348a402 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCloudWorker.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudWorker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListCloudWorker + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListCloudWorker { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListCloudWorker count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListCloudWorker data(List data) { + this.data = data; + return this; + } + + public ApiResultListCloudWorker addDataItem(CloudWorker dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListCloudWorker errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListCloudWorker links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListCloudWorker message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListCloudWorker responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListCloudWorker stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListCloudWorker successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListCloudWorker apiResultListCloudWorker = (ApiResultListCloudWorker) o; + return Objects.equals(this.count, apiResultListCloudWorker.count) && + Objects.equals(this.data, apiResultListCloudWorker.data) && + Objects.equals(this.errorCode, apiResultListCloudWorker.errorCode) && + Objects.equals(this.links, apiResultListCloudWorker.links) && + Objects.equals(this.message, apiResultListCloudWorker.message) && + Objects.equals(this.responseCode, apiResultListCloudWorker.responseCode) && + Objects.equals(this.stackTrace, apiResultListCloudWorker.stackTrace) && + Objects.equals(this.successCount, apiResultListCloudWorker.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListCloudWorker {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCustomTag.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCustomTag.java new file mode 100644 index 0000000..3d17c16 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListCustomTag.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTag; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListCustomTag + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListCustomTag { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListCustomTag count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListCustomTag data(List data) { + this.data = data; + return this; + } + + public ApiResultListCustomTag addDataItem(CustomTag dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListCustomTag errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListCustomTag links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListCustomTag message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListCustomTag responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListCustomTag stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListCustomTag successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListCustomTag apiResultListCustomTag = (ApiResultListCustomTag) o; + return Objects.equals(this.count, apiResultListCustomTag.count) && + Objects.equals(this.data, apiResultListCustomTag.data) && + Objects.equals(this.errorCode, apiResultListCustomTag.errorCode) && + Objects.equals(this.links, apiResultListCustomTag.links) && + Objects.equals(this.message, apiResultListCustomTag.message) && + Objects.equals(this.responseCode, apiResultListCustomTag.responseCode) && + Objects.equals(this.stackTrace, apiResultListCustomTag.stackTrace) && + Objects.equals(this.successCount, apiResultListCustomTag.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListCustomTag {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDashboardVersion.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDashboardVersion.java new file mode 100644 index 0000000..2f14929 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDashboardVersion.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DashboardVersion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListDashboardVersion + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListDashboardVersion { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListDashboardVersion count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListDashboardVersion data(List data) { + this.data = data; + return this; + } + + public ApiResultListDashboardVersion addDataItem(DashboardVersion dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListDashboardVersion errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListDashboardVersion links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListDashboardVersion message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListDashboardVersion responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListDashboardVersion stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListDashboardVersion successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListDashboardVersion apiResultListDashboardVersion = (ApiResultListDashboardVersion) o; + return Objects.equals(this.count, apiResultListDashboardVersion.count) && + Objects.equals(this.data, apiResultListDashboardVersion.data) && + Objects.equals(this.errorCode, apiResultListDashboardVersion.errorCode) && + Objects.equals(this.links, apiResultListDashboardVersion.links) && + Objects.equals(this.message, apiResultListDashboardVersion.message) && + Objects.equals(this.responseCode, apiResultListDashboardVersion.responseCode) && + Objects.equals(this.stackTrace, apiResultListDashboardVersion.stackTrace) && + Objects.equals(this.successCount, apiResultListDashboardVersion.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListDashboardVersion {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDataExport.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDataExport.java new file mode 100644 index 0000000..aaaeb38 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDataExport.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DataExport; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListDataExport + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListDataExport { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListDataExport count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListDataExport data(List data) { + this.data = data; + return this; + } + + public ApiResultListDataExport addDataItem(DataExport dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListDataExport errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListDataExport links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListDataExport message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListDataExport responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListDataExport stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListDataExport successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListDataExport apiResultListDataExport = (ApiResultListDataExport) o; + return Objects.equals(this.count, apiResultListDataExport.count) && + Objects.equals(this.data, apiResultListDataExport.data) && + Objects.equals(this.errorCode, apiResultListDataExport.errorCode) && + Objects.equals(this.links, apiResultListDataExport.links) && + Objects.equals(this.message, apiResultListDataExport.message) && + Objects.equals(this.responseCode, apiResultListDataExport.responseCode) && + Objects.equals(this.stackTrace, apiResultListDataExport.stackTrace) && + Objects.equals(this.successCount, apiResultListDataExport.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListDataExport {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDynamicScanRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDynamicScanRequest.java new file mode 100644 index 0000000..8ac2826 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListDynamicScanRequest.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequest; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListDynamicScanRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListDynamicScanRequest { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListDynamicScanRequest count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListDynamicScanRequest data(List data) { + this.data = data; + return this; + } + + public ApiResultListDynamicScanRequest addDataItem(DynamicScanRequest dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListDynamicScanRequest errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListDynamicScanRequest links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListDynamicScanRequest message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListDynamicScanRequest responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListDynamicScanRequest stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListDynamicScanRequest successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListDynamicScanRequest apiResultListDynamicScanRequest = (ApiResultListDynamicScanRequest) o; + return Objects.equals(this.count, apiResultListDynamicScanRequest.count) && + Objects.equals(this.data, apiResultListDynamicScanRequest.data) && + Objects.equals(this.errorCode, apiResultListDynamicScanRequest.errorCode) && + Objects.equals(this.links, apiResultListDynamicScanRequest.links) && + Objects.equals(this.message, apiResultListDynamicScanRequest.message) && + Objects.equals(this.responseCode, apiResultListDynamicScanRequest.responseCode) && + Objects.equals(this.stackTrace, apiResultListDynamicScanRequest.stackTrace) && + Objects.equals(this.successCount, apiResultListDynamicScanRequest.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListDynamicScanRequest {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEngineType.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEngineType.java new file mode 100644 index 0000000..dc284a7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEngineType.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EngineType; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListEngineType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListEngineType { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListEngineType count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListEngineType data(List data) { + this.data = data; + return this; + } + + public ApiResultListEngineType addDataItem(EngineType dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListEngineType errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListEngineType links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListEngineType message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListEngineType responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListEngineType stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListEngineType successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListEngineType apiResultListEngineType = (ApiResultListEngineType) o; + return Objects.equals(this.count, apiResultListEngineType.count) && + Objects.equals(this.data, apiResultListEngineType.data) && + Objects.equals(this.errorCode, apiResultListEngineType.errorCode) && + Objects.equals(this.links, apiResultListEngineType.links) && + Objects.equals(this.message, apiResultListEngineType.message) && + Objects.equals(this.responseCode, apiResultListEngineType.responseCode) && + Objects.equals(this.stackTrace, apiResultListEngineType.stackTrace) && + Objects.equals(this.successCount, apiResultListEngineType.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListEngineType {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEventLog.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEventLog.java new file mode 100644 index 0000000..99db09a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListEventLog.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EventLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListEventLog + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListEventLog { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListEventLog count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListEventLog data(List data) { + this.data = data; + return this; + } + + public ApiResultListEventLog addDataItem(EventLog dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListEventLog errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListEventLog links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListEventLog message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListEventLog responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListEventLog stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListEventLog successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListEventLog apiResultListEventLog = (ApiResultListEventLog) o; + return Objects.equals(this.count, apiResultListEventLog.count) && + Objects.equals(this.data, apiResultListEventLog.data) && + Objects.equals(this.errorCode, apiResultListEventLog.errorCode) && + Objects.equals(this.links, apiResultListEventLog.links) && + Objects.equals(this.message, apiResultListEventLog.message) && + Objects.equals(this.responseCode, apiResultListEventLog.responseCode) && + Objects.equals(this.stackTrace, apiResultListEventLog.stackTrace) && + Objects.equals(this.successCount, apiResultListEventLog.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListEventLog {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFeature.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFeature.java new file mode 100644 index 0000000..61811f7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFeature.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Feature; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListFeature + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListFeature { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListFeature count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListFeature data(List data) { + this.data = data; + return this; + } + + public ApiResultListFeature addDataItem(Feature dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListFeature errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListFeature links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListFeature message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListFeature responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListFeature stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListFeature successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListFeature apiResultListFeature = (ApiResultListFeature) o; + return Objects.equals(this.count, apiResultListFeature.count) && + Objects.equals(this.data, apiResultListFeature.data) && + Objects.equals(this.errorCode, apiResultListFeature.errorCode) && + Objects.equals(this.links, apiResultListFeature.links) && + Objects.equals(this.message, apiResultListFeature.message) && + Objects.equals(this.responseCode, apiResultListFeature.responseCode) && + Objects.equals(this.stackTrace, apiResultListFeature.stackTrace) && + Objects.equals(this.successCount, apiResultListFeature.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListFeature {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFilterSet.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFilterSet.java new file mode 100644 index 0000000..c1d6261 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFilterSet.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.FilterSet; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListFilterSet + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListFilterSet { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListFilterSet count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListFilterSet data(List data) { + this.data = data; + return this; + } + + public ApiResultListFilterSet addDataItem(FilterSet dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListFilterSet errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListFilterSet links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListFilterSet message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListFilterSet responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListFilterSet stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListFilterSet successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListFilterSet apiResultListFilterSet = (ApiResultListFilterSet) o; + return Objects.equals(this.count, apiResultListFilterSet.count) && + Objects.equals(this.data, apiResultListFilterSet.data) && + Objects.equals(this.errorCode, apiResultListFilterSet.errorCode) && + Objects.equals(this.links, apiResultListFilterSet.links) && + Objects.equals(this.message, apiResultListFilterSet.message) && + Objects.equals(this.responseCode, apiResultListFilterSet.responseCode) && + Objects.equals(this.stackTrace, apiResultListFilterSet.stackTrace) && + Objects.equals(this.successCount, apiResultListFilterSet.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListFilterSet {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFolder.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFolder.java new file mode 100644 index 0000000..8cd18d7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListFolder.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Folder; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListFolder + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListFolder { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListFolder count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListFolder data(List data) { + this.data = data; + return this; + } + + public ApiResultListFolder addDataItem(Folder dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListFolder errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListFolder links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListFolder message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListFolder responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListFolder stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListFolder successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListFolder apiResultListFolder = (ApiResultListFolder) o; + return Objects.equals(this.count, apiResultListFolder.count) && + Objects.equals(this.data, apiResultListFolder.data) && + Objects.equals(this.errorCode, apiResultListFolder.errorCode) && + Objects.equals(this.links, apiResultListFolder.links) && + Objects.equals(this.message, apiResultListFolder.message) && + Objects.equals(this.responseCode, apiResultListFolder.responseCode) && + Objects.equals(this.stackTrace, apiResultListFolder.stackTrace) && + Objects.equals(this.successCount, apiResultListFolder.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListFolder {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIIDMigration.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIIDMigration.java new file mode 100644 index 0000000..b466015 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIIDMigration.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IIDMigration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIIDMigration + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIIDMigration { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIIDMigration count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIIDMigration data(List data) { + this.data = data; + return this; + } + + public ApiResultListIIDMigration addDataItem(IIDMigration dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIIDMigration errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIIDMigration links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIIDMigration message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIIDMigration responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIIDMigration stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIIDMigration successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIIDMigration apiResultListIIDMigration = (ApiResultListIIDMigration) o; + return Objects.equals(this.count, apiResultListIIDMigration.count) && + Objects.equals(this.data, apiResultListIIDMigration.data) && + Objects.equals(this.errorCode, apiResultListIIDMigration.errorCode) && + Objects.equals(this.links, apiResultListIIDMigration.links) && + Objects.equals(this.message, apiResultListIIDMigration.message) && + Objects.equals(this.responseCode, apiResultListIIDMigration.responseCode) && + Objects.equals(this.stackTrace, apiResultListIIDMigration.stackTrace) && + Objects.equals(this.successCount, apiResultListIIDMigration.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIIDMigration {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingDto.java new file mode 100644 index 0000000..17a7f7a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAgingDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAgingDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAgingDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAgingDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAgingDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAgingDto addDataItem(IssueAgingDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAgingDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAgingDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAgingDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAgingDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAgingDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAgingDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAgingDto apiResultListIssueAgingDto = (ApiResultListIssueAgingDto) o; + return Objects.equals(this.count, apiResultListIssueAgingDto.count) && + Objects.equals(this.data, apiResultListIssueAgingDto.data) && + Objects.equals(this.errorCode, apiResultListIssueAgingDto.errorCode) && + Objects.equals(this.links, apiResultListIssueAgingDto.links) && + Objects.equals(this.message, apiResultListIssueAgingDto.message) && + Objects.equals(this.responseCode, apiResultListIssueAgingDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAgingDto.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAgingDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAgingDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingGroupDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingGroupDto.java new file mode 100644 index 0000000..1fd1db3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAgingGroupDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAgingGroupDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAgingGroupDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAgingGroupDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAgingGroupDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAgingGroupDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAgingGroupDto addDataItem(IssueAgingGroupDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAgingGroupDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAgingGroupDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAgingGroupDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAgingGroupDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAgingGroupDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAgingGroupDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAgingGroupDto apiResultListIssueAgingGroupDto = (ApiResultListIssueAgingGroupDto) o; + return Objects.equals(this.count, apiResultListIssueAgingGroupDto.count) && + Objects.equals(this.data, apiResultListIssueAgingGroupDto.data) && + Objects.equals(this.errorCode, apiResultListIssueAgingGroupDto.errorCode) && + Objects.equals(this.links, apiResultListIssueAgingGroupDto.links) && + Objects.equals(this.message, apiResultListIssueAgingGroupDto.message) && + Objects.equals(this.responseCode, apiResultListIssueAgingGroupDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAgingGroupDto.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAgingGroupDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAgingGroupDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAssignment.java new file mode 100644 index 0000000..24508d4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAssignment.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAssignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAssignment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAssignment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAssignment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAssignment data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAssignment addDataItem(IssueAssignment dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAssignment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAssignment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAssignment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAssignment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAssignment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAssignment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAssignment apiResultListIssueAssignment = (ApiResultListIssueAssignment) o; + return Objects.equals(this.count, apiResultListIssueAssignment.count) && + Objects.equals(this.data, apiResultListIssueAssignment.data) && + Objects.equals(this.errorCode, apiResultListIssueAssignment.errorCode) && + Objects.equals(this.links, apiResultListIssueAssignment.links) && + Objects.equals(this.message, apiResultListIssueAssignment.message) && + Objects.equals(this.responseCode, apiResultListIssueAssignment.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAssignment.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAssignment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAssignment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAttachment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAttachment.java new file mode 100644 index 0000000..a41adae --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAttachment.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAttachment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAttachment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAttachment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAttachment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAttachment data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAttachment addDataItem(IssueAttachment dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAttachment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAttachment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAttachment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAttachment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAttachment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAttachment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAttachment apiResultListIssueAttachment = (ApiResultListIssueAttachment) o; + return Objects.equals(this.count, apiResultListIssueAttachment.count) && + Objects.equals(this.data, apiResultListIssueAttachment.data) && + Objects.equals(this.errorCode, apiResultListIssueAttachment.errorCode) && + Objects.equals(this.links, apiResultListIssueAttachment.links) && + Objects.equals(this.message, apiResultListIssueAttachment.message) && + Objects.equals(this.responseCode, apiResultListIssueAttachment.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAttachment.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAttachment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAttachment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditComment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditComment.java new file mode 100644 index 0000000..438488a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditComment.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAuditComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAuditComment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAuditComment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAuditComment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAuditComment data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAuditComment addDataItem(IssueAuditComment dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAuditComment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAuditComment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAuditComment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAuditComment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAuditComment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAuditComment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAuditComment apiResultListIssueAuditComment = (ApiResultListIssueAuditComment) o; + return Objects.equals(this.count, apiResultListIssueAuditComment.count) && + Objects.equals(this.data, apiResultListIssueAuditComment.data) && + Objects.equals(this.errorCode, apiResultListIssueAuditComment.errorCode) && + Objects.equals(this.links, apiResultListIssueAuditComment.links) && + Objects.equals(this.message, apiResultListIssueAuditComment.message) && + Objects.equals(this.responseCode, apiResultListIssueAuditComment.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAuditComment.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAuditComment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAuditComment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditHistoryDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditHistoryDto.java new file mode 100644 index 0000000..4eaa309 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueAuditHistoryDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAuditHistoryDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueAuditHistoryDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueAuditHistoryDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueAuditHistoryDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueAuditHistoryDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueAuditHistoryDto addDataItem(IssueAuditHistoryDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueAuditHistoryDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueAuditHistoryDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueAuditHistoryDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueAuditHistoryDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueAuditHistoryDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueAuditHistoryDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueAuditHistoryDto apiResultListIssueAuditHistoryDto = (ApiResultListIssueAuditHistoryDto) o; + return Objects.equals(this.count, apiResultListIssueAuditHistoryDto.count) && + Objects.equals(this.data, apiResultListIssueAuditHistoryDto.data) && + Objects.equals(this.errorCode, apiResultListIssueAuditHistoryDto.errorCode) && + Objects.equals(this.links, apiResultListIssueAuditHistoryDto.links) && + Objects.equals(this.message, apiResultListIssueAuditHistoryDto.message) && + Objects.equals(this.responseCode, apiResultListIssueAuditHistoryDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueAuditHistoryDto.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueAuditHistoryDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueAuditHistoryDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSearchOption.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSearchOption.java new file mode 100644 index 0000000..269cd40 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSearchOption.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueSearchOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueSearchOption + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueSearchOption { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueSearchOption count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueSearchOption data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueSearchOption addDataItem(IssueSearchOption dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueSearchOption errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueSearchOption links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueSearchOption message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueSearchOption responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueSearchOption stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueSearchOption successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueSearchOption apiResultListIssueSearchOption = (ApiResultListIssueSearchOption) o; + return Objects.equals(this.count, apiResultListIssueSearchOption.count) && + Objects.equals(this.data, apiResultListIssueSearchOption.data) && + Objects.equals(this.errorCode, apiResultListIssueSearchOption.errorCode) && + Objects.equals(this.links, apiResultListIssueSearchOption.links) && + Objects.equals(this.message, apiResultListIssueSearchOption.message) && + Objects.equals(this.responseCode, apiResultListIssueSearchOption.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueSearchOption.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueSearchOption.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueSearchOption {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueStatistics.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueStatistics.java new file mode 100644 index 0000000..259ef01 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueStatistics.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueStatistics; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueStatistics + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueStatistics { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueStatistics count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueStatistics data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueStatistics addDataItem(IssueStatistics dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueStatistics errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueStatistics links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueStatistics message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueStatistics responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueStatistics stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueStatistics successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueStatistics apiResultListIssueStatistics = (ApiResultListIssueStatistics) o; + return Objects.equals(this.count, apiResultListIssueStatistics.count) && + Objects.equals(this.data, apiResultListIssueStatistics.data) && + Objects.equals(this.errorCode, apiResultListIssueStatistics.errorCode) && + Objects.equals(this.links, apiResultListIssueStatistics.links) && + Objects.equals(this.message, apiResultListIssueStatistics.message) && + Objects.equals(this.responseCode, apiResultListIssueStatistics.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueStatistics.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueStatistics.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueStatistics {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSummary.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSummary.java new file mode 100644 index 0000000..aa7cb77 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueSummary.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueSummary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueSummary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueSummary { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueSummary count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueSummary data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueSummary addDataItem(IssueSummary dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueSummary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueSummary links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueSummary message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueSummary responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueSummary stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueSummary successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueSummary apiResultListIssueSummary = (ApiResultListIssueSummary) o; + return Objects.equals(this.count, apiResultListIssueSummary.count) && + Objects.equals(this.data, apiResultListIssueSummary.data) && + Objects.equals(this.errorCode, apiResultListIssueSummary.errorCode) && + Objects.equals(this.links, apiResultListIssueSummary.links) && + Objects.equals(this.message, apiResultListIssueSummary.message) && + Objects.equals(this.responseCode, apiResultListIssueSummary.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueSummary.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueSummary.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueSummary {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueTemplate.java new file mode 100644 index 0000000..b287ebe --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueTemplate.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueTemplate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueTemplate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueTemplate { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueTemplate count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueTemplate data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueTemplate addDataItem(IssueTemplate dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueTemplate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueTemplate links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueTemplate message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueTemplate responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueTemplate stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueTemplate successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueTemplate apiResultListIssueTemplate = (ApiResultListIssueTemplate) o; + return Objects.equals(this.count, apiResultListIssueTemplate.count) && + Objects.equals(this.data, apiResultListIssueTemplate.data) && + Objects.equals(this.errorCode, apiResultListIssueTemplate.errorCode) && + Objects.equals(this.links, apiResultListIssueTemplate.links) && + Objects.equals(this.message, apiResultListIssueTemplate.message) && + Objects.equals(this.responseCode, apiResultListIssueTemplate.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueTemplate.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueTemplate.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueTemplate {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueViewTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueViewTemplate.java new file mode 100644 index 0000000..c487f65 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListIssueViewTemplate.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueViewTemplate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListIssueViewTemplate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListIssueViewTemplate { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListIssueViewTemplate count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListIssueViewTemplate data(List data) { + this.data = data; + return this; + } + + public ApiResultListIssueViewTemplate addDataItem(IssueViewTemplate dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListIssueViewTemplate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListIssueViewTemplate links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListIssueViewTemplate message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListIssueViewTemplate responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListIssueViewTemplate stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListIssueViewTemplate successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListIssueViewTemplate apiResultListIssueViewTemplate = (ApiResultListIssueViewTemplate) o; + return Objects.equals(this.count, apiResultListIssueViewTemplate.count) && + Objects.equals(this.data, apiResultListIssueViewTemplate.data) && + Objects.equals(this.errorCode, apiResultListIssueViewTemplate.errorCode) && + Objects.equals(this.links, apiResultListIssueViewTemplate.links) && + Objects.equals(this.message, apiResultListIssueViewTemplate.message) && + Objects.equals(this.responseCode, apiResultListIssueViewTemplate.responseCode) && + Objects.equals(this.stackTrace, apiResultListIssueViewTemplate.stackTrace) && + Objects.equals(this.successCount, apiResultListIssueViewTemplate.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListIssueViewTemplate {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJob.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJob.java new file mode 100644 index 0000000..5e29600 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJob.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Job; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListJob + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListJob { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListJob count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListJob data(List data) { + this.data = data; + return this; + } + + public ApiResultListJob addDataItem(Job dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListJob errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListJob links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListJob message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListJob responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListJob stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListJob successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListJob apiResultListJob = (ApiResultListJob) o; + return Objects.equals(this.count, apiResultListJob.count) && + Objects.equals(this.data, apiResultListJob.data) && + Objects.equals(this.errorCode, apiResultListJob.errorCode) && + Objects.equals(this.links, apiResultListJob.links) && + Objects.equals(this.message, apiResultListJob.message) && + Objects.equals(this.responseCode, apiResultListJob.responseCode) && + Objects.equals(this.stackTrace, apiResultListJob.stackTrace) && + Objects.equals(this.successCount, apiResultListJob.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListJob {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJobPriorityChangeCategoryWarning.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJobPriorityChangeCategoryWarning.java new file mode 100644 index 0000000..257eee9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListJobPriorityChangeCategoryWarning.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.JobPriorityChangeCategoryWarning; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListJobPriorityChangeCategoryWarning + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListJobPriorityChangeCategoryWarning { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListJobPriorityChangeCategoryWarning count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListJobPriorityChangeCategoryWarning data(List data) { + this.data = data; + return this; + } + + public ApiResultListJobPriorityChangeCategoryWarning addDataItem(JobPriorityChangeCategoryWarning dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListJobPriorityChangeCategoryWarning errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListJobPriorityChangeCategoryWarning links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListJobPriorityChangeCategoryWarning message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListJobPriorityChangeCategoryWarning responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListJobPriorityChangeCategoryWarning stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListJobPriorityChangeCategoryWarning successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListJobPriorityChangeCategoryWarning apiResultListJobPriorityChangeCategoryWarning = (ApiResultListJobPriorityChangeCategoryWarning) o; + return Objects.equals(this.count, apiResultListJobPriorityChangeCategoryWarning.count) && + Objects.equals(this.data, apiResultListJobPriorityChangeCategoryWarning.data) && + Objects.equals(this.errorCode, apiResultListJobPriorityChangeCategoryWarning.errorCode) && + Objects.equals(this.links, apiResultListJobPriorityChangeCategoryWarning.links) && + Objects.equals(this.message, apiResultListJobPriorityChangeCategoryWarning.message) && + Objects.equals(this.responseCode, apiResultListJobPriorityChangeCategoryWarning.responseCode) && + Objects.equals(this.stackTrace, apiResultListJobPriorityChangeCategoryWarning.stackTrace) && + Objects.equals(this.successCount, apiResultListJobPriorityChangeCategoryWarning.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListJobPriorityChangeCategoryWarning {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLDAPEntity.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLDAPEntity.java new file mode 100644 index 0000000..b476108 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLDAPEntity.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LDAPEntity; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListLDAPEntity + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListLDAPEntity { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListLDAPEntity count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListLDAPEntity data(List data) { + this.data = data; + return this; + } + + public ApiResultListLDAPEntity addDataItem(LDAPEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListLDAPEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListLDAPEntity links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListLDAPEntity message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListLDAPEntity responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListLDAPEntity stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListLDAPEntity successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListLDAPEntity apiResultListLDAPEntity = (ApiResultListLDAPEntity) o; + return Objects.equals(this.count, apiResultListLDAPEntity.count) && + Objects.equals(this.data, apiResultListLDAPEntity.data) && + Objects.equals(this.errorCode, apiResultListLDAPEntity.errorCode) && + Objects.equals(this.links, apiResultListLDAPEntity.links) && + Objects.equals(this.message, apiResultListLDAPEntity.message) && + Objects.equals(this.responseCode, apiResultListLDAPEntity.responseCode) && + Objects.equals(this.stackTrace, apiResultListLDAPEntity.stackTrace) && + Objects.equals(this.successCount, apiResultListLDAPEntity.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListLDAPEntity {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLdapServerDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLdapServerDto.java new file mode 100644 index 0000000..3335a00 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLdapServerDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LdapServerDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListLdapServerDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListLdapServerDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListLdapServerDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListLdapServerDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListLdapServerDto addDataItem(LdapServerDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListLdapServerDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListLdapServerDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListLdapServerDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListLdapServerDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListLdapServerDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListLdapServerDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListLdapServerDto apiResultListLdapServerDto = (ApiResultListLdapServerDto) o; + return Objects.equals(this.count, apiResultListLdapServerDto.count) && + Objects.equals(this.data, apiResultListLdapServerDto.data) && + Objects.equals(this.errorCode, apiResultListLdapServerDto.errorCode) && + Objects.equals(this.links, apiResultListLdapServerDto.links) && + Objects.equals(this.message, apiResultListLdapServerDto.message) && + Objects.equals(this.responseCode, apiResultListLdapServerDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListLdapServerDto.stackTrace) && + Objects.equals(this.successCount, apiResultListLdapServerDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListLdapServerDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLocalUser.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLocalUser.java new file mode 100644 index 0000000..515e8d3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListLocalUser.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LocalUser; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListLocalUser + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListLocalUser { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListLocalUser count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListLocalUser data(List data) { + this.data = data; + return this; + } + + public ApiResultListLocalUser addDataItem(LocalUser dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListLocalUser errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListLocalUser links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListLocalUser message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListLocalUser responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListLocalUser stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListLocalUser successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListLocalUser apiResultListLocalUser = (ApiResultListLocalUser) o; + return Objects.equals(this.count, apiResultListLocalUser.count) && + Objects.equals(this.data, apiResultListLocalUser.data) && + Objects.equals(this.errorCode, apiResultListLocalUser.errorCode) && + Objects.equals(this.links, apiResultListLocalUser.links) && + Objects.equals(this.message, apiResultListLocalUser.message) && + Objects.equals(this.responseCode, apiResultListLocalUser.responseCode) && + Objects.equals(this.stackTrace, apiResultListLocalUser.stackTrace) && + Objects.equals(this.successCount, apiResultListLocalUser.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListLocalUser {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicator.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicator.java new file mode 100644 index 0000000..ace6ba6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicator.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PerformanceIndicator; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListPerformanceIndicator + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListPerformanceIndicator { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListPerformanceIndicator count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListPerformanceIndicator data(List data) { + this.data = data; + return this; + } + + public ApiResultListPerformanceIndicator addDataItem(PerformanceIndicator dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListPerformanceIndicator errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListPerformanceIndicator links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListPerformanceIndicator message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListPerformanceIndicator responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListPerformanceIndicator stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListPerformanceIndicator successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListPerformanceIndicator apiResultListPerformanceIndicator = (ApiResultListPerformanceIndicator) o; + return Objects.equals(this.count, apiResultListPerformanceIndicator.count) && + Objects.equals(this.data, apiResultListPerformanceIndicator.data) && + Objects.equals(this.errorCode, apiResultListPerformanceIndicator.errorCode) && + Objects.equals(this.links, apiResultListPerformanceIndicator.links) && + Objects.equals(this.message, apiResultListPerformanceIndicator.message) && + Objects.equals(this.responseCode, apiResultListPerformanceIndicator.responseCode) && + Objects.equals(this.stackTrace, apiResultListPerformanceIndicator.stackTrace) && + Objects.equals(this.successCount, apiResultListPerformanceIndicator.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListPerformanceIndicator {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicatorHistory.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicatorHistory.java new file mode 100644 index 0000000..ae3c4fb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPerformanceIndicatorHistory.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PerformanceIndicatorHistory; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListPerformanceIndicatorHistory + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListPerformanceIndicatorHistory { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListPerformanceIndicatorHistory count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListPerformanceIndicatorHistory data(List data) { + this.data = data; + return this; + } + + public ApiResultListPerformanceIndicatorHistory addDataItem(PerformanceIndicatorHistory dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListPerformanceIndicatorHistory errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListPerformanceIndicatorHistory links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListPerformanceIndicatorHistory message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListPerformanceIndicatorHistory responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListPerformanceIndicatorHistory stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListPerformanceIndicatorHistory successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListPerformanceIndicatorHistory apiResultListPerformanceIndicatorHistory = (ApiResultListPerformanceIndicatorHistory) o; + return Objects.equals(this.count, apiResultListPerformanceIndicatorHistory.count) && + Objects.equals(this.data, apiResultListPerformanceIndicatorHistory.data) && + Objects.equals(this.errorCode, apiResultListPerformanceIndicatorHistory.errorCode) && + Objects.equals(this.links, apiResultListPerformanceIndicatorHistory.links) && + Objects.equals(this.message, apiResultListPerformanceIndicatorHistory.message) && + Objects.equals(this.responseCode, apiResultListPerformanceIndicatorHistory.responseCode) && + Objects.equals(this.stackTrace, apiResultListPerformanceIndicatorHistory.stackTrace) && + Objects.equals(this.successCount, apiResultListPerformanceIndicatorHistory.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListPerformanceIndicatorHistory {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPermission.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPermission.java new file mode 100644 index 0000000..108ff56 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPermission.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Permission; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListPermission + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListPermission { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListPermission count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListPermission data(List data) { + this.data = data; + return this; + } + + public ApiResultListPermission addDataItem(Permission dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListPermission errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListPermission links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListPermission message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListPermission responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListPermission stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListPermission successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListPermission apiResultListPermission = (ApiResultListPermission) o; + return Objects.equals(this.count, apiResultListPermission.count) && + Objects.equals(this.data, apiResultListPermission.data) && + Objects.equals(this.errorCode, apiResultListPermission.errorCode) && + Objects.equals(this.links, apiResultListPermission.links) && + Objects.equals(this.message, apiResultListPermission.message) && + Objects.equals(this.responseCode, apiResultListPermission.responseCode) && + Objects.equals(this.stackTrace, apiResultListPermission.stackTrace) && + Objects.equals(this.successCount, apiResultListPermission.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListPermission {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPersona.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPersona.java new file mode 100644 index 0000000..8d52072 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPersona.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Persona; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListPersona + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListPersona { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListPersona count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListPersona data(List data) { + this.data = data; + return this; + } + + public ApiResultListPersona addDataItem(Persona dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListPersona errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListPersona links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListPersona message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListPersona responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListPersona stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListPersona successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListPersona apiResultListPersona = (ApiResultListPersona) o; + return Objects.equals(this.count, apiResultListPersona.count) && + Objects.equals(this.data, apiResultListPersona.data) && + Objects.equals(this.errorCode, apiResultListPersona.errorCode) && + Objects.equals(this.links, apiResultListPersona.links) && + Objects.equals(this.message, apiResultListPersona.message) && + Objects.equals(this.responseCode, apiResultListPersona.responseCode) && + Objects.equals(this.stackTrace, apiResultListPersona.stackTrace) && + Objects.equals(this.successCount, apiResultListPersona.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListPersona {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPluginMetaData.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPluginMetaData.java new file mode 100644 index 0000000..67dcda3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListPluginMetaData.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PluginMetaData; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListPluginMetaData + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListPluginMetaData { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListPluginMetaData count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListPluginMetaData data(List data) { + this.data = data; + return this; + } + + public ApiResultListPluginMetaData addDataItem(PluginMetaData dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListPluginMetaData errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListPluginMetaData links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListPluginMetaData message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListPluginMetaData responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListPluginMetaData stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListPluginMetaData successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListPluginMetaData apiResultListPluginMetaData = (ApiResultListPluginMetaData) o; + return Objects.equals(this.count, apiResultListPluginMetaData.count) && + Objects.equals(this.data, apiResultListPluginMetaData.data) && + Objects.equals(this.errorCode, apiResultListPluginMetaData.errorCode) && + Objects.equals(this.links, apiResultListPluginMetaData.links) && + Objects.equals(this.message, apiResultListPluginMetaData.message) && + Objects.equals(this.responseCode, apiResultListPluginMetaData.responseCode) && + Objects.equals(this.stackTrace, apiResultListPluginMetaData.stackTrace) && + Objects.equals(this.successCount, apiResultListPluginMetaData.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListPluginMetaData {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProject.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProject.java new file mode 100644 index 0000000..1b12db4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProject.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Project; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProject + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProject { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProject count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProject data(List data) { + this.data = data; + return this; + } + + public ApiResultListProject addDataItem(Project dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProject links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProject message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProject responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProject stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProject successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProject apiResultListProject = (ApiResultListProject) o; + return Objects.equals(this.count, apiResultListProject.count) && + Objects.equals(this.data, apiResultListProject.data) && + Objects.equals(this.errorCode, apiResultListProject.errorCode) && + Objects.equals(this.links, apiResultListProject.links) && + Objects.equals(this.message, apiResultListProject.message) && + Objects.equals(this.responseCode, apiResultListProject.responseCode) && + Objects.equals(this.stackTrace, apiResultListProject.stackTrace) && + Objects.equals(this.successCount, apiResultListProject.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProject {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersion.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersion.java new file mode 100644 index 0000000..40db3e8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersion.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProjectVersion + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProjectVersion { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProjectVersion count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProjectVersion data(List data) { + this.data = data; + return this; + } + + public ApiResultListProjectVersion addDataItem(ProjectVersion dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProjectVersion errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProjectVersion links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProjectVersion message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProjectVersion responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProjectVersion stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProjectVersion successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProjectVersion apiResultListProjectVersion = (ApiResultListProjectVersion) o; + return Objects.equals(this.count, apiResultListProjectVersion.count) && + Objects.equals(this.data, apiResultListProjectVersion.data) && + Objects.equals(this.errorCode, apiResultListProjectVersion.errorCode) && + Objects.equals(this.links, apiResultListProjectVersion.links) && + Objects.equals(this.message, apiResultListProjectVersion.message) && + Objects.equals(this.responseCode, apiResultListProjectVersion.responseCode) && + Objects.equals(this.stackTrace, apiResultListProjectVersion.stackTrace) && + Objects.equals(this.successCount, apiResultListProjectVersion.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProjectVersion {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionBugTracker.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionBugTracker.java new file mode 100644 index 0000000..31fe0ed --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionBugTracker.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionBugTracker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProjectVersionBugTracker + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProjectVersionBugTracker { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProjectVersionBugTracker count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProjectVersionBugTracker data(List data) { + this.data = data; + return this; + } + + public ApiResultListProjectVersionBugTracker addDataItem(ProjectVersionBugTracker dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProjectVersionBugTracker errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProjectVersionBugTracker links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProjectVersionBugTracker message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProjectVersionBugTracker responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProjectVersionBugTracker stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProjectVersionBugTracker successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProjectVersionBugTracker apiResultListProjectVersionBugTracker = (ApiResultListProjectVersionBugTracker) o; + return Objects.equals(this.count, apiResultListProjectVersionBugTracker.count) && + Objects.equals(this.data, apiResultListProjectVersionBugTracker.data) && + Objects.equals(this.errorCode, apiResultListProjectVersionBugTracker.errorCode) && + Objects.equals(this.links, apiResultListProjectVersionBugTracker.links) && + Objects.equals(this.message, apiResultListProjectVersionBugTracker.message) && + Objects.equals(this.responseCode, apiResultListProjectVersionBugTracker.responseCode) && + Objects.equals(this.stackTrace, apiResultListProjectVersionBugTracker.stackTrace) && + Objects.equals(this.successCount, apiResultListProjectVersionBugTracker.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProjectVersionBugTracker {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssue.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssue.java new file mode 100644 index 0000000..8208026 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssue.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionIssue; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProjectVersionIssue + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProjectVersionIssue { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProjectVersionIssue count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProjectVersionIssue data(List data) { + this.data = data; + return this; + } + + public ApiResultListProjectVersionIssue addDataItem(ProjectVersionIssue dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProjectVersionIssue errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProjectVersionIssue links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProjectVersionIssue message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProjectVersionIssue responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProjectVersionIssue stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProjectVersionIssue successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProjectVersionIssue apiResultListProjectVersionIssue = (ApiResultListProjectVersionIssue) o; + return Objects.equals(this.count, apiResultListProjectVersionIssue.count) && + Objects.equals(this.data, apiResultListProjectVersionIssue.data) && + Objects.equals(this.errorCode, apiResultListProjectVersionIssue.errorCode) && + Objects.equals(this.links, apiResultListProjectVersionIssue.links) && + Objects.equals(this.message, apiResultListProjectVersionIssue.message) && + Objects.equals(this.responseCode, apiResultListProjectVersionIssue.responseCode) && + Objects.equals(this.stackTrace, apiResultListProjectVersionIssue.stackTrace) && + Objects.equals(this.successCount, apiResultListProjectVersionIssue.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProjectVersionIssue {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueDetails.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueDetails.java new file mode 100644 index 0000000..a258595 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueDetails.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionIssueDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProjectVersionIssueDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProjectVersionIssueDetails { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProjectVersionIssueDetails count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProjectVersionIssueDetails data(List data) { + this.data = data; + return this; + } + + public ApiResultListProjectVersionIssueDetails addDataItem(ProjectVersionIssueDetails dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProjectVersionIssueDetails errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProjectVersionIssueDetails links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProjectVersionIssueDetails message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProjectVersionIssueDetails responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProjectVersionIssueDetails stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProjectVersionIssueDetails successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProjectVersionIssueDetails apiResultListProjectVersionIssueDetails = (ApiResultListProjectVersionIssueDetails) o; + return Objects.equals(this.count, apiResultListProjectVersionIssueDetails.count) && + Objects.equals(this.data, apiResultListProjectVersionIssueDetails.data) && + Objects.equals(this.errorCode, apiResultListProjectVersionIssueDetails.errorCode) && + Objects.equals(this.links, apiResultListProjectVersionIssueDetails.links) && + Objects.equals(this.message, apiResultListProjectVersionIssueDetails.message) && + Objects.equals(this.responseCode, apiResultListProjectVersionIssueDetails.responseCode) && + Objects.equals(this.stackTrace, apiResultListProjectVersionIssueDetails.stackTrace) && + Objects.equals(this.successCount, apiResultListProjectVersionIssueDetails.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProjectVersionIssueDetails {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueGroup.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueGroup.java new file mode 100644 index 0000000..b66a6ac --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListProjectVersionIssueGroup.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionIssueGroup; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListProjectVersionIssueGroup + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListProjectVersionIssueGroup { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListProjectVersionIssueGroup count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListProjectVersionIssueGroup data(List data) { + this.data = data; + return this; + } + + public ApiResultListProjectVersionIssueGroup addDataItem(ProjectVersionIssueGroup dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListProjectVersionIssueGroup errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListProjectVersionIssueGroup links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListProjectVersionIssueGroup message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListProjectVersionIssueGroup responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListProjectVersionIssueGroup stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListProjectVersionIssueGroup successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListProjectVersionIssueGroup apiResultListProjectVersionIssueGroup = (ApiResultListProjectVersionIssueGroup) o; + return Objects.equals(this.count, apiResultListProjectVersionIssueGroup.count) && + Objects.equals(this.data, apiResultListProjectVersionIssueGroup.data) && + Objects.equals(this.errorCode, apiResultListProjectVersionIssueGroup.errorCode) && + Objects.equals(this.links, apiResultListProjectVersionIssueGroup.links) && + Objects.equals(this.message, apiResultListProjectVersionIssueGroup.message) && + Objects.equals(this.responseCode, apiResultListProjectVersionIssueGroup.responseCode) && + Objects.equals(this.stackTrace, apiResultListProjectVersionIssueGroup.stackTrace) && + Objects.equals(this.successCount, apiResultListProjectVersionIssueGroup.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListProjectVersionIssueGroup {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportDefinition.java new file mode 100644 index 0000000..1212d34 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportDefinition.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListReportDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListReportDefinition { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListReportDefinition count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListReportDefinition data(List data) { + this.data = data; + return this; + } + + public ApiResultListReportDefinition addDataItem(ReportDefinition dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListReportDefinition errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListReportDefinition links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListReportDefinition message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListReportDefinition responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListReportDefinition stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListReportDefinition successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListReportDefinition apiResultListReportDefinition = (ApiResultListReportDefinition) o; + return Objects.equals(this.count, apiResultListReportDefinition.count) && + Objects.equals(this.data, apiResultListReportDefinition.data) && + Objects.equals(this.errorCode, apiResultListReportDefinition.errorCode) && + Objects.equals(this.links, apiResultListReportDefinition.links) && + Objects.equals(this.message, apiResultListReportDefinition.message) && + Objects.equals(this.responseCode, apiResultListReportDefinition.responseCode) && + Objects.equals(this.stackTrace, apiResultListReportDefinition.stackTrace) && + Objects.equals(this.successCount, apiResultListReportDefinition.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListReportDefinition {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportLibrary.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportLibrary.java new file mode 100644 index 0000000..86a24c8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListReportLibrary.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportLibrary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListReportLibrary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListReportLibrary { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListReportLibrary count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListReportLibrary data(List data) { + this.data = data; + return this; + } + + public ApiResultListReportLibrary addDataItem(ReportLibrary dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListReportLibrary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListReportLibrary links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListReportLibrary message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListReportLibrary responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListReportLibrary stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListReportLibrary successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListReportLibrary apiResultListReportLibrary = (ApiResultListReportLibrary) o; + return Objects.equals(this.count, apiResultListReportLibrary.count) && + Objects.equals(this.data, apiResultListReportLibrary.data) && + Objects.equals(this.errorCode, apiResultListReportLibrary.errorCode) && + Objects.equals(this.links, apiResultListReportLibrary.links) && + Objects.equals(this.message, apiResultListReportLibrary.message) && + Objects.equals(this.responseCode, apiResultListReportLibrary.responseCode) && + Objects.equals(this.stackTrace, apiResultListReportLibrary.stackTrace) && + Objects.equals(this.successCount, apiResultListReportLibrary.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListReportLibrary {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResponsibilityAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResponsibilityAssignment.java new file mode 100644 index 0000000..140b12e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResponsibilityAssignment.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListResponsibilityAssignment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListResponsibilityAssignment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListResponsibilityAssignment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListResponsibilityAssignment data(List data) { + this.data = data; + return this; + } + + public ApiResultListResponsibilityAssignment addDataItem(ResponsibilityAssignment dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListResponsibilityAssignment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListResponsibilityAssignment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListResponsibilityAssignment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListResponsibilityAssignment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListResponsibilityAssignment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListResponsibilityAssignment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListResponsibilityAssignment apiResultListResponsibilityAssignment = (ApiResultListResponsibilityAssignment) o; + return Objects.equals(this.count, apiResultListResponsibilityAssignment.count) && + Objects.equals(this.data, apiResultListResponsibilityAssignment.data) && + Objects.equals(this.errorCode, apiResultListResponsibilityAssignment.errorCode) && + Objects.equals(this.links, apiResultListResponsibilityAssignment.links) && + Objects.equals(this.message, apiResultListResponsibilityAssignment.message) && + Objects.equals(this.responseCode, apiResultListResponsibilityAssignment.responseCode) && + Objects.equals(this.stackTrace, apiResultListResponsibilityAssignment.stackTrace) && + Objects.equals(this.successCount, apiResultListResponsibilityAssignment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListResponsibilityAssignment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResultProcessingRule.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResultProcessingRule.java new file mode 100644 index 0000000..bbc7e87 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListResultProcessingRule.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ResultProcessingRule; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListResultProcessingRule + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListResultProcessingRule { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListResultProcessingRule count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListResultProcessingRule data(List data) { + this.data = data; + return this; + } + + public ApiResultListResultProcessingRule addDataItem(ResultProcessingRule dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListResultProcessingRule errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListResultProcessingRule links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListResultProcessingRule message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListResultProcessingRule responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListResultProcessingRule stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListResultProcessingRule successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListResultProcessingRule apiResultListResultProcessingRule = (ApiResultListResultProcessingRule) o; + return Objects.equals(this.count, apiResultListResultProcessingRule.count) && + Objects.equals(this.data, apiResultListResultProcessingRule.data) && + Objects.equals(this.errorCode, apiResultListResultProcessingRule.errorCode) && + Objects.equals(this.links, apiResultListResultProcessingRule.links) && + Objects.equals(this.message, apiResultListResultProcessingRule.message) && + Objects.equals(this.responseCode, apiResultListResultProcessingRule.responseCode) && + Objects.equals(this.stackTrace, apiResultListResultProcessingRule.stackTrace) && + Objects.equals(this.successCount, apiResultListResultProcessingRule.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListResultProcessingRule {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRole.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRole.java new file mode 100644 index 0000000..a95dc47 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRole.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Role; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListRole + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListRole { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListRole count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListRole data(List data) { + this.data = data; + return this; + } + + public ApiResultListRole addDataItem(Role dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListRole errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListRole links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListRole message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListRole responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListRole stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListRole successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListRole apiResultListRole = (ApiResultListRole) o; + return Objects.equals(this.count, apiResultListRole.count) && + Objects.equals(this.data, apiResultListRole.data) && + Objects.equals(this.errorCode, apiResultListRole.errorCode) && + Objects.equals(this.links, apiResultListRole.links) && + Objects.equals(this.message, apiResultListRole.message) && + Objects.equals(this.responseCode, apiResultListRole.responseCode) && + Objects.equals(this.stackTrace, apiResultListRole.stackTrace) && + Objects.equals(this.successCount, apiResultListRole.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListRole {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepackCore.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepackCore.java new file mode 100644 index 0000000..4d1fc06 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepackCore.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.RulepackCore; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListRulepackCore + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListRulepackCore { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListRulepackCore count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListRulepackCore data(List data) { + this.data = data; + return this; + } + + public ApiResultListRulepackCore addDataItem(RulepackCore dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListRulepackCore errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListRulepackCore links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListRulepackCore message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListRulepackCore responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListRulepackCore stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListRulepackCore successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListRulepackCore apiResultListRulepackCore = (ApiResultListRulepackCore) o; + return Objects.equals(this.count, apiResultListRulepackCore.count) && + Objects.equals(this.data, apiResultListRulepackCore.data) && + Objects.equals(this.errorCode, apiResultListRulepackCore.errorCode) && + Objects.equals(this.links, apiResultListRulepackCore.links) && + Objects.equals(this.message, apiResultListRulepackCore.message) && + Objects.equals(this.responseCode, apiResultListRulepackCore.responseCode) && + Objects.equals(this.stackTrace, apiResultListRulepackCore.stackTrace) && + Objects.equals(this.successCount, apiResultListRulepackCore.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListRulepackCore {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepacksBatchProcessStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepacksBatchProcessStatus.java new file mode 100644 index 0000000..bf8155d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListRulepacksBatchProcessStatus.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.RulepacksBatchProcessStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListRulepacksBatchProcessStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListRulepacksBatchProcessStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListRulepacksBatchProcessStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListRulepacksBatchProcessStatus data(List data) { + this.data = data; + return this; + } + + public ApiResultListRulepacksBatchProcessStatus addDataItem(RulepacksBatchProcessStatus dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListRulepacksBatchProcessStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListRulepacksBatchProcessStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListRulepacksBatchProcessStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListRulepacksBatchProcessStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListRulepacksBatchProcessStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListRulepacksBatchProcessStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListRulepacksBatchProcessStatus apiResultListRulepacksBatchProcessStatus = (ApiResultListRulepacksBatchProcessStatus) o; + return Objects.equals(this.count, apiResultListRulepacksBatchProcessStatus.count) && + Objects.equals(this.data, apiResultListRulepacksBatchProcessStatus.data) && + Objects.equals(this.errorCode, apiResultListRulepacksBatchProcessStatus.errorCode) && + Objects.equals(this.links, apiResultListRulepacksBatchProcessStatus.links) && + Objects.equals(this.message, apiResultListRulepacksBatchProcessStatus.message) && + Objects.equals(this.responseCode, apiResultListRulepacksBatchProcessStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultListRulepacksBatchProcessStatus.stackTrace) && + Objects.equals(this.successCount, apiResultListRulepacksBatchProcessStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListRulepacksBatchProcessStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSavedReport.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSavedReport.java new file mode 100644 index 0000000..a0aa00a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSavedReport.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SavedReport; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListSavedReport + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListSavedReport { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListSavedReport count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListSavedReport data(List data) { + this.data = data; + return this; + } + + public ApiResultListSavedReport addDataItem(SavedReport dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListSavedReport errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListSavedReport links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListSavedReport message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListSavedReport responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListSavedReport stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListSavedReport successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListSavedReport apiResultListSavedReport = (ApiResultListSavedReport) o; + return Objects.equals(this.count, apiResultListSavedReport.count) && + Objects.equals(this.data, apiResultListSavedReport.data) && + Objects.equals(this.errorCode, apiResultListSavedReport.errorCode) && + Objects.equals(this.links, apiResultListSavedReport.links) && + Objects.equals(this.message, apiResultListSavedReport.message) && + Objects.equals(this.responseCode, apiResultListSavedReport.responseCode) && + Objects.equals(this.stackTrace, apiResultListSavedReport.stackTrace) && + Objects.equals(this.successCount, apiResultListSavedReport.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListSavedReport {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListScan.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListScan.java new file mode 100644 index 0000000..a2f6933 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListScan.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Scan; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListScan + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListScan { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListScan count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListScan data(List data) { + this.data = data; + return this; + } + + public ApiResultListScan addDataItem(Scan dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListScan errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListScan links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListScan message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListScan responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListScan stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListScan successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListScan apiResultListScan = (ApiResultListScan) o; + return Objects.equals(this.count, apiResultListScan.count) && + Objects.equals(this.data, apiResultListScan.data) && + Objects.equals(this.errorCode, apiResultListScan.errorCode) && + Objects.equals(this.links, apiResultListScan.links) && + Objects.equals(this.message, apiResultListScan.message) && + Objects.equals(this.responseCode, apiResultListScan.responseCode) && + Objects.equals(this.stackTrace, apiResultListScan.stackTrace) && + Objects.equals(this.successCount, apiResultListScan.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListScan {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSourceFileDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSourceFileDto.java new file mode 100644 index 0000000..3d52f35 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSourceFileDto.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SourceFileDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListSourceFileDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListSourceFileDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListSourceFileDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListSourceFileDto data(List data) { + this.data = data; + return this; + } + + public ApiResultListSourceFileDto addDataItem(SourceFileDto dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListSourceFileDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListSourceFileDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListSourceFileDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListSourceFileDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListSourceFileDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListSourceFileDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListSourceFileDto apiResultListSourceFileDto = (ApiResultListSourceFileDto) o; + return Objects.equals(this.count, apiResultListSourceFileDto.count) && + Objects.equals(this.data, apiResultListSourceFileDto.data) && + Objects.equals(this.errorCode, apiResultListSourceFileDto.errorCode) && + Objects.equals(this.links, apiResultListSourceFileDto.links) && + Objects.equals(this.message, apiResultListSourceFileDto.message) && + Objects.equals(this.responseCode, apiResultListSourceFileDto.responseCode) && + Objects.equals(this.stackTrace, apiResultListSourceFileDto.stackTrace) && + Objects.equals(this.successCount, apiResultListSourceFileDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListSourceFileDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSystemConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSystemConfiguration.java new file mode 100644 index 0000000..3fbb7fd --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListSystemConfiguration.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SystemConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListSystemConfiguration + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListSystemConfiguration { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListSystemConfiguration count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListSystemConfiguration data(List data) { + this.data = data; + return this; + } + + public ApiResultListSystemConfiguration addDataItem(SystemConfiguration dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListSystemConfiguration errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListSystemConfiguration links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListSystemConfiguration message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListSystemConfiguration responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListSystemConfiguration stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListSystemConfiguration successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListSystemConfiguration apiResultListSystemConfiguration = (ApiResultListSystemConfiguration) o; + return Objects.equals(this.count, apiResultListSystemConfiguration.count) && + Objects.equals(this.data, apiResultListSystemConfiguration.data) && + Objects.equals(this.errorCode, apiResultListSystemConfiguration.errorCode) && + Objects.equals(this.links, apiResultListSystemConfiguration.links) && + Objects.equals(this.message, apiResultListSystemConfiguration.message) && + Objects.equals(this.responseCode, apiResultListSystemConfiguration.responseCode) && + Objects.equals(this.stackTrace, apiResultListSystemConfiguration.stackTrace) && + Objects.equals(this.successCount, apiResultListSystemConfiguration.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListSystemConfiguration {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListTokenDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListTokenDefinition.java new file mode 100644 index 0000000..53cafa6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListTokenDefinition.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.TokenDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListTokenDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListTokenDefinition { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListTokenDefinition count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListTokenDefinition data(List data) { + this.data = data; + return this; + } + + public ApiResultListTokenDefinition addDataItem(TokenDefinition dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListTokenDefinition errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListTokenDefinition links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListTokenDefinition message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListTokenDefinition responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListTokenDefinition stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListTokenDefinition successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListTokenDefinition apiResultListTokenDefinition = (ApiResultListTokenDefinition) o; + return Objects.equals(this.count, apiResultListTokenDefinition.count) && + Objects.equals(this.data, apiResultListTokenDefinition.data) && + Objects.equals(this.errorCode, apiResultListTokenDefinition.errorCode) && + Objects.equals(this.links, apiResultListTokenDefinition.links) && + Objects.equals(this.message, apiResultListTokenDefinition.message) && + Objects.equals(this.responseCode, apiResultListTokenDefinition.responseCode) && + Objects.equals(this.stackTrace, apiResultListTokenDefinition.stackTrace) && + Objects.equals(this.successCount, apiResultListTokenDefinition.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListTokenDefinition {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListUserSessionState.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListUserSessionState.java new file mode 100644 index 0000000..93f7408 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListUserSessionState.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.UserSessionState; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListUserSessionState + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListUserSessionState { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListUserSessionState count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListUserSessionState data(List data) { + this.data = data; + return this; + } + + public ApiResultListUserSessionState addDataItem(UserSessionState dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListUserSessionState errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListUserSessionState links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListUserSessionState message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListUserSessionState responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListUserSessionState stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListUserSessionState successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListUserSessionState apiResultListUserSessionState = (ApiResultListUserSessionState) o; + return Objects.equals(this.count, apiResultListUserSessionState.count) && + Objects.equals(this.data, apiResultListUserSessionState.data) && + Objects.equals(this.errorCode, apiResultListUserSessionState.errorCode) && + Objects.equals(this.links, apiResultListUserSessionState.links) && + Objects.equals(this.message, apiResultListUserSessionState.message) && + Objects.equals(this.responseCode, apiResultListUserSessionState.responseCode) && + Objects.equals(this.stackTrace, apiResultListUserSessionState.stackTrace) && + Objects.equals(this.successCount, apiResultListUserSessionState.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListUserSessionState {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariable.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariable.java new file mode 100644 index 0000000..a22db18 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariable.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Variable; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListVariable + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListVariable { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListVariable count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListVariable data(List data) { + this.data = data; + return this; + } + + public ApiResultListVariable addDataItem(Variable dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListVariable errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListVariable links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListVariable message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListVariable responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListVariable stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListVariable successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListVariable apiResultListVariable = (ApiResultListVariable) o; + return Objects.equals(this.count, apiResultListVariable.count) && + Objects.equals(this.data, apiResultListVariable.data) && + Objects.equals(this.errorCode, apiResultListVariable.errorCode) && + Objects.equals(this.links, apiResultListVariable.links) && + Objects.equals(this.message, apiResultListVariable.message) && + Objects.equals(this.responseCode, apiResultListVariable.responseCode) && + Objects.equals(this.stackTrace, apiResultListVariable.stackTrace) && + Objects.equals(this.successCount, apiResultListVariable.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListVariable {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariableHistory.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariableHistory.java new file mode 100644 index 0000000..ff2beba --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListVariableHistory.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.VariableHistory; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListVariableHistory + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListVariableHistory { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListVariableHistory count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListVariableHistory data(List data) { + this.data = data; + return this; + } + + public ApiResultListVariableHistory addDataItem(VariableHistory dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListVariableHistory errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListVariableHistory links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListVariableHistory message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListVariableHistory responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListVariableHistory stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListVariableHistory successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListVariableHistory apiResultListVariableHistory = (ApiResultListVariableHistory) o; + return Objects.equals(this.count, apiResultListVariableHistory.count) && + Objects.equals(this.data, apiResultListVariableHistory.data) && + Objects.equals(this.errorCode, apiResultListVariableHistory.errorCode) && + Objects.equals(this.links, apiResultListVariableHistory.links) && + Objects.equals(this.message, apiResultListVariableHistory.message) && + Objects.equals(this.responseCode, apiResultListVariableHistory.responseCode) && + Objects.equals(this.stackTrace, apiResultListVariableHistory.stackTrace) && + Objects.equals(this.successCount, apiResultListVariableHistory.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListVariableHistory {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultListscanError.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListscanError.java new file mode 100644 index 0000000..e11f574 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultListscanError.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ScanError; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ApiResultListscanError + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultListscanError { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private List data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultListscanError count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultListscanError data(List data) { + this.data = data; + return this; + } + + public ApiResultListscanError addDataItem(ScanError dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ApiResultListscanError errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultListscanError links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultListscanError message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultListscanError responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultListscanError stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultListscanError successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultListscanError apiResultListscanError = (ApiResultListscanError) o; + return Objects.equals(this.count, apiResultListscanError.count) && + Objects.equals(this.data, apiResultListscanError.data) && + Objects.equals(this.errorCode, apiResultListscanError.errorCode) && + Objects.equals(this.links, apiResultListscanError.links) && + Objects.equals(this.message, apiResultListscanError.message) && + Objects.equals(this.responseCode, apiResultListscanError.responseCode) && + Objects.equals(this.stackTrace, apiResultListscanError.stackTrace) && + Objects.equals(this.successCount, apiResultListscanError.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultListscanError {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultLocalUser.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLocalUser.java new file mode 100644 index 0000000..4288205 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultLocalUser.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LocalUser; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultLocalUser + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultLocalUser { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private LocalUser data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultLocalUser count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultLocalUser data(LocalUser data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public LocalUser getData() { + return data; + } + + public void setData(LocalUser data) { + this.data = data; + } + + public ApiResultLocalUser errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultLocalUser links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultLocalUser message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultLocalUser responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultLocalUser stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultLocalUser successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultLocalUser apiResultLocalUser = (ApiResultLocalUser) o; + return Objects.equals(this.count, apiResultLocalUser.count) && + Objects.equals(this.data, apiResultLocalUser.data) && + Objects.equals(this.errorCode, apiResultLocalUser.errorCode) && + Objects.equals(this.links, apiResultLocalUser.links) && + Objects.equals(this.message, apiResultLocalUser.message) && + Objects.equals(this.responseCode, apiResultLocalUser.responseCode) && + Objects.equals(this.stackTrace, apiResultLocalUser.stackTrace) && + Objects.equals(this.successCount, apiResultLocalUser.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultLocalUser {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPasswordStrengthCheckResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPasswordStrengthCheckResponse.java new file mode 100644 index 0000000..8e469ce --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPasswordStrengthCheckResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PasswordStrengthCheckResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPasswordStrengthCheckResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPasswordStrengthCheckResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private PasswordStrengthCheckResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPasswordStrengthCheckResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPasswordStrengthCheckResponse data(PasswordStrengthCheckResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public PasswordStrengthCheckResponse getData() { + return data; + } + + public void setData(PasswordStrengthCheckResponse data) { + this.data = data; + } + + public ApiResultPasswordStrengthCheckResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPasswordStrengthCheckResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPasswordStrengthCheckResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPasswordStrengthCheckResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPasswordStrengthCheckResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPasswordStrengthCheckResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPasswordStrengthCheckResponse apiResultPasswordStrengthCheckResponse = (ApiResultPasswordStrengthCheckResponse) o; + return Objects.equals(this.count, apiResultPasswordStrengthCheckResponse.count) && + Objects.equals(this.data, apiResultPasswordStrengthCheckResponse.data) && + Objects.equals(this.errorCode, apiResultPasswordStrengthCheckResponse.errorCode) && + Objects.equals(this.links, apiResultPasswordStrengthCheckResponse.links) && + Objects.equals(this.message, apiResultPasswordStrengthCheckResponse.message) && + Objects.equals(this.responseCode, apiResultPasswordStrengthCheckResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultPasswordStrengthCheckResponse.stackTrace) && + Objects.equals(this.successCount, apiResultPasswordStrengthCheckResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPasswordStrengthCheckResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicator.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicator.java new file mode 100644 index 0000000..650c103 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicator.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PerformanceIndicator; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPerformanceIndicator + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPerformanceIndicator { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private PerformanceIndicator data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPerformanceIndicator count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPerformanceIndicator data(PerformanceIndicator data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public PerformanceIndicator getData() { + return data; + } + + public void setData(PerformanceIndicator data) { + this.data = data; + } + + public ApiResultPerformanceIndicator errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPerformanceIndicator links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPerformanceIndicator message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPerformanceIndicator responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPerformanceIndicator stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPerformanceIndicator successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPerformanceIndicator apiResultPerformanceIndicator = (ApiResultPerformanceIndicator) o; + return Objects.equals(this.count, apiResultPerformanceIndicator.count) && + Objects.equals(this.data, apiResultPerformanceIndicator.data) && + Objects.equals(this.errorCode, apiResultPerformanceIndicator.errorCode) && + Objects.equals(this.links, apiResultPerformanceIndicator.links) && + Objects.equals(this.message, apiResultPerformanceIndicator.message) && + Objects.equals(this.responseCode, apiResultPerformanceIndicator.responseCode) && + Objects.equals(this.stackTrace, apiResultPerformanceIndicator.stackTrace) && + Objects.equals(this.successCount, apiResultPerformanceIndicator.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPerformanceIndicator {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicatorHistory.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicatorHistory.java new file mode 100644 index 0000000..5d8b8c7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPerformanceIndicatorHistory.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PerformanceIndicatorHistory; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPerformanceIndicatorHistory + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPerformanceIndicatorHistory { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private PerformanceIndicatorHistory data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPerformanceIndicatorHistory count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPerformanceIndicatorHistory data(PerformanceIndicatorHistory data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public PerformanceIndicatorHistory getData() { + return data; + } + + public void setData(PerformanceIndicatorHistory data) { + this.data = data; + } + + public ApiResultPerformanceIndicatorHistory errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPerformanceIndicatorHistory links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPerformanceIndicatorHistory message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPerformanceIndicatorHistory responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPerformanceIndicatorHistory stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPerformanceIndicatorHistory successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPerformanceIndicatorHistory apiResultPerformanceIndicatorHistory = (ApiResultPerformanceIndicatorHistory) o; + return Objects.equals(this.count, apiResultPerformanceIndicatorHistory.count) && + Objects.equals(this.data, apiResultPerformanceIndicatorHistory.data) && + Objects.equals(this.errorCode, apiResultPerformanceIndicatorHistory.errorCode) && + Objects.equals(this.links, apiResultPerformanceIndicatorHistory.links) && + Objects.equals(this.message, apiResultPerformanceIndicatorHistory.message) && + Objects.equals(this.responseCode, apiResultPerformanceIndicatorHistory.responseCode) && + Objects.equals(this.stackTrace, apiResultPerformanceIndicatorHistory.stackTrace) && + Objects.equals(this.successCount, apiResultPerformanceIndicatorHistory.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPerformanceIndicatorHistory {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPermission.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPermission.java new file mode 100644 index 0000000..12f840b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPermission.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Permission; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPermission + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPermission { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Permission data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPermission count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPermission data(Permission data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Permission getData() { + return data; + } + + public void setData(Permission data) { + this.data = data; + } + + public ApiResultPermission errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPermission links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPermission message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPermission responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPermission stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPermission successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPermission apiResultPermission = (ApiResultPermission) o; + return Objects.equals(this.count, apiResultPermission.count) && + Objects.equals(this.data, apiResultPermission.data) && + Objects.equals(this.errorCode, apiResultPermission.errorCode) && + Objects.equals(this.links, apiResultPermission.links) && + Objects.equals(this.message, apiResultPermission.message) && + Objects.equals(this.responseCode, apiResultPermission.responseCode) && + Objects.equals(this.stackTrace, apiResultPermission.stackTrace) && + Objects.equals(this.successCount, apiResultPermission.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPermission {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPersona.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPersona.java new file mode 100644 index 0000000..b358b1a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPersona.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Persona; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPersona + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPersona { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Persona data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPersona count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPersona data(Persona data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Persona getData() { + return data; + } + + public void setData(Persona data) { + this.data = data; + } + + public ApiResultPersona errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPersona links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPersona message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPersona responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPersona stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPersona successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPersona apiResultPersona = (ApiResultPersona) o; + return Objects.equals(this.count, apiResultPersona.count) && + Objects.equals(this.data, apiResultPersona.data) && + Objects.equals(this.errorCode, apiResultPersona.errorCode) && + Objects.equals(this.links, apiResultPersona.links) && + Objects.equals(this.message, apiResultPersona.message) && + Objects.equals(this.responseCode, apiResultPersona.responseCode) && + Objects.equals(this.stackTrace, apiResultPersona.stackTrace) && + Objects.equals(this.successCount, apiResultPersona.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPersona {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginLocalization.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginLocalization.java new file mode 100644 index 0000000..eeea497 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginLocalization.java @@ -0,0 +1,265 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * ApiResultPluginLocalization + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPluginLocalization { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Map data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPluginLocalization count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPluginLocalization data(Map data) { + this.data = data; + return this; + } + + public ApiResultPluginLocalization putDataItem(String key, Object dataItem) { + if (this.data == null) { + this.data = new HashMap(); + } + this.data.put(key, dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Map getData() { + return data; + } + + public void setData(Map data) { + this.data = data; + } + + public ApiResultPluginLocalization errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPluginLocalization links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPluginLocalization message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPluginLocalization responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPluginLocalization stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPluginLocalization successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPluginLocalization apiResultPluginLocalization = (ApiResultPluginLocalization) o; + return Objects.equals(this.count, apiResultPluginLocalization.count) && + Objects.equals(this.data, apiResultPluginLocalization.data) && + Objects.equals(this.errorCode, apiResultPluginLocalization.errorCode) && + Objects.equals(this.links, apiResultPluginLocalization.links) && + Objects.equals(this.message, apiResultPluginLocalization.message) && + Objects.equals(this.responseCode, apiResultPluginLocalization.responseCode) && + Objects.equals(this.stackTrace, apiResultPluginLocalization.stackTrace) && + Objects.equals(this.successCount, apiResultPluginLocalization.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPluginLocalization {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginMetaData.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginMetaData.java new file mode 100644 index 0000000..d507112 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultPluginMetaData.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PluginMetaData; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultPluginMetaData + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultPluginMetaData { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private PluginMetaData data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultPluginMetaData count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultPluginMetaData data(PluginMetaData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public PluginMetaData getData() { + return data; + } + + public void setData(PluginMetaData data) { + this.data = data; + } + + public ApiResultPluginMetaData errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultPluginMetaData links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultPluginMetaData message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultPluginMetaData responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultPluginMetaData stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultPluginMetaData successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultPluginMetaData apiResultPluginMetaData = (ApiResultPluginMetaData) o; + return Objects.equals(this.count, apiResultPluginMetaData.count) && + Objects.equals(this.data, apiResultPluginMetaData.data) && + Objects.equals(this.errorCode, apiResultPluginMetaData.errorCode) && + Objects.equals(this.links, apiResultPluginMetaData.links) && + Objects.equals(this.message, apiResultPluginMetaData.message) && + Objects.equals(this.responseCode, apiResultPluginMetaData.responseCode) && + Objects.equals(this.stackTrace, apiResultPluginMetaData.stackTrace) && + Objects.equals(this.successCount, apiResultPluginMetaData.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultPluginMetaData {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProject.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProject.java new file mode 100644 index 0000000..2bf9496 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProject.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Project; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProject + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProject { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Project data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProject count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProject data(Project data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Project getData() { + return data; + } + + public void setData(Project data) { + this.data = data; + } + + public ApiResultProject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProject links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProject message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProject responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProject stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProject successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProject apiResultProject = (ApiResultProject) o; + return Objects.equals(this.count, apiResultProject.count) && + Objects.equals(this.data, apiResultProject.data) && + Objects.equals(this.errorCode, apiResultProject.errorCode) && + Objects.equals(this.links, apiResultProject.links) && + Objects.equals(this.message, apiResultProject.message) && + Objects.equals(this.responseCode, apiResultProject.responseCode) && + Objects.equals(this.stackTrace, apiResultProject.stackTrace) && + Objects.equals(this.successCount, apiResultProject.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProject {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersion.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersion.java new file mode 100644 index 0000000..3e7a6fd --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersion.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProjectVersion + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProjectVersion { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ProjectVersion data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProjectVersion count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProjectVersion data(ProjectVersion data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ProjectVersion getData() { + return data; + } + + public void setData(ProjectVersion data) { + this.data = data; + } + + public ApiResultProjectVersion errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProjectVersion links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProjectVersion message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProjectVersion responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProjectVersion stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProjectVersion successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProjectVersion apiResultProjectVersion = (ApiResultProjectVersion) o; + return Objects.equals(this.count, apiResultProjectVersion.count) && + Objects.equals(this.data, apiResultProjectVersion.data) && + Objects.equals(this.errorCode, apiResultProjectVersion.errorCode) && + Objects.equals(this.links, apiResultProjectVersion.links) && + Objects.equals(this.message, apiResultProjectVersion.message) && + Objects.equals(this.responseCode, apiResultProjectVersion.responseCode) && + Objects.equals(this.stackTrace, apiResultProjectVersion.stackTrace) && + Objects.equals(this.successCount, apiResultProjectVersion.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProjectVersion {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssue.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssue.java new file mode 100644 index 0000000..9e152fb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssue.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionIssue; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProjectVersionIssue + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProjectVersionIssue { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ProjectVersionIssue data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProjectVersionIssue count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProjectVersionIssue data(ProjectVersionIssue data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ProjectVersionIssue getData() { + return data; + } + + public void setData(ProjectVersionIssue data) { + this.data = data; + } + + public ApiResultProjectVersionIssue errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProjectVersionIssue links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProjectVersionIssue message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProjectVersionIssue responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProjectVersionIssue stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProjectVersionIssue successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProjectVersionIssue apiResultProjectVersionIssue = (ApiResultProjectVersionIssue) o; + return Objects.equals(this.count, apiResultProjectVersionIssue.count) && + Objects.equals(this.data, apiResultProjectVersionIssue.data) && + Objects.equals(this.errorCode, apiResultProjectVersionIssue.errorCode) && + Objects.equals(this.links, apiResultProjectVersionIssue.links) && + Objects.equals(this.message, apiResultProjectVersionIssue.message) && + Objects.equals(this.responseCode, apiResultProjectVersionIssue.responseCode) && + Objects.equals(this.stackTrace, apiResultProjectVersionIssue.stackTrace) && + Objects.equals(this.successCount, apiResultProjectVersionIssue.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProjectVersionIssue {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssueDetails.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssueDetails.java new file mode 100644 index 0000000..73a4b5a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionIssueDetails.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionIssueDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProjectVersionIssueDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProjectVersionIssueDetails { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ProjectVersionIssueDetails data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProjectVersionIssueDetails count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProjectVersionIssueDetails data(ProjectVersionIssueDetails data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ProjectVersionIssueDetails getData() { + return data; + } + + public void setData(ProjectVersionIssueDetails data) { + this.data = data; + } + + public ApiResultProjectVersionIssueDetails errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProjectVersionIssueDetails links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProjectVersionIssueDetails message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProjectVersionIssueDetails responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProjectVersionIssueDetails stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProjectVersionIssueDetails successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProjectVersionIssueDetails apiResultProjectVersionIssueDetails = (ApiResultProjectVersionIssueDetails) o; + return Objects.equals(this.count, apiResultProjectVersionIssueDetails.count) && + Objects.equals(this.data, apiResultProjectVersionIssueDetails.data) && + Objects.equals(this.errorCode, apiResultProjectVersionIssueDetails.errorCode) && + Objects.equals(this.links, apiResultProjectVersionIssueDetails.links) && + Objects.equals(this.message, apiResultProjectVersionIssueDetails.message) && + Objects.equals(this.responseCode, apiResultProjectVersionIssueDetails.responseCode) && + Objects.equals(this.stackTrace, apiResultProjectVersionIssueDetails.stackTrace) && + Objects.equals(this.successCount, apiResultProjectVersionIssueDetails.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProjectVersionIssueDetails {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionRefreshResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionRefreshResponse.java new file mode 100644 index 0000000..10c9be0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionRefreshResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionRefreshResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProjectVersionRefreshResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProjectVersionRefreshResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ProjectVersionRefreshResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProjectVersionRefreshResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProjectVersionRefreshResponse data(ProjectVersionRefreshResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ProjectVersionRefreshResponse getData() { + return data; + } + + public void setData(ProjectVersionRefreshResponse data) { + this.data = data; + } + + public ApiResultProjectVersionRefreshResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProjectVersionRefreshResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProjectVersionRefreshResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProjectVersionRefreshResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProjectVersionRefreshResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProjectVersionRefreshResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProjectVersionRefreshResponse apiResultProjectVersionRefreshResponse = (ApiResultProjectVersionRefreshResponse) o; + return Objects.equals(this.count, apiResultProjectVersionRefreshResponse.count) && + Objects.equals(this.data, apiResultProjectVersionRefreshResponse.data) && + Objects.equals(this.errorCode, apiResultProjectVersionRefreshResponse.errorCode) && + Objects.equals(this.links, apiResultProjectVersionRefreshResponse.links) && + Objects.equals(this.message, apiResultProjectVersionRefreshResponse.message) && + Objects.equals(this.responseCode, apiResultProjectVersionRefreshResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultProjectVersionRefreshResponse.stackTrace) && + Objects.equals(this.successCount, apiResultProjectVersionRefreshResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProjectVersionRefreshResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionTestResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionTestResponse.java new file mode 100644 index 0000000..615e0a3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultProjectVersionTestResponse.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionTestResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultProjectVersionTestResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultProjectVersionTestResponse { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ProjectVersionTestResponse data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultProjectVersionTestResponse count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultProjectVersionTestResponse data(ProjectVersionTestResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ProjectVersionTestResponse getData() { + return data; + } + + public void setData(ProjectVersionTestResponse data) { + this.data = data; + } + + public ApiResultProjectVersionTestResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultProjectVersionTestResponse links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultProjectVersionTestResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultProjectVersionTestResponse responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultProjectVersionTestResponse stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultProjectVersionTestResponse successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultProjectVersionTestResponse apiResultProjectVersionTestResponse = (ApiResultProjectVersionTestResponse) o; + return Objects.equals(this.count, apiResultProjectVersionTestResponse.count) && + Objects.equals(this.data, apiResultProjectVersionTestResponse.data) && + Objects.equals(this.errorCode, apiResultProjectVersionTestResponse.errorCode) && + Objects.equals(this.links, apiResultProjectVersionTestResponse.links) && + Objects.equals(this.message, apiResultProjectVersionTestResponse.message) && + Objects.equals(this.responseCode, apiResultProjectVersionTestResponse.responseCode) && + Objects.equals(this.stackTrace, apiResultProjectVersionTestResponse.stackTrace) && + Objects.equals(this.successCount, apiResultProjectVersionTestResponse.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultProjectVersionTestResponse {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportDefinition.java new file mode 100644 index 0000000..ea03c69 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportDefinition.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultReportDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultReportDefinition { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ReportDefinition data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultReportDefinition count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultReportDefinition data(ReportDefinition data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ReportDefinition getData() { + return data; + } + + public void setData(ReportDefinition data) { + this.data = data; + } + + public ApiResultReportDefinition errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultReportDefinition links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultReportDefinition message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultReportDefinition responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultReportDefinition stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultReportDefinition successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultReportDefinition apiResultReportDefinition = (ApiResultReportDefinition) o; + return Objects.equals(this.count, apiResultReportDefinition.count) && + Objects.equals(this.data, apiResultReportDefinition.data) && + Objects.equals(this.errorCode, apiResultReportDefinition.errorCode) && + Objects.equals(this.links, apiResultReportDefinition.links) && + Objects.equals(this.message, apiResultReportDefinition.message) && + Objects.equals(this.responseCode, apiResultReportDefinition.responseCode) && + Objects.equals(this.stackTrace, apiResultReportDefinition.stackTrace) && + Objects.equals(this.successCount, apiResultReportDefinition.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultReportDefinition {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportLibrary.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportLibrary.java new file mode 100644 index 0000000..6cb0925 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultReportLibrary.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportLibrary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultReportLibrary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultReportLibrary { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ReportLibrary data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultReportLibrary count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultReportLibrary data(ReportLibrary data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ReportLibrary getData() { + return data; + } + + public void setData(ReportLibrary data) { + this.data = data; + } + + public ApiResultReportLibrary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultReportLibrary links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultReportLibrary message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultReportLibrary responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultReportLibrary stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultReportLibrary successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultReportLibrary apiResultReportLibrary = (ApiResultReportLibrary) o; + return Objects.equals(this.count, apiResultReportLibrary.count) && + Objects.equals(this.data, apiResultReportLibrary.data) && + Objects.equals(this.errorCode, apiResultReportLibrary.errorCode) && + Objects.equals(this.links, apiResultReportLibrary.links) && + Objects.equals(this.message, apiResultReportLibrary.message) && + Objects.equals(this.responseCode, apiResultReportLibrary.responseCode) && + Objects.equals(this.stackTrace, apiResultReportLibrary.stackTrace) && + Objects.equals(this.successCount, apiResultReportLibrary.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultReportLibrary {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultResponsibilityAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultResponsibilityAssignment.java new file mode 100644 index 0000000..5977d6e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultResponsibilityAssignment.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultResponsibilityAssignment + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultResponsibilityAssignment { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ResponsibilityAssignment data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultResponsibilityAssignment count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultResponsibilityAssignment data(ResponsibilityAssignment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ResponsibilityAssignment getData() { + return data; + } + + public void setData(ResponsibilityAssignment data) { + this.data = data; + } + + public ApiResultResponsibilityAssignment errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultResponsibilityAssignment links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultResponsibilityAssignment message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultResponsibilityAssignment responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultResponsibilityAssignment stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultResponsibilityAssignment successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultResponsibilityAssignment apiResultResponsibilityAssignment = (ApiResultResponsibilityAssignment) o; + return Objects.equals(this.count, apiResultResponsibilityAssignment.count) && + Objects.equals(this.data, apiResultResponsibilityAssignment.data) && + Objects.equals(this.errorCode, apiResultResponsibilityAssignment.errorCode) && + Objects.equals(this.links, apiResultResponsibilityAssignment.links) && + Objects.equals(this.message, apiResultResponsibilityAssignment.message) && + Objects.equals(this.responseCode, apiResultResponsibilityAssignment.responseCode) && + Objects.equals(this.stackTrace, apiResultResponsibilityAssignment.stackTrace) && + Objects.equals(this.successCount, apiResultResponsibilityAssignment.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultResponsibilityAssignment {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultRole.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultRole.java new file mode 100644 index 0000000..7de3556 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultRole.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Role; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultRole + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultRole { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Role data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultRole count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultRole data(Role data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Role getData() { + return data; + } + + public void setData(Role data) { + this.data = data; + } + + public ApiResultRole errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultRole links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultRole message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultRole responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultRole stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultRole successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultRole apiResultRole = (ApiResultRole) o; + return Objects.equals(this.count, apiResultRole.count) && + Objects.equals(this.data, apiResultRole.data) && + Objects.equals(this.errorCode, apiResultRole.errorCode) && + Objects.equals(this.links, apiResultRole.links) && + Objects.equals(this.message, apiResultRole.message) && + Objects.equals(this.responseCode, apiResultRole.responseCode) && + Objects.equals(this.stackTrace, apiResultRole.stackTrace) && + Objects.equals(this.successCount, apiResultRole.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultRole {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultSavedReport.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSavedReport.java new file mode 100644 index 0000000..044cb1e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSavedReport.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SavedReport; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultSavedReport + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultSavedReport { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private SavedReport data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultSavedReport count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultSavedReport data(SavedReport data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public SavedReport getData() { + return data; + } + + public void setData(SavedReport data) { + this.data = data; + } + + public ApiResultSavedReport errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultSavedReport links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultSavedReport message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultSavedReport responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultSavedReport stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultSavedReport successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultSavedReport apiResultSavedReport = (ApiResultSavedReport) o; + return Objects.equals(this.count, apiResultSavedReport.count) && + Objects.equals(this.data, apiResultSavedReport.data) && + Objects.equals(this.errorCode, apiResultSavedReport.errorCode) && + Objects.equals(this.links, apiResultSavedReport.links) && + Objects.equals(this.message, apiResultSavedReport.message) && + Objects.equals(this.responseCode, apiResultSavedReport.responseCode) && + Objects.equals(this.stackTrace, apiResultSavedReport.stackTrace) && + Objects.equals(this.successCount, apiResultSavedReport.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultSavedReport {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultScan.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultScan.java new file mode 100644 index 0000000..ccc076a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultScan.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Scan; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultScan + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultScan { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Scan data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultScan count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultScan data(Scan data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Scan getData() { + return data; + } + + public void setData(Scan data) { + this.data = data; + } + + public ApiResultScan errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultScan links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultScan message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultScan responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultScan stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultScan successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultScan apiResultScan = (ApiResultScan) o; + return Objects.equals(this.count, apiResultScan.count) && + Objects.equals(this.data, apiResultScan.data) && + Objects.equals(this.errorCode, apiResultScan.errorCode) && + Objects.equals(this.links, apiResultScan.links) && + Objects.equals(this.message, apiResultScan.message) && + Objects.equals(this.responseCode, apiResultScan.responseCode) && + Objects.equals(this.stackTrace, apiResultScan.stackTrace) && + Objects.equals(this.successCount, apiResultScan.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultScan {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultSearchIndexStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSearchIndexStatus.java new file mode 100644 index 0000000..5ea2a50 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSearchIndexStatus.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SearchIndexStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultSearchIndexStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultSearchIndexStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private SearchIndexStatus data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultSearchIndexStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultSearchIndexStatus data(SearchIndexStatus data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public SearchIndexStatus getData() { + return data; + } + + public void setData(SearchIndexStatus data) { + this.data = data; + } + + public ApiResultSearchIndexStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultSearchIndexStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultSearchIndexStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultSearchIndexStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultSearchIndexStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultSearchIndexStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultSearchIndexStatus apiResultSearchIndexStatus = (ApiResultSearchIndexStatus) o; + return Objects.equals(this.count, apiResultSearchIndexStatus.count) && + Objects.equals(this.data, apiResultSearchIndexStatus.data) && + Objects.equals(this.errorCode, apiResultSearchIndexStatus.errorCode) && + Objects.equals(this.links, apiResultSearchIndexStatus.links) && + Objects.equals(this.message, apiResultSearchIndexStatus.message) && + Objects.equals(this.responseCode, apiResultSearchIndexStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultSearchIndexStatus.stackTrace) && + Objects.equals(this.successCount, apiResultSearchIndexStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultSearchIndexStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultSourceFileDto.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSourceFileDto.java new file mode 100644 index 0000000..6aa9be4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSourceFileDto.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SourceFileDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultSourceFileDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultSourceFileDto { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private SourceFileDto data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultSourceFileDto count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultSourceFileDto data(SourceFileDto data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public SourceFileDto getData() { + return data; + } + + public void setData(SourceFileDto data) { + this.data = data; + } + + public ApiResultSourceFileDto errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultSourceFileDto links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultSourceFileDto message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultSourceFileDto responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultSourceFileDto stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultSourceFileDto successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultSourceFileDto apiResultSourceFileDto = (ApiResultSourceFileDto) o; + return Objects.equals(this.count, apiResultSourceFileDto.count) && + Objects.equals(this.data, apiResultSourceFileDto.data) && + Objects.equals(this.errorCode, apiResultSourceFileDto.errorCode) && + Objects.equals(this.links, apiResultSourceFileDto.links) && + Objects.equals(this.message, apiResultSourceFileDto.message) && + Objects.equals(this.responseCode, apiResultSourceFileDto.responseCode) && + Objects.equals(this.stackTrace, apiResultSourceFileDto.stackTrace) && + Objects.equals(this.successCount, apiResultSourceFileDto.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultSourceFileDto {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultSystemConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSystemConfiguration.java new file mode 100644 index 0000000..bcbaed8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultSystemConfiguration.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SystemConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultSystemConfiguration + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultSystemConfiguration { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private SystemConfiguration data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultSystemConfiguration count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultSystemConfiguration data(SystemConfiguration data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public SystemConfiguration getData() { + return data; + } + + public void setData(SystemConfiguration data) { + this.data = data; + } + + public ApiResultSystemConfiguration errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultSystemConfiguration links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultSystemConfiguration message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultSystemConfiguration responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultSystemConfiguration stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultSystemConfiguration successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultSystemConfiguration apiResultSystemConfiguration = (ApiResultSystemConfiguration) o; + return Objects.equals(this.count, apiResultSystemConfiguration.count) && + Objects.equals(this.data, apiResultSystemConfiguration.data) && + Objects.equals(this.errorCode, apiResultSystemConfiguration.errorCode) && + Objects.equals(this.links, apiResultSystemConfiguration.links) && + Objects.equals(this.message, apiResultSystemConfiguration.message) && + Objects.equals(this.responseCode, apiResultSystemConfiguration.responseCode) && + Objects.equals(this.stackTrace, apiResultSystemConfiguration.stackTrace) && + Objects.equals(this.successCount, apiResultSystemConfiguration.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultSystemConfiguration {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserIssueSearchOptions.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserIssueSearchOptions.java new file mode 100644 index 0000000..05e2879 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserIssueSearchOptions.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.UserIssueSearchOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultUserIssueSearchOptions + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultUserIssueSearchOptions { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private UserIssueSearchOptions data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultUserIssueSearchOptions count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultUserIssueSearchOptions data(UserIssueSearchOptions data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public UserIssueSearchOptions getData() { + return data; + } + + public void setData(UserIssueSearchOptions data) { + this.data = data; + } + + public ApiResultUserIssueSearchOptions errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultUserIssueSearchOptions links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultUserIssueSearchOptions message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultUserIssueSearchOptions responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultUserIssueSearchOptions stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultUserIssueSearchOptions successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultUserIssueSearchOptions apiResultUserIssueSearchOptions = (ApiResultUserIssueSearchOptions) o; + return Objects.equals(this.count, apiResultUserIssueSearchOptions.count) && + Objects.equals(this.data, apiResultUserIssueSearchOptions.data) && + Objects.equals(this.errorCode, apiResultUserIssueSearchOptions.errorCode) && + Objects.equals(this.links, apiResultUserIssueSearchOptions.links) && + Objects.equals(this.message, apiResultUserIssueSearchOptions.message) && + Objects.equals(this.responseCode, apiResultUserIssueSearchOptions.responseCode) && + Objects.equals(this.stackTrace, apiResultUserIssueSearchOptions.stackTrace) && + Objects.equals(this.successCount, apiResultUserIssueSearchOptions.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultUserIssueSearchOptions {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserPreferences.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserPreferences.java new file mode 100644 index 0000000..007a034 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserPreferences.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.UserPreferences; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultUserPreferences + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultUserPreferences { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private UserPreferences data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultUserPreferences count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultUserPreferences data(UserPreferences data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public UserPreferences getData() { + return data; + } + + public void setData(UserPreferences data) { + this.data = data; + } + + public ApiResultUserPreferences errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultUserPreferences links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultUserPreferences message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultUserPreferences responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultUserPreferences stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultUserPreferences successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultUserPreferences apiResultUserPreferences = (ApiResultUserPreferences) o; + return Objects.equals(this.count, apiResultUserPreferences.count) && + Objects.equals(this.data, apiResultUserPreferences.data) && + Objects.equals(this.errorCode, apiResultUserPreferences.errorCode) && + Objects.equals(this.links, apiResultUserPreferences.links) && + Objects.equals(this.message, apiResultUserPreferences.message) && + Objects.equals(this.responseCode, apiResultUserPreferences.responseCode) && + Objects.equals(this.stackTrace, apiResultUserPreferences.stackTrace) && + Objects.equals(this.successCount, apiResultUserPreferences.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultUserPreferences {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserSessionInformation.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserSessionInformation.java new file mode 100644 index 0000000..727a470 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultUserSessionInformation.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.UserSessionInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultUserSessionInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultUserSessionInformation { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private UserSessionInformation data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultUserSessionInformation count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultUserSessionInformation data(UserSessionInformation data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public UserSessionInformation getData() { + return data; + } + + public void setData(UserSessionInformation data) { + this.data = data; + } + + public ApiResultUserSessionInformation errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultUserSessionInformation links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultUserSessionInformation message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultUserSessionInformation responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultUserSessionInformation stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultUserSessionInformation successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultUserSessionInformation apiResultUserSessionInformation = (ApiResultUserSessionInformation) o; + return Objects.equals(this.count, apiResultUserSessionInformation.count) && + Objects.equals(this.data, apiResultUserSessionInformation.data) && + Objects.equals(this.errorCode, apiResultUserSessionInformation.errorCode) && + Objects.equals(this.links, apiResultUserSessionInformation.links) && + Objects.equals(this.message, apiResultUserSessionInformation.message) && + Objects.equals(this.responseCode, apiResultUserSessionInformation.responseCode) && + Objects.equals(this.stackTrace, apiResultUserSessionInformation.stackTrace) && + Objects.equals(this.successCount, apiResultUserSessionInformation.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultUserSessionInformation {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultValidationStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultValidationStatus.java new file mode 100644 index 0000000..2afd67f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultValidationStatus.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ValidationStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultValidationStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultValidationStatus { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private ValidationStatus data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultValidationStatus count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultValidationStatus data(ValidationStatus data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public ValidationStatus getData() { + return data; + } + + public void setData(ValidationStatus data) { + this.data = data; + } + + public ApiResultValidationStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultValidationStatus links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultValidationStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultValidationStatus responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultValidationStatus stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultValidationStatus successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultValidationStatus apiResultValidationStatus = (ApiResultValidationStatus) o; + return Objects.equals(this.count, apiResultValidationStatus.count) && + Objects.equals(this.data, apiResultValidationStatus.data) && + Objects.equals(this.errorCode, apiResultValidationStatus.errorCode) && + Objects.equals(this.links, apiResultValidationStatus.links) && + Objects.equals(this.message, apiResultValidationStatus.message) && + Objects.equals(this.responseCode, apiResultValidationStatus.responseCode) && + Objects.equals(this.stackTrace, apiResultValidationStatus.stackTrace) && + Objects.equals(this.successCount, apiResultValidationStatus.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultValidationStatus {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariable.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariable.java new file mode 100644 index 0000000..f5986e9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariable.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Variable; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultVariable + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultVariable { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private Variable data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultVariable count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultVariable data(Variable data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public Variable getData() { + return data; + } + + public void setData(Variable data) { + this.data = data; + } + + public ApiResultVariable errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultVariable links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultVariable message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultVariable responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultVariable stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultVariable successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultVariable apiResultVariable = (ApiResultVariable) o; + return Objects.equals(this.count, apiResultVariable.count) && + Objects.equals(this.data, apiResultVariable.data) && + Objects.equals(this.errorCode, apiResultVariable.errorCode) && + Objects.equals(this.links, apiResultVariable.links) && + Objects.equals(this.message, apiResultVariable.message) && + Objects.equals(this.responseCode, apiResultVariable.responseCode) && + Objects.equals(this.stackTrace, apiResultVariable.stackTrace) && + Objects.equals(this.successCount, apiResultVariable.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultVariable {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariableHistory.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariableHistory.java new file mode 100644 index 0000000..062ae1c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVariableHistory.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.VariableHistory; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultVariableHistory + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultVariableHistory { + @SerializedName("count") + private Long count = null; + + @SerializedName("data") + private VariableHistory data = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultVariableHistory count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultVariableHistory data(VariableHistory data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public VariableHistory getData() { + return data; + } + + public void setData(VariableHistory data) { + this.data = data; + } + + public ApiResultVariableHistory errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultVariableHistory links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultVariableHistory message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultVariableHistory responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultVariableHistory stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultVariableHistory successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultVariableHistory apiResultVariableHistory = (ApiResultVariableHistory) o; + return Objects.equals(this.count, apiResultVariableHistory.count) && + Objects.equals(this.data, apiResultVariableHistory.data) && + Objects.equals(this.errorCode, apiResultVariableHistory.errorCode) && + Objects.equals(this.links, apiResultVariableHistory.links) && + Objects.equals(this.message, apiResultVariableHistory.message) && + Objects.equals(this.responseCode, apiResultVariableHistory.responseCode) && + Objects.equals(this.stackTrace, apiResultVariableHistory.stackTrace) && + Objects.equals(this.successCount, apiResultVariableHistory.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, data, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultVariableHistory {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApiResultVoid.java b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVoid.java new file mode 100644 index 0000000..ca6d733 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApiResultVoid.java @@ -0,0 +1,231 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ApiResultVoid + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApiResultVoid { + @SerializedName("count") + private Long count = null; + + @SerializedName("errorCode") + private Integer errorCode = null; + + @SerializedName("links") + private Object links = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("responseCode") + private Integer responseCode = null; + + @SerializedName("stackTrace") + private String stackTrace = null; + + @SerializedName("successCount") + private Long successCount = null; + + public ApiResultVoid count(Long count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @ApiModelProperty(value = "") + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ApiResultVoid errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public ApiResultVoid links(Object links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ApiResultVoid message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ApiResultVoid responseCode(Integer responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + public Integer getResponseCode() { + return responseCode; + } + + public void setResponseCode(Integer responseCode) { + this.responseCode = responseCode; + } + + public ApiResultVoid stackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + /** + * Get stackTrace + * @return stackTrace + **/ + @ApiModelProperty(value = "") + public String getStackTrace() { + return stackTrace; + } + + public void setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + } + + public ApiResultVoid successCount(Long successCount) { + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @ApiModelProperty(value = "") + public Long getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResultVoid apiResultVoid = (ApiResultVoid) o; + return Objects.equals(this.count, apiResultVoid.count) && + Objects.equals(this.errorCode, apiResultVoid.errorCode) && + Objects.equals(this.links, apiResultVoid.links) && + Objects.equals(this.message, apiResultVoid.message) && + Objects.equals(this.responseCode, apiResultVoid.responseCode) && + Objects.equals(this.stackTrace, apiResultVoid.stackTrace) && + Objects.equals(this.successCount, apiResultVoid.successCount); + } + + @Override + public int hashCode() { + return Objects.hash(count, errorCode, links, message, responseCode, stackTrace, successCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResultVoid {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestRequest.java new file mode 100644 index 0000000..2097971 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestRequest.java @@ -0,0 +1,94 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of testing whether application with name, provided in ApplicationNameTestRequest, exists + */ +@ApiModel(description = "Request of testing whether application with name, provided in ApplicationNameTestRequest, exists") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApplicationNameTestRequest { + @SerializedName("applicationName") + private String applicationName = null; + + public ApplicationNameTestRequest applicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + + /** + * application name to test + * @return applicationName + **/ + @ApiModelProperty(required = true, value = "application name to test") + public String getApplicationName() { + return applicationName; + } + + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationNameTestRequest applicationNameTestRequest = (ApplicationNameTestRequest) o; + return Objects.equals(this.applicationName, applicationNameTestRequest.applicationName); + } + + @Override + public int hashCode() { + return Objects.hash(applicationName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationNameTestRequest {\n"); + + sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestResponse.java new file mode 100644 index 0000000..8e9d457 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApplicationNameTestResponse.java @@ -0,0 +1,85 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Response of testing whether application exists + */ +@ApiModel(description = "Response of testing whether application exists") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApplicationNameTestResponse { + @SerializedName("found") + private Boolean found = null; + + /** + * If application founds + * @return found + **/ + @ApiModelProperty(example = "false", value = "If application founds") + public Boolean isFound() { + return found; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationNameTestResponse applicationNameTestResponse = (ApplicationNameTestResponse) o; + return Objects.equals(this.found, applicationNameTestResponse.found); + } + + @Override + public int hashCode() { + return Objects.hash(found); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationNameTestResponse {\n"); + + sb.append(" found: ").append(toIndentedString(found)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ApplicationState.java b/src/main/java/com/fortify/ssc/restclient/model/ApplicationState.java new file mode 100644 index 0000000..6927369 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ApplicationState.java @@ -0,0 +1,136 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Application state DTO object + */ +@ApiModel(description = "Application state DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ApplicationState { + @SerializedName("autoConfigurationMode") + private Boolean autoConfigurationMode = null; + + @SerializedName("configVisitRequired") + private Boolean configVisitRequired = null; + + @SerializedName("maintenanceMode") + private Boolean maintenanceMode = null; + + @SerializedName("restartRequired") + private Boolean restartRequired = null; + + /** + * Indicates whether SSC application is in auto configuration mode + * @return autoConfigurationMode + **/ + @ApiModelProperty(example = "false", value = "Indicates whether SSC application is in auto configuration mode") + public Boolean isAutoConfigurationMode() { + return autoConfigurationMode; + } + + /** + * Indicates whether a config visit is needed + * @return configVisitRequired + **/ + @ApiModelProperty(example = "false", value = "Indicates whether a config visit is needed") + public Boolean isConfigVisitRequired() { + return configVisitRequired; + } + + public ApplicationState maintenanceMode(Boolean maintenanceMode) { + this.maintenanceMode = maintenanceMode; + return this; + } + + /** + * Indicates whether SSC application is in maintenance mode + * @return maintenanceMode + **/ + @ApiModelProperty(example = "false", value = "Indicates whether SSC application is in maintenance mode") + public Boolean isMaintenanceMode() { + return maintenanceMode; + } + + public void setMaintenanceMode(Boolean maintenanceMode) { + this.maintenanceMode = maintenanceMode; + } + + /** + * Indicates whether a restart is needed + * @return restartRequired + **/ + @ApiModelProperty(example = "false", value = "Indicates whether a restart is needed") + public Boolean isRestartRequired() { + return restartRequired; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationState applicationState = (ApplicationState) o; + return Objects.equals(this.autoConfigurationMode, applicationState.autoConfigurationMode) && + Objects.equals(this.configVisitRequired, applicationState.configVisitRequired) && + Objects.equals(this.maintenanceMode, applicationState.maintenanceMode) && + Objects.equals(this.restartRequired, applicationState.restartRequired); + } + + @Override + public int hashCode() { + return Objects.hash(autoConfigurationMode, configVisitRequired, maintenanceMode, restartRequired); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationState {\n"); + + sb.append(" autoConfigurationMode: ").append(toIndentedString(autoConfigurationMode)).append("\n"); + sb.append(" configVisitRequired: ").append(toIndentedString(configVisitRequired)).append("\n"); + sb.append(" maintenanceMode: ").append(toIndentedString(maintenanceMode)).append("\n"); + sb.append(" restartRequired: ").append(toIndentedString(restartRequired)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Artifact.java b/src/main/java/com/fortify/ssc/restclient/model/Artifact.java new file mode 100644 index 0000000..5efab82 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Artifact.java @@ -0,0 +1,1100 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EmbeddedScans; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Project version artifact that contains scan results. + */ +@ApiModel(description = "Project version artifact that contains scan results.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Artifact { + @SerializedName("_embed") + private EmbeddedScans embed = null; + + @SerializedName("allowApprove") + private Boolean allowApprove = null; + + @SerializedName("allowDelete") + private Boolean allowDelete = null; + + @SerializedName("allowPurge") + private Boolean allowPurge = null; + + @SerializedName("approvalComment") + private String approvalComment = null; + + @SerializedName("approvalDate") + private OffsetDateTime approvalDate = null; + + @SerializedName("approvalUsername") + private String approvalUsername = null; + + /** + * Gets or Sets artifactType + */ + @JsonAdapter(ArtifactTypeEnum.Adapter.class) + public enum ArtifactTypeEnum { + EMPTY(""), + + FPR("Fpr"), + + FPRPREPROCESS("FprPreProcess"), + + ANALYSISARTIFACT("AnalysisArtifact"), + + SOURCEARCHIVE("SourceArchive"), + + RUNTIMEEVENTLOG("RuntimeEventLog"); + + private String value; + + ArtifactTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ArtifactTypeEnum fromValue(String text) { + for (ArtifactTypeEnum b : ArtifactTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ArtifactTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ArtifactTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ArtifactTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("artifactType") + private ArtifactTypeEnum artifactType = null; + + @SerializedName("auditUpdated") + private Boolean auditUpdated = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("fileSize") + private Long fileSize = null; + + @SerializedName("fileURL") + private String fileURL = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inModifyingStatus") + private Boolean inModifyingStatus = null; + + @SerializedName("indexed") + private Boolean indexed = null; + + @SerializedName("lastScanDate") + private OffsetDateTime lastScanDate = null; + + @SerializedName("messageCount") + private Long messageCount = null; + + @SerializedName("messages") + private String messages = null; + + @SerializedName("originalFileName") + private String originalFileName = null; + + /** + * Gets or Sets otherStatus + */ + @JsonAdapter(OtherStatusEnum.Adapter.class) + public enum OtherStatusEnum { + EMPTY(""), + + NOTEXIST("NotExist"), + + IGNORED("Ignored"), + + PROCESSED("Processed"); + + private String value; + + OtherStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static OtherStatusEnum fromValue(String text) { + for (OtherStatusEnum b : OtherStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final OtherStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public OtherStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return OtherStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("otherStatus") + private OtherStatusEnum otherStatus = null; + + @SerializedName("purged") + private Boolean purged = null; + + /** + * Gets or Sets runtimeStatus + */ + @JsonAdapter(RuntimeStatusEnum.Adapter.class) + public enum RuntimeStatusEnum { + EMPTY(""), + + NOTEXIST("NotExist"), + + IGNORED("Ignored"), + + PROCESSED("Processed"); + + private String value; + + RuntimeStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RuntimeStatusEnum fromValue(String text) { + for (RuntimeStatusEnum b : RuntimeStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RuntimeStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RuntimeStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RuntimeStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("runtimeStatus") + private RuntimeStatusEnum runtimeStatus = null; + + /** + * Gets or Sets scaStatus + */ + @JsonAdapter(ScaStatusEnum.Adapter.class) + public enum ScaStatusEnum { + EMPTY(""), + + NOTEXIST("NotExist"), + + IGNORED("Ignored"), + + PROCESSED("Processed"); + + private String value; + + ScaStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ScaStatusEnum fromValue(String text) { + for (ScaStatusEnum b : ScaStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ScaStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ScaStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ScaStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("scaStatus") + private ScaStatusEnum scaStatus = null; + + @SerializedName("scanErrorsCount") + private Long scanErrorsCount = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + NONE("NONE"), + + SCHED_PROCESSING("SCHED_PROCESSING"), + + PROCESSING("PROCESSING"), + + PROCESS_COMPLETE("PROCESS_COMPLETE"), + + ERROR_PROCESSING("ERROR_PROCESSING"), + + REQUIRE_AUTH("REQUIRE_AUTH"), + + DELETING("DELETING"), + + ERROR_DELETING("ERROR_DELETING"), + + DELETED("DELETED"), + + PURGING("PURGING"), + + PURGED("PURGED"), + + ERROR_PURGING("ERROR_PURGING"), + + DISPATCH_ANALYSIS("DISPATCH_ANALYSIS"), + + DISPATCH_REAUDIT("DISPATCH_REAUDIT"), + + ERROR_DISPATCH("ERROR_DISPATCH"), + + QUEUED_ANALYSIS("QUEUED_ANALYSIS"), + + REQUEUED_ANALYSIS("REQUEUED_ANALYSIS"), + + ANALYZING("ANALYZING"), + + ANALYSIS_COMPLETE("ANALYSIS_COMPLETE"), + + ERROR_ANALYZING("ERROR_ANALYZING"), + + UNKNOWN("UNKNOWN"), + + AUDIT_FAILED("AUDIT_FAILED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("uploadDate") + private OffsetDateTime uploadDate = null; + + @SerializedName("uploadIP") + private String uploadIP = null; + + @SerializedName("userName") + private String userName = null; + + @SerializedName("versionNumber") + private Integer versionNumber = null; + + /** + * Gets or Sets webInspectStatus + */ + @JsonAdapter(WebInspectStatusEnum.Adapter.class) + public enum WebInspectStatusEnum { + EMPTY(""), + + NOTEXIST("NotExist"), + + IGNORED("Ignored"), + + PROCESSED("Processed"); + + private String value; + + WebInspectStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static WebInspectStatusEnum fromValue(String text) { + for (WebInspectStatusEnum b : WebInspectStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final WebInspectStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public WebInspectStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return WebInspectStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("webInspectStatus") + private WebInspectStatusEnum webInspectStatus = null; + + public Artifact embed(EmbeddedScans embed) { + this.embed = embed; + return this; + } + + /** + * Get embed + * @return embed + **/ + @ApiModelProperty(value = "") + public EmbeddedScans getEmbed() { + return embed; + } + + public void setEmbed(EmbeddedScans embed) { + this.embed = embed; + } + + public Artifact allowApprove(Boolean allowApprove) { + this.allowApprove = allowApprove; + return this; + } + + /** + * Get allowApprove + * @return allowApprove + **/ + @ApiModelProperty(value = "") + public Boolean isAllowApprove() { + return allowApprove; + } + + public void setAllowApprove(Boolean allowApprove) { + this.allowApprove = allowApprove; + } + + public Artifact allowDelete(Boolean allowDelete) { + this.allowDelete = allowDelete; + return this; + } + + /** + * Get allowDelete + * @return allowDelete + **/ + @ApiModelProperty(value = "") + public Boolean isAllowDelete() { + return allowDelete; + } + + public void setAllowDelete(Boolean allowDelete) { + this.allowDelete = allowDelete; + } + + public Artifact allowPurge(Boolean allowPurge) { + this.allowPurge = allowPurge; + return this; + } + + /** + * Get allowPurge + * @return allowPurge + **/ + @ApiModelProperty(value = "") + public Boolean isAllowPurge() { + return allowPurge; + } + + public void setAllowPurge(Boolean allowPurge) { + this.allowPurge = allowPurge; + } + + public Artifact approvalComment(String approvalComment) { + this.approvalComment = approvalComment; + return this; + } + + /** + * Get approvalComment + * @return approvalComment + **/ + @ApiModelProperty(value = "") + public String getApprovalComment() { + return approvalComment; + } + + public void setApprovalComment(String approvalComment) { + this.approvalComment = approvalComment; + } + + public Artifact approvalDate(OffsetDateTime approvalDate) { + this.approvalDate = approvalDate; + return this; + } + + /** + * Get approvalDate + * @return approvalDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getApprovalDate() { + return approvalDate; + } + + public void setApprovalDate(OffsetDateTime approvalDate) { + this.approvalDate = approvalDate; + } + + public Artifact approvalUsername(String approvalUsername) { + this.approvalUsername = approvalUsername; + return this; + } + + /** + * Get approvalUsername + * @return approvalUsername + **/ + @ApiModelProperty(value = "") + public String getApprovalUsername() { + return approvalUsername; + } + + public void setApprovalUsername(String approvalUsername) { + this.approvalUsername = approvalUsername; + } + + public Artifact artifactType(ArtifactTypeEnum artifactType) { + this.artifactType = artifactType; + return this; + } + + /** + * Get artifactType + * @return artifactType + **/ + @ApiModelProperty(value = "") + public ArtifactTypeEnum getArtifactType() { + return artifactType; + } + + public void setArtifactType(ArtifactTypeEnum artifactType) { + this.artifactType = artifactType; + } + + public Artifact auditUpdated(Boolean auditUpdated) { + this.auditUpdated = auditUpdated; + return this; + } + + /** + * Get auditUpdated + * @return auditUpdated + **/ + @ApiModelProperty(value = "") + public Boolean isAuditUpdated() { + return auditUpdated; + } + + public void setAuditUpdated(Boolean auditUpdated) { + this.auditUpdated = auditUpdated; + } + + public Artifact fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get fileName + * @return fileName + **/ + @ApiModelProperty(value = "") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public Artifact fileSize(Long fileSize) { + this.fileSize = fileSize; + return this; + } + + /** + * Get fileSize + * @return fileSize + **/ + @ApiModelProperty(value = "") + public Long getFileSize() { + return fileSize; + } + + public void setFileSize(Long fileSize) { + this.fileSize = fileSize; + } + + public Artifact fileURL(String fileURL) { + this.fileURL = fileURL; + return this; + } + + /** + * Get fileURL + * @return fileURL + **/ + @ApiModelProperty(value = "") + public String getFileURL() { + return fileURL; + } + + public void setFileURL(String fileURL) { + this.fileURL = fileURL; + } + + /** + * Artifact id + * @return id + **/ + @ApiModelProperty(value = "Artifact id") + public Long getId() { + return id; + } + + public Artifact inModifyingStatus(Boolean inModifyingStatus) { + this.inModifyingStatus = inModifyingStatus; + return this; + } + + /** + * Get inModifyingStatus + * @return inModifyingStatus + **/ + @ApiModelProperty(value = "") + public Boolean isInModifyingStatus() { + return inModifyingStatus; + } + + public void setInModifyingStatus(Boolean inModifyingStatus) { + this.inModifyingStatus = inModifyingStatus; + } + + public Artifact indexed(Boolean indexed) { + this.indexed = indexed; + return this; + } + + /** + * Get indexed + * @return indexed + **/ + @ApiModelProperty(value = "") + public Boolean isIndexed() { + return indexed; + } + + public void setIndexed(Boolean indexed) { + this.indexed = indexed; + } + + public Artifact lastScanDate(OffsetDateTime lastScanDate) { + this.lastScanDate = lastScanDate; + return this; + } + + /** + * Get lastScanDate + * @return lastScanDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getLastScanDate() { + return lastScanDate; + } + + public void setLastScanDate(OffsetDateTime lastScanDate) { + this.lastScanDate = lastScanDate; + } + + public Artifact messageCount(Long messageCount) { + this.messageCount = messageCount; + return this; + } + + /** + * Get messageCount + * @return messageCount + **/ + @ApiModelProperty(value = "") + public Long getMessageCount() { + return messageCount; + } + + public void setMessageCount(Long messageCount) { + this.messageCount = messageCount; + } + + public Artifact messages(String messages) { + this.messages = messages; + return this; + } + + /** + * Get messages + * @return messages + **/ + @ApiModelProperty(value = "") + public String getMessages() { + return messages; + } + + public void setMessages(String messages) { + this.messages = messages; + } + + public Artifact originalFileName(String originalFileName) { + this.originalFileName = originalFileName; + return this; + } + + /** + * Get originalFileName + * @return originalFileName + **/ + @ApiModelProperty(value = "") + public String getOriginalFileName() { + return originalFileName; + } + + public void setOriginalFileName(String originalFileName) { + this.originalFileName = originalFileName; + } + + public Artifact otherStatus(OtherStatusEnum otherStatus) { + this.otherStatus = otherStatus; + return this; + } + + /** + * Get otherStatus + * @return otherStatus + **/ + @ApiModelProperty(value = "") + public OtherStatusEnum getOtherStatus() { + return otherStatus; + } + + public void setOtherStatus(OtherStatusEnum otherStatus) { + this.otherStatus = otherStatus; + } + + public Artifact purged(Boolean purged) { + this.purged = purged; + return this; + } + + /** + * Get purged + * @return purged + **/ + @ApiModelProperty(value = "") + public Boolean isPurged() { + return purged; + } + + public void setPurged(Boolean purged) { + this.purged = purged; + } + + public Artifact runtimeStatus(RuntimeStatusEnum runtimeStatus) { + this.runtimeStatus = runtimeStatus; + return this; + } + + /** + * Get runtimeStatus + * @return runtimeStatus + **/ + @ApiModelProperty(value = "") + public RuntimeStatusEnum getRuntimeStatus() { + return runtimeStatus; + } + + public void setRuntimeStatus(RuntimeStatusEnum runtimeStatus) { + this.runtimeStatus = runtimeStatus; + } + + public Artifact scaStatus(ScaStatusEnum scaStatus) { + this.scaStatus = scaStatus; + return this; + } + + /** + * Get scaStatus + * @return scaStatus + **/ + @ApiModelProperty(value = "") + public ScaStatusEnum getScaStatus() { + return scaStatus; + } + + public void setScaStatus(ScaStatusEnum scaStatus) { + this.scaStatus = scaStatus; + } + + public Artifact scanErrorsCount(Long scanErrorsCount) { + this.scanErrorsCount = scanErrorsCount; + return this; + } + + /** + * Get scanErrorsCount + * @return scanErrorsCount + **/ + @ApiModelProperty(value = "") + public Long getScanErrorsCount() { + return scanErrorsCount; + } + + public void setScanErrorsCount(Long scanErrorsCount) { + this.scanErrorsCount = scanErrorsCount; + } + + public Artifact status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public Artifact uploadDate(OffsetDateTime uploadDate) { + this.uploadDate = uploadDate; + return this; + } + + /** + * Get uploadDate + * @return uploadDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getUploadDate() { + return uploadDate; + } + + public void setUploadDate(OffsetDateTime uploadDate) { + this.uploadDate = uploadDate; + } + + public Artifact uploadIP(String uploadIP) { + this.uploadIP = uploadIP; + return this; + } + + /** + * Get uploadIP + * @return uploadIP + **/ + @ApiModelProperty(value = "") + public String getUploadIP() { + return uploadIP; + } + + public void setUploadIP(String uploadIP) { + this.uploadIP = uploadIP; + } + + public Artifact userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Artifact versionNumber(Integer versionNumber) { + this.versionNumber = versionNumber; + return this; + } + + /** + * Get versionNumber + * @return versionNumber + **/ + @ApiModelProperty(value = "") + public Integer getVersionNumber() { + return versionNumber; + } + + public void setVersionNumber(Integer versionNumber) { + this.versionNumber = versionNumber; + } + + public Artifact webInspectStatus(WebInspectStatusEnum webInspectStatus) { + this.webInspectStatus = webInspectStatus; + return this; + } + + /** + * Get webInspectStatus + * @return webInspectStatus + **/ + @ApiModelProperty(value = "") + public WebInspectStatusEnum getWebInspectStatus() { + return webInspectStatus; + } + + public void setWebInspectStatus(WebInspectStatusEnum webInspectStatus) { + this.webInspectStatus = webInspectStatus; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Artifact artifact = (Artifact) o; + return Objects.equals(this.embed, artifact.embed) && + Objects.equals(this.allowApprove, artifact.allowApprove) && + Objects.equals(this.allowDelete, artifact.allowDelete) && + Objects.equals(this.allowPurge, artifact.allowPurge) && + Objects.equals(this.approvalComment, artifact.approvalComment) && + Objects.equals(this.approvalDate, artifact.approvalDate) && + Objects.equals(this.approvalUsername, artifact.approvalUsername) && + Objects.equals(this.artifactType, artifact.artifactType) && + Objects.equals(this.auditUpdated, artifact.auditUpdated) && + Objects.equals(this.fileName, artifact.fileName) && + Objects.equals(this.fileSize, artifact.fileSize) && + Objects.equals(this.fileURL, artifact.fileURL) && + Objects.equals(this.id, artifact.id) && + Objects.equals(this.inModifyingStatus, artifact.inModifyingStatus) && + Objects.equals(this.indexed, artifact.indexed) && + Objects.equals(this.lastScanDate, artifact.lastScanDate) && + Objects.equals(this.messageCount, artifact.messageCount) && + Objects.equals(this.messages, artifact.messages) && + Objects.equals(this.originalFileName, artifact.originalFileName) && + Objects.equals(this.otherStatus, artifact.otherStatus) && + Objects.equals(this.purged, artifact.purged) && + Objects.equals(this.runtimeStatus, artifact.runtimeStatus) && + Objects.equals(this.scaStatus, artifact.scaStatus) && + Objects.equals(this.scanErrorsCount, artifact.scanErrorsCount) && + Objects.equals(this.status, artifact.status) && + Objects.equals(this.uploadDate, artifact.uploadDate) && + Objects.equals(this.uploadIP, artifact.uploadIP) && + Objects.equals(this.userName, artifact.userName) && + Objects.equals(this.versionNumber, artifact.versionNumber) && + Objects.equals(this.webInspectStatus, artifact.webInspectStatus); + } + + @Override + public int hashCode() { + return Objects.hash(embed, allowApprove, allowDelete, allowPurge, approvalComment, approvalDate, approvalUsername, artifactType, auditUpdated, fileName, fileSize, fileURL, id, inModifyingStatus, indexed, lastScanDate, messageCount, messages, originalFileName, otherStatus, purged, runtimeStatus, scaStatus, scanErrorsCount, status, uploadDate, uploadIP, userName, versionNumber, webInspectStatus); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Artifact {\n"); + + sb.append(" embed: ").append(toIndentedString(embed)).append("\n"); + sb.append(" allowApprove: ").append(toIndentedString(allowApprove)).append("\n"); + sb.append(" allowDelete: ").append(toIndentedString(allowDelete)).append("\n"); + sb.append(" allowPurge: ").append(toIndentedString(allowPurge)).append("\n"); + sb.append(" approvalComment: ").append(toIndentedString(approvalComment)).append("\n"); + sb.append(" approvalDate: ").append(toIndentedString(approvalDate)).append("\n"); + sb.append(" approvalUsername: ").append(toIndentedString(approvalUsername)).append("\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); + sb.append(" auditUpdated: ").append(toIndentedString(auditUpdated)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" fileSize: ").append(toIndentedString(fileSize)).append("\n"); + sb.append(" fileURL: ").append(toIndentedString(fileURL)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inModifyingStatus: ").append(toIndentedString(inModifyingStatus)).append("\n"); + sb.append(" indexed: ").append(toIndentedString(indexed)).append("\n"); + sb.append(" lastScanDate: ").append(toIndentedString(lastScanDate)).append("\n"); + sb.append(" messageCount: ").append(toIndentedString(messageCount)).append("\n"); + sb.append(" messages: ").append(toIndentedString(messages)).append("\n"); + sb.append(" originalFileName: ").append(toIndentedString(originalFileName)).append("\n"); + sb.append(" otherStatus: ").append(toIndentedString(otherStatus)).append("\n"); + sb.append(" purged: ").append(toIndentedString(purged)).append("\n"); + sb.append(" runtimeStatus: ").append(toIndentedString(runtimeStatus)).append("\n"); + sb.append(" scaStatus: ").append(toIndentedString(scaStatus)).append("\n"); + sb.append(" scanErrorsCount: ").append(toIndentedString(scanErrorsCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" uploadDate: ").append(toIndentedString(uploadDate)).append("\n"); + sb.append(" uploadIP: ").append(toIndentedString(uploadIP)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" versionNumber: ").append(toIndentedString(versionNumber)).append("\n"); + sb.append(" webInspectStatus: ").append(toIndentedString(webInspectStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ArtifactApproveRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ArtifactApproveRequest.java new file mode 100644 index 0000000..1e9309b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ArtifactApproveRequest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of approving artifact + */ +@ApiModel(description = "Request of approving artifact") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ArtifactApproveRequest { + @SerializedName("artifactIds") + private List artifactIds = new ArrayList(); + + @SerializedName("comment") + private String comment = null; + + public ArtifactApproveRequest artifactIds(List artifactIds) { + this.artifactIds = artifactIds; + return this; + } + + public ArtifactApproveRequest addArtifactIdsItem(Long artifactIdsItem) { + this.artifactIds.add(artifactIdsItem); + return this; + } + + /** + * List containing single artifact ID to approve + * @return artifactIds + **/ + @ApiModelProperty(required = true, value = "List containing single artifact ID to approve") + public List getArtifactIds() { + return artifactIds; + } + + public void setArtifactIds(List artifactIds) { + this.artifactIds = artifactIds; + } + + public ArtifactApproveRequest comment(String comment) { + this.comment = comment; + return this; + } + + /** + * Approval comments + * @return comment + **/ + @ApiModelProperty(required = true, value = "Approval comments") + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArtifactApproveRequest artifactApproveRequest = (ArtifactApproveRequest) o; + return Objects.equals(this.artifactIds, artifactApproveRequest.artifactIds) && + Objects.equals(this.comment, artifactApproveRequest.comment); + } + + @Override + public int hashCode() { + return Objects.hash(artifactIds, comment); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArtifactApproveRequest {\n"); + + sb.append(" artifactIds: ").append(toIndentedString(artifactIds)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ArtifactPurgeRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ArtifactPurgeRequest.java new file mode 100644 index 0000000..492fab6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ArtifactPurgeRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of purging artifacts + */ +@ApiModel(description = "Request of purging artifacts") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ArtifactPurgeRequest { + @SerializedName("artifactIds") + private List artifactIds = new ArrayList(); + + public ArtifactPurgeRequest artifactIds(List artifactIds) { + this.artifactIds = artifactIds; + return this; + } + + public ArtifactPurgeRequest addArtifactIdsItem(Long artifactIdsItem) { + this.artifactIds.add(artifactIdsItem); + return this; + } + + /** + * List containing single artifact ID to purge + * @return artifactIds + **/ + @ApiModelProperty(required = true, value = "List containing single artifact ID to purge") + public List getArtifactIds() { + return artifactIds; + } + + public void setArtifactIds(List artifactIds) { + this.artifactIds = artifactIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArtifactPurgeRequest artifactPurgeRequest = (ArtifactPurgeRequest) o; + return Objects.equals(this.artifactIds, artifactPurgeRequest.artifactIds); + } + + @Override + public int hashCode() { + return Objects.hash(artifactIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArtifactPurgeRequest {\n"); + + sb.append(" artifactIds: ").append(toIndentedString(artifactIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AssignedUser.java b/src/main/java/com/fortify/ssc/restclient/model/AssignedUser.java new file mode 100644 index 0000000..644cce3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AssignedUser.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * user assigned to issue + */ +@ApiModel(description = "user assigned to issue") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AssignedUser { + @SerializedName("hasAccess") + private Boolean hasAccess = null; + + @SerializedName("userName") + private String userName = null; + + /** + * whether the assigned user currently has access to the project version in current context + * @return hasAccess + **/ + @ApiModelProperty(example = "false", required = true, value = "whether the assigned user currently has access to the project version in current context") + public Boolean isHasAccess() { + return hasAccess; + } + + /** + * username assigned to issue + * @return userName + **/ + @ApiModelProperty(required = true, value = "username assigned to issue") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssignedUser assignedUser = (AssignedUser) o; + return Objects.equals(this.hasAccess, assignedUser.hasAccess) && + Objects.equals(this.userName, assignedUser.userName); + } + + @Override + public int hashCode() { + return Objects.hash(hasAccess, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssignedUser {\n"); + + sb.append(" hasAccess: ").append(toIndentedString(hasAccess)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Attribute.java b/src/main/java/com/fortify/ssc/restclient/model/Attribute.java new file mode 100644 index 0000000..ea2eceb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Attribute.java @@ -0,0 +1,162 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AttributeOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Attribute DTO object. + */ +@ApiModel(description = "Attribute DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Attribute { + @SerializedName("attributeDefinitionId") + private Long attributeDefinitionId = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("value") + private String value = null; + + @SerializedName("values") + private List values = new ArrayList(); + + public Attribute attributeDefinitionId(Long attributeDefinitionId) { + this.attributeDefinitionId = attributeDefinitionId; + return this; + } + + /** + * ID required when referencing an existing Attribute Definition. + * @return attributeDefinitionId + **/ + @ApiModelProperty(required = true, value = "ID required when referencing an existing Attribute Definition.") + public Long getAttributeDefinitionId() { + return attributeDefinitionId; + } + + public void setAttributeDefinitionId(Long attributeDefinitionId) { + this.attributeDefinitionId = attributeDefinitionId; + } + + /** + * ID required when referencing an existing Attribute. + * @return id + **/ + @ApiModelProperty(value = "ID required when referencing an existing Attribute.") + public Long getId() { + return id; + } + + public Attribute value(String value) { + this.value = value; + return this; + } + + /** + * Attribute value - should be set if Attribute Definition type is NUMBER/STRING/BOOLEAN/DATE/FILE + * @return value + **/ + @ApiModelProperty(required = true, value = "Attribute value - should be set if Attribute Definition type is NUMBER/STRING/BOOLEAN/DATE/FILE") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Attribute values(List values) { + this.values = values; + return this; + } + + public Attribute addValuesItem(AttributeOption valuesItem) { + this.values.add(valuesItem); + return this; + } + + /** + * Attribute Options associated with Attribute Definition with type=SINGLE/MULTIPLE + * @return values + **/ + @ApiModelProperty(required = true, value = "Attribute Options associated with Attribute Definition with type=SINGLE/MULTIPLE") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Attribute attribute = (Attribute) o; + return Objects.equals(this.attributeDefinitionId, attribute.attributeDefinitionId) && + Objects.equals(this.id, attribute.id) && + Objects.equals(this.value, attribute.value) && + Objects.equals(this.values, attribute.values); + } + + @Override + public int hashCode() { + return Objects.hash(attributeDefinitionId, id, value, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Attribute {\n"); + + sb.append(" attributeDefinitionId: ").append(toIndentedString(attributeDefinitionId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AttributeDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/AttributeDefinition.java new file mode 100644 index 0000000..42b4b11 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AttributeDefinition.java @@ -0,0 +1,632 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AttributeOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Attribute Definition DTO object. + */ +@ApiModel(description = "Attribute Definition DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AttributeDefinition { + /** + * Application Entity Type + */ + @JsonAdapter(AppEntityTypeEnum.Adapter.class) + public enum AppEntityTypeEnum { + PROJECT_VERSION("PROJECT_VERSION"), + + RUNTIME_APP("RUNTIME_APP"), + + NONE("NONE"), + + ALL("ALL"); + + private String value; + + AppEntityTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AppEntityTypeEnum fromValue(String text) { + for (AppEntityTypeEnum b : AppEntityTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AppEntityTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AppEntityTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AppEntityTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("appEntityType") + private AppEntityTypeEnum appEntityType = null; + + /** + * Attribute Definition Category + */ + @JsonAdapter(CategoryEnum.Adapter.class) + public enum CategoryEnum { + TECHNICAL("TECHNICAL"), + + BUSINESS("BUSINESS"), + + DYNAMIC_SCAN_REQUEST("DYNAMIC_SCAN_REQUEST"), + + ORGANIZATION("ORGANIZATION"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryEnum fromValue(String text) { + for (CategoryEnum b : CategoryEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("category") + private CategoryEnum category = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("hasDefault") + private Boolean hasDefault = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("options") + private List options = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("sequenceNumber") + private Long sequenceNumber = null; + + /** + * System Usage Type + */ + @JsonAdapter(SystemUsageEnum.Adapter.class) + public enum SystemUsageEnum { + HP_DEFINED_DELETABLE("HP_DEFINED_DELETABLE"), + + HP_DEFINED_NON_DELETABLE("HP_DEFINED_NON_DELETABLE"), + + USER_DEFINED_DELETABLE("USER_DEFINED_DELETABLE"), + + USER_DEFINED_NON_DELETABLE("USER_DEFINED_NON_DELETABLE"); + + private String value; + + SystemUsageEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SystemUsageEnum fromValue(String text) { + for (SystemUsageEnum b : SystemUsageEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SystemUsageEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SystemUsageEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SystemUsageEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("systemUsage") + private SystemUsageEnum systemUsage = null; + + /** + * Attribute Definition Type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + TEXT("TEXT"), + + SINGLE("SINGLE"), + + MULTIPLE("MULTIPLE"), + + LONG_TEXT("LONG_TEXT"), + + SENSITIVE_TEXT("SENSITIVE_TEXT"), + + BOOLEAN("BOOLEAN"), + + INTEGER("INTEGER"), + + DATE("DATE"), + + FILE("FILE"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + public AttributeDefinition appEntityType(AppEntityTypeEnum appEntityType) { + this.appEntityType = appEntityType; + return this; + } + + /** + * Application Entity Type + * @return appEntityType + **/ + @ApiModelProperty(required = true, value = "Application Entity Type") + public AppEntityTypeEnum getAppEntityType() { + return appEntityType; + } + + public void setAppEntityType(AppEntityTypeEnum appEntityType) { + this.appEntityType = appEntityType; + } + + public AttributeDefinition category(CategoryEnum category) { + this.category = category; + return this; + } + + /** + * Attribute Definition Category + * @return category + **/ + @ApiModelProperty(required = true, value = "Attribute Definition Category") + public CategoryEnum getCategory() { + return category; + } + + public void setCategory(CategoryEnum category) { + this.category = category; + } + + public AttributeDefinition description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AttributeDefinition guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Unique string identifier for this Attribute Definition + * @return guid + **/ + @ApiModelProperty(required = true, value = "Unique string identifier for this Attribute Definition") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public AttributeDefinition hasDefault(Boolean hasDefault) { + this.hasDefault = hasDefault; + return this; + } + + /** + * Set to true if this Attribute Definition should be the default + * @return hasDefault + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if this Attribute Definition should be the default") + public Boolean isHasDefault() { + return hasDefault; + } + + public void setHasDefault(Boolean hasDefault) { + this.hasDefault = hasDefault; + } + + public AttributeDefinition hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Set to true if this Attribute Definition is hidden + * @return hidden + **/ + @ApiModelProperty(example = "false", value = "Set to true if this Attribute Definition is hidden") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + /** + * ID required when referencing an existing Attribute Definition + * @return id + **/ + @ApiModelProperty(value = "ID required when referencing an existing Attribute Definition") + public Long getId() { + return id; + } + + public AttributeDefinition name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AttributeDefinition objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public AttributeDefinition options(List options) { + this.options = options; + return this; + } + + public AttributeDefinition addOptionsItem(AttributeOption optionsItem) { + if (this.options == null) { + this.options = new ArrayList(); + } + this.options.add(optionsItem); + return this; + } + + /** + * List of options (i.e. values) associated with this Attribute Definition + * @return options + **/ + @ApiModelProperty(value = "List of options (i.e. values) associated with this Attribute Definition") + public List getOptions() { + return options; + } + + public void setOptions(List options) { + this.options = options; + } + + public AttributeDefinition publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public AttributeDefinition required(Boolean required) { + this.required = required; + return this; + } + + /** + * Set to true if this Attribute Definition is required + * @return required + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if this Attribute Definition is required") + public Boolean isRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public AttributeDefinition sequenceNumber(Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + * Get sequenceNumber + * @return sequenceNumber + **/ + @ApiModelProperty(value = "") + public Long getSequenceNumber() { + return sequenceNumber; + } + + public void setSequenceNumber(Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public AttributeDefinition systemUsage(SystemUsageEnum systemUsage) { + this.systemUsage = systemUsage; + return this; + } + + /** + * System Usage Type + * @return systemUsage + **/ + @ApiModelProperty(required = true, value = "System Usage Type") + public SystemUsageEnum getSystemUsage() { + return systemUsage; + } + + public void setSystemUsage(SystemUsageEnum systemUsage) { + this.systemUsage = systemUsage; + } + + public AttributeDefinition type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Attribute Definition Type + * @return type + **/ + @ApiModelProperty(required = true, value = "Attribute Definition Type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttributeDefinition attributeDefinition = (AttributeDefinition) o; + return Objects.equals(this.appEntityType, attributeDefinition.appEntityType) && + Objects.equals(this.category, attributeDefinition.category) && + Objects.equals(this.description, attributeDefinition.description) && + Objects.equals(this.guid, attributeDefinition.guid) && + Objects.equals(this.hasDefault, attributeDefinition.hasDefault) && + Objects.equals(this.hidden, attributeDefinition.hidden) && + Objects.equals(this.id, attributeDefinition.id) && + Objects.equals(this.name, attributeDefinition.name) && + Objects.equals(this.objectVersion, attributeDefinition.objectVersion) && + Objects.equals(this.options, attributeDefinition.options) && + Objects.equals(this.publishVersion, attributeDefinition.publishVersion) && + Objects.equals(this.required, attributeDefinition.required) && + Objects.equals(this.sequenceNumber, attributeDefinition.sequenceNumber) && + Objects.equals(this.systemUsage, attributeDefinition.systemUsage) && + Objects.equals(this.type, attributeDefinition.type); + } + + @Override + public int hashCode() { + return Objects.hash(appEntityType, category, description, guid, hasDefault, hidden, id, name, objectVersion, options, publishVersion, required, sequenceNumber, systemUsage, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttributeDefinition {\n"); + + sb.append(" appEntityType: ").append(toIndentedString(appEntityType)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" hasDefault: ").append(toIndentedString(hasDefault)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); + sb.append(" systemUsage: ").append(toIndentedString(systemUsage)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AttributeOption.java b/src/main/java/com/fortify/ssc/restclient/model/AttributeOption.java new file mode 100644 index 0000000..9e138e5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AttributeOption.java @@ -0,0 +1,301 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Attribute Option DTO object + */ +@ApiModel(description = "Attribute Option DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AttributeOption { + @SerializedName("description") + private String description = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("index") + private Integer index = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("projectMetaDataDefId") + private Long projectMetaDataDefId = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + public AttributeOption description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AttributeOption guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Unique string identifier for an Attribute Option + * @return guid + **/ + @ApiModelProperty(required = true, value = "Unique string identifier for an Attribute Option") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public AttributeOption hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Set to true if this option is to be hidden + * @return hidden + **/ + @ApiModelProperty(example = "false", value = "Set to true if this option is to be hidden") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + public AttributeOption id(Long id) { + this.id = id; + return this; + } + + /** + * ID required with referencing an existing Attribute Option + * @return id + **/ + @ApiModelProperty(required = true, value = "ID required with referencing an existing Attribute Option") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public AttributeOption inUse(Boolean inUse) { + this.inUse = inUse; + return this; + } + + /** + * Set to true if this option is being used + * @return inUse + **/ + @ApiModelProperty(example = "false", value = "Set to true if this option is being used") + public Boolean isInUse() { + return inUse; + } + + public void setInUse(Boolean inUse) { + this.inUse = inUse; + } + + public AttributeOption index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of this option in list of options + * @return index + **/ + @ApiModelProperty(required = true, value = "Index of this option in list of options") + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public AttributeOption name(String name) { + this.name = name; + return this; + } + + /** + * Name + * @return name + **/ + @ApiModelProperty(required = true, value = "Name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AttributeOption objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public AttributeOption projectMetaDataDefId(Long projectMetaDataDefId) { + this.projectMetaDataDefId = projectMetaDataDefId; + return this; + } + + /** + * ID of Attribute Definition this option is associated with + * @return projectMetaDataDefId + **/ + @ApiModelProperty(required = true, value = "ID of Attribute Definition this option is associated with") + public Long getProjectMetaDataDefId() { + return projectMetaDataDefId; + } + + public void setProjectMetaDataDefId(Long projectMetaDataDefId) { + this.projectMetaDataDefId = projectMetaDataDefId; + } + + public AttributeOption publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttributeOption attributeOption = (AttributeOption) o; + return Objects.equals(this.description, attributeOption.description) && + Objects.equals(this.guid, attributeOption.guid) && + Objects.equals(this.hidden, attributeOption.hidden) && + Objects.equals(this.id, attributeOption.id) && + Objects.equals(this.inUse, attributeOption.inUse) && + Objects.equals(this.index, attributeOption.index) && + Objects.equals(this.name, attributeOption.name) && + Objects.equals(this.objectVersion, attributeOption.objectVersion) && + Objects.equals(this.projectMetaDataDefId, attributeOption.projectMetaDataDefId) && + Objects.equals(this.publishVersion, attributeOption.publishVersion); + } + + @Override + public int hashCode() { + return Objects.hash(description, guid, hidden, id, inUse, index, name, objectVersion, projectMetaDataDefId, publishVersion); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttributeOption {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" projectMetaDataDefId: ").append(toIndentedString(projectMetaDataDefId)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AuditAssistantStatus.java b/src/main/java/com/fortify/ssc/restclient/model/AuditAssistantStatus.java new file mode 100644 index 0000000..208ec4f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AuditAssistantStatus.java @@ -0,0 +1,297 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AuditAssistantStatus DTO object + */ +@ApiModel(description = "AuditAssistantStatus DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AuditAssistantStatus { + @SerializedName("fprFilePath") + private String fprFilePath = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("serverId") + private Long serverId = null; + + @SerializedName("serverStatus") + private Integer serverStatus = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + NONE("NONE"), + + PRE_PREDICT_FAILURE("PRE_PREDICT_FAILURE"), + + PREDICT_QUEUED("PREDICT_QUEUED"), + + PREDICT_PREP("PREDICT_PREP"), + + PREDICT_SUBMITTED("PREDICT_SUBMITTED"), + + PREDICT_COMPLETE("PREDICT_COMPLETE"), + + PREDICT_FAILED("PREDICT_FAILED"), + + PREDICTIONS_RETRIEVING("PREDICTIONS_RETRIEVING"), + + PREDICTIONS_RETRIEVED("PREDICTIONS_RETRIEVED"), + + PREDICTIONS_RETRIEVE_FAILED("PREDICTIONS_RETRIEVE_FAILED"), + + UPLOAD_FPR_FAILED("UPLOAD_FPR_FAILED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("userName") + private String userName = null; + + public AuditAssistantStatus fprFilePath(String fprFilePath) { + this.fprFilePath = fprFilePath; + return this; + } + + /** + * Get fprFilePath + * @return fprFilePath + **/ + @ApiModelProperty(value = "") + public String getFprFilePath() { + return fprFilePath; + } + + public void setFprFilePath(String fprFilePath) { + this.fprFilePath = fprFilePath; + } + + public AuditAssistantStatus message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public AuditAssistantStatus projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public AuditAssistantStatus serverId(Long serverId) { + this.serverId = serverId; + return this; + } + + /** + * Get serverId + * @return serverId + **/ + @ApiModelProperty(value = "") + public Long getServerId() { + return serverId; + } + + public void setServerId(Long serverId) { + this.serverId = serverId; + } + + public AuditAssistantStatus serverStatus(Integer serverStatus) { + this.serverStatus = serverStatus; + return this; + } + + /** + * Get serverStatus + * @return serverStatus + **/ + @ApiModelProperty(value = "") + public Integer getServerStatus() { + return serverStatus; + } + + public void setServerStatus(Integer serverStatus) { + this.serverStatus = serverStatus; + } + + public AuditAssistantStatus status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public AuditAssistantStatus userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditAssistantStatus auditAssistantStatus = (AuditAssistantStatus) o; + return Objects.equals(this.fprFilePath, auditAssistantStatus.fprFilePath) && + Objects.equals(this.message, auditAssistantStatus.message) && + Objects.equals(this.projectVersionId, auditAssistantStatus.projectVersionId) && + Objects.equals(this.serverId, auditAssistantStatus.serverId) && + Objects.equals(this.serverStatus, auditAssistantStatus.serverStatus) && + Objects.equals(this.status, auditAssistantStatus.status) && + Objects.equals(this.userName, auditAssistantStatus.userName); + } + + @Override + public int hashCode() { + return Objects.hash(fprFilePath, message, projectVersionId, serverId, serverStatus, status, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditAssistantStatus {\n"); + + sb.append(" fprFilePath: ").append(toIndentedString(fprFilePath)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" serverStatus: ").append(toIndentedString(serverStatus)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AuthTokenRevokeRequest.java b/src/main/java/com/fortify/ssc/restclient/model/AuthTokenRevokeRequest.java new file mode 100644 index 0000000..8fc391a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AuthTokenRevokeRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request for revoking tokens by value + */ +@ApiModel(description = "Request for revoking tokens by value") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AuthTokenRevokeRequest { + @SerializedName("tokens") + private List tokens = new ArrayList(); + + public AuthTokenRevokeRequest tokens(List tokens) { + this.tokens = tokens; + return this; + } + + public AuthTokenRevokeRequest addTokensItem(String tokensItem) { + this.tokens.add(tokensItem); + return this; + } + + /** + * A list of tokens (atleast one) to revoke + * @return tokens + **/ + @ApiModelProperty(required = true, value = "A list of tokens (atleast one) to revoke") + public List getTokens() { + return tokens; + } + + public void setTokens(List tokens) { + this.tokens = tokens; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthTokenRevokeRequest authTokenRevokeRequest = (AuthTokenRevokeRequest) o; + return Objects.equals(this.tokens, authTokenRevokeRequest.tokens); + } + + @Override + public int hashCode() { + return Objects.hash(tokens); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthTokenRevokeRequest {\n"); + + sb.append(" tokens: ").append(toIndentedString(tokens)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AuthenticationEntity.java b/src/main/java/com/fortify/ssc/restclient/model/AuthenticationEntity.java new file mode 100644 index 0000000..f9e06f4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AuthenticationEntity.java @@ -0,0 +1,317 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EmbeddedRoles; +import com.fortify.ssc.restclient.model.UserPhoto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * A user account that can be used to authenticate in SSC. There are currently two types of user accounts that fall into this category: SSC users and LDAP users registered with SSC. + */ +@ApiModel(description = "A user account that can be used to authenticate in SSC. There are currently two types of user accounts that fall into this category: SSC users and LDAP users registered with SSC.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AuthenticationEntity { + @SerializedName("_embed") + private EmbeddedRoles embed = null; + + @SerializedName("displayName") + private String displayName = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("entityName") + private String entityName = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("isLdap") + private Boolean isLdap = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("ldapDn") + private String ldapDn = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("userPhoto") + private UserPhoto userPhoto = null; + + public AuthenticationEntity embed(EmbeddedRoles embed) { + this.embed = embed; + return this; + } + + /** + * Get embed + * @return embed + **/ + @ApiModelProperty(value = "") + public EmbeddedRoles getEmbed() { + return embed; + } + + public void setEmbed(EmbeddedRoles embed) { + this.embed = embed; + } + + public AuthenticationEntity displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Display Name supports the use of wildcard matching. So, for example, \"L*\" will match Lando Calrissian and Lara Croft. + * @return displayName + **/ + @ApiModelProperty(value = "Display Name supports the use of wildcard matching. So, for example, \"L*\" will match Lando Calrissian and Lara Croft.") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public AuthenticationEntity email(String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @ApiModelProperty(value = "") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public AuthenticationEntity entityName(String entityName) { + this.entityName = entityName; + return this; + } + + /** + * Get entityName + * @return entityName + **/ + @ApiModelProperty(value = "") + public String getEntityName() { + return entityName; + } + + public void setEntityName(String entityName) { + this.entityName = entityName; + } + + public AuthenticationEntity firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @ApiModelProperty(value = "") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * Authentication entity id + * @return id + **/ + @ApiModelProperty(value = "Authentication entity id") + public Long getId() { + return id; + } + + public AuthenticationEntity isLdap(Boolean isLdap) { + this.isLdap = isLdap; + return this; + } + + /** + * Get isLdap + * @return isLdap + **/ + @ApiModelProperty(value = "") + public Boolean isIsLdap() { + return isLdap; + } + + public void setIsLdap(Boolean isLdap) { + this.isLdap = isLdap; + } + + public AuthenticationEntity lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @ApiModelProperty(value = "") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public AuthenticationEntity ldapDn(String ldapDn) { + this.ldapDn = ldapDn; + return this; + } + + /** + * Distinguished Name (DN) that is only set for LDAP user accounts + * @return ldapDn + **/ + @ApiModelProperty(value = "Distinguished Name (DN) that is only set for LDAP user accounts") + public String getLdapDn() { + return ldapDn; + } + + public void setLdapDn(String ldapDn) { + this.ldapDn = ldapDn; + } + + public AuthenticationEntity type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public AuthenticationEntity userPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + return this; + } + + /** + * Get userPhoto + * @return userPhoto + **/ + @ApiModelProperty(value = "") + public UserPhoto getUserPhoto() { + return userPhoto; + } + + public void setUserPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthenticationEntity authenticationEntity = (AuthenticationEntity) o; + return Objects.equals(this.embed, authenticationEntity.embed) && + Objects.equals(this.displayName, authenticationEntity.displayName) && + Objects.equals(this.email, authenticationEntity.email) && + Objects.equals(this.entityName, authenticationEntity.entityName) && + Objects.equals(this.firstName, authenticationEntity.firstName) && + Objects.equals(this.id, authenticationEntity.id) && + Objects.equals(this.isLdap, authenticationEntity.isLdap) && + Objects.equals(this.lastName, authenticationEntity.lastName) && + Objects.equals(this.ldapDn, authenticationEntity.ldapDn) && + Objects.equals(this.type, authenticationEntity.type) && + Objects.equals(this.userPhoto, authenticationEntity.userPhoto); + } + + @Override + public int hashCode() { + return Objects.hash(embed, displayName, email, entityName, firstName, id, isLdap, lastName, ldapDn, type, userPhoto); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthenticationEntity {\n"); + + sb.append(" embed: ").append(toIndentedString(embed)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" entityName: ").append(toIndentedString(entityName)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" isLdap: ").append(toIndentedString(isLdap)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" ldapDn: ").append(toIndentedString(ldapDn)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" userPhoto: ").append(toIndentedString(userPhoto)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/AuthenticationToken.java b/src/main/java/com/fortify/ssc/restclient/model/AuthenticationToken.java new file mode 100644 index 0000000..f7107cc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/AuthenticationToken.java @@ -0,0 +1,202 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Token to use for authentication + */ +@ApiModel(description = "Token to use for authentication") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class AuthenticationToken { + @SerializedName("creationDate") + private OffsetDateTime creationDate = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("remainingUsages") + private Integer remainingUsages = null; + + @SerializedName("terminalDate") + private OffsetDateTime terminalDate = null; + + @SerializedName("token") + private String token = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("username") + private String username = null; + + /** + * Date and time the token was created (in ISO 8601 format) + * @return creationDate + **/ + @ApiModelProperty(example = "2017-09-22T19:08:42.000+0000", value = "Date and time the token was created (in ISO 8601 format)") + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public AuthenticationToken description(String description) { + this.description = description; + return this; + } + + /** + * Purpose for which the token was requested. + * @return description + **/ + @ApiModelProperty(value = "Purpose for which the token was requested.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Unique identifier of token + * @return id + **/ + @ApiModelProperty(value = "Unique identifier of token") + public Long getId() { + return id; + } + + /** + * The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls. + * @return remainingUsages + **/ + @ApiModelProperty(value = "The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls.") + public Integer getRemainingUsages() { + return remainingUsages; + } + + public AuthenticationToken terminalDate(OffsetDateTime terminalDate) { + this.terminalDate = terminalDate; + return this; + } + + /** + * Date and time the token expires (in ISO 8601 format). If not specified, it will default to the maximum lifetime for this token type. + * @return terminalDate + **/ + @ApiModelProperty(example = "2017-11-29T22:40:11.000+0000", value = "Date and time the token expires (in ISO 8601 format). If not specified, it will default to the maximum lifetime for this token type.") + public OffsetDateTime getTerminalDate() { + return terminalDate; + } + + public void setTerminalDate(OffsetDateTime terminalDate) { + this.terminalDate = terminalDate; + } + + /** + * String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.) + * @return token + **/ + @ApiModelProperty(value = "String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.)") + public String getToken() { + return token; + } + + /** + * Token type + * @return type + **/ + @ApiModelProperty(example = "UnifiedLoginToken", required = true, value = "Token type") + public String getType() { + return type; + } + + /** + * Username of token owner + * @return username + **/ + @ApiModelProperty(value = "Username of token owner") + public String getUsername() { + return username; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthenticationToken authenticationToken = (AuthenticationToken) o; + return Objects.equals(this.creationDate, authenticationToken.creationDate) && + Objects.equals(this.description, authenticationToken.description) && + Objects.equals(this.id, authenticationToken.id) && + Objects.equals(this.remainingUsages, authenticationToken.remainingUsages) && + Objects.equals(this.terminalDate, authenticationToken.terminalDate) && + Objects.equals(this.token, authenticationToken.token) && + Objects.equals(this.type, authenticationToken.type) && + Objects.equals(this.username, authenticationToken.username); + } + + @Override + public int hashCode() { + return Objects.hash(creationDate, description, id, remainingUsages, terminalDate, token, type, username); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthenticationToken {\n"); + + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" remainingUsages: ").append(toIndentedString(remainingUsages)).append("\n"); + sb.append(" terminalDate: ").append(toIndentedString(terminalDate)).append("\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirements.java b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirements.java new file mode 100644 index 0000000..579cfa9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirements.java @@ -0,0 +1,173 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugParam; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * BugFilingRequirements + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugFilingRequirements { + @SerializedName("bugParams") + private List bugParams = null; + + @SerializedName("bugTrackerLongDisplayName") + private String bugTrackerLongDisplayName = null; + + @SerializedName("bugTrackerShortDisplayName") + private String bugTrackerShortDisplayName = null; + + @SerializedName("requiresAuthentication") + private Boolean requiresAuthentication = null; + + public BugFilingRequirements bugParams(List bugParams) { + this.bugParams = bugParams; + return this; + } + + public BugFilingRequirements addBugParamsItem(BugParam bugParamsItem) { + if (this.bugParams == null) { + this.bugParams = new ArrayList(); + } + this.bugParams.add(bugParamsItem); + return this; + } + + /** + * Get bugParams + * @return bugParams + **/ + @ApiModelProperty(value = "") + public List getBugParams() { + return bugParams; + } + + public void setBugParams(List bugParams) { + this.bugParams = bugParams; + } + + public BugFilingRequirements bugTrackerLongDisplayName(String bugTrackerLongDisplayName) { + this.bugTrackerLongDisplayName = bugTrackerLongDisplayName; + return this; + } + + /** + * Get bugTrackerLongDisplayName + * @return bugTrackerLongDisplayName + **/ + @ApiModelProperty(value = "") + public String getBugTrackerLongDisplayName() { + return bugTrackerLongDisplayName; + } + + public void setBugTrackerLongDisplayName(String bugTrackerLongDisplayName) { + this.bugTrackerLongDisplayName = bugTrackerLongDisplayName; + } + + public BugFilingRequirements bugTrackerShortDisplayName(String bugTrackerShortDisplayName) { + this.bugTrackerShortDisplayName = bugTrackerShortDisplayName; + return this; + } + + /** + * Get bugTrackerShortDisplayName + * @return bugTrackerShortDisplayName + **/ + @ApiModelProperty(value = "") + public String getBugTrackerShortDisplayName() { + return bugTrackerShortDisplayName; + } + + public void setBugTrackerShortDisplayName(String bugTrackerShortDisplayName) { + this.bugTrackerShortDisplayName = bugTrackerShortDisplayName; + } + + public BugFilingRequirements requiresAuthentication(Boolean requiresAuthentication) { + this.requiresAuthentication = requiresAuthentication; + return this; + } + + /** + * Get requiresAuthentication + * @return requiresAuthentication + **/ + @ApiModelProperty(value = "") + public Boolean isRequiresAuthentication() { + return requiresAuthentication; + } + + public void setRequiresAuthentication(Boolean requiresAuthentication) { + this.requiresAuthentication = requiresAuthentication; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugFilingRequirements bugFilingRequirements = (BugFilingRequirements) o; + return Objects.equals(this.bugParams, bugFilingRequirements.bugParams) && + Objects.equals(this.bugTrackerLongDisplayName, bugFilingRequirements.bugTrackerLongDisplayName) && + Objects.equals(this.bugTrackerShortDisplayName, bugFilingRequirements.bugTrackerShortDisplayName) && + Objects.equals(this.requiresAuthentication, bugFilingRequirements.requiresAuthentication); + } + + @Override + public int hashCode() { + return Objects.hash(bugParams, bugTrackerLongDisplayName, bugTrackerShortDisplayName, requiresAuthentication); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugFilingRequirements {\n"); + + sb.append(" bugParams: ").append(toIndentedString(bugParams)).append("\n"); + sb.append(" bugTrackerLongDisplayName: ").append(toIndentedString(bugTrackerLongDisplayName)).append("\n"); + sb.append(" bugTrackerShortDisplayName: ").append(toIndentedString(bugTrackerShortDisplayName)).append("\n"); + sb.append(" requiresAuthentication: ").append(toIndentedString(requiresAuthentication)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsRequest.java b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsRequest.java new file mode 100644 index 0000000..358df37 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsRequest.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of credentials required to file the bug + */ +@ApiModel(description = "Request of credentials required to file the bug") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugFilingRequirementsRequest { + @SerializedName("password") + private String password = null; + + @SerializedName("username") + private String username = null; + + public BugFilingRequirementsRequest password(String password) { + this.password = password; + return this; + } + + /** + * Password + * @return password + **/ + @ApiModelProperty(required = true, value = "Password") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public BugFilingRequirementsRequest username(String username) { + this.username = username; + return this; + } + + /** + * Username + * @return username + **/ + @ApiModelProperty(required = true, value = "Username") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugFilingRequirementsRequest bugFilingRequirementsRequest = (BugFilingRequirementsRequest) o; + return Objects.equals(this.password, bugFilingRequirementsRequest.password) && + Objects.equals(this.username, bugFilingRequirementsRequest.username); + } + + @Override + public int hashCode() { + return Objects.hash(password, username); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugFilingRequirementsRequest {\n"); + + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsResponse.java b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsResponse.java new file mode 100644 index 0000000..0873e09 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugFilingRequirementsResponse.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugFilingRequirements; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Response of validating connection credentials and returns bug filing requirements + */ +@ApiModel(description = "Response of validating connection credentials and returns bug filing requirements") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugFilingRequirementsResponse { + @SerializedName("bugFilingRequirements") + private BugFilingRequirements bugFilingRequirements = null; + + public BugFilingRequirementsResponse bugFilingRequirements(BugFilingRequirements bugFilingRequirements) { + this.bugFilingRequirements = bugFilingRequirements; + return this; + } + + /** + * Requirements to file the bugs + * @return bugFilingRequirements + **/ + @ApiModelProperty(value = "Requirements to file the bugs") + public BugFilingRequirements getBugFilingRequirements() { + return bugFilingRequirements; + } + + public void setBugFilingRequirements(BugFilingRequirements bugFilingRequirements) { + this.bugFilingRequirements = bugFilingRequirements; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugFilingRequirementsResponse bugFilingRequirementsResponse = (BugFilingRequirementsResponse) o; + return Objects.equals(this.bugFilingRequirements, bugFilingRequirementsResponse.bugFilingRequirements); + } + + @Override + public int hashCode() { + return Objects.hash(bugFilingRequirements); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugFilingRequirementsResponse {\n"); + + sb.append(" bugFilingRequirements: ").append(toIndentedString(bugFilingRequirements)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugParam.java b/src/main/java/com/fortify/ssc/restclient/model/BugParam.java new file mode 100644 index 0000000..3d3abf6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugParam.java @@ -0,0 +1,336 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * BugParam + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugParam { + /** + * Gets or Sets bugParamType + */ + @JsonAdapter(BugParamTypeEnum.Adapter.class) + public enum BugParamTypeEnum { + TEXT("BUGPARAM_TEXT"), + + TEXTAREA("BUGPARAM_TEXTAREA"), + + CHOICE("BUGPARAM_CHOICE"); + + private String value; + + BugParamTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BugParamTypeEnum fromValue(String text) { + for (BugParamTypeEnum b : BugParamTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BugParamTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BugParamTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BugParamTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("bugParamType") + private BugParamTypeEnum bugParamType = null; + + @SerializedName("choiceList") + private List choiceList = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("displayLabel") + private String displayLabel = null; + + @SerializedName("hasDependentParams") + private Boolean hasDependentParams = null; + + @SerializedName("identifier") + private String identifier = null; + + @SerializedName("maxLength") + private Integer maxLength = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("value") + private String value = null; + + public BugParam bugParamType(BugParamTypeEnum bugParamType) { + this.bugParamType = bugParamType; + return this; + } + + /** + * Get bugParamType + * @return bugParamType + **/ + @ApiModelProperty(value = "") + public BugParamTypeEnum getBugParamType() { + return bugParamType; + } + + public void setBugParamType(BugParamTypeEnum bugParamType) { + this.bugParamType = bugParamType; + } + + public BugParam choiceList(List choiceList) { + this.choiceList = choiceList; + return this; + } + + public BugParam addChoiceListItem(String choiceListItem) { + if (this.choiceList == null) { + this.choiceList = new ArrayList(); + } + this.choiceList.add(choiceListItem); + return this; + } + + /** + * Get choiceList + * @return choiceList + **/ + @ApiModelProperty(value = "") + public List getChoiceList() { + return choiceList; + } + + public void setChoiceList(List choiceList) { + this.choiceList = choiceList; + } + + public BugParam description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public BugParam displayLabel(String displayLabel) { + this.displayLabel = displayLabel; + return this; + } + + /** + * Get displayLabel + * @return displayLabel + **/ + @ApiModelProperty(value = "") + public String getDisplayLabel() { + return displayLabel; + } + + public void setDisplayLabel(String displayLabel) { + this.displayLabel = displayLabel; + } + + public BugParam hasDependentParams(Boolean hasDependentParams) { + this.hasDependentParams = hasDependentParams; + return this; + } + + /** + * Get hasDependentParams + * @return hasDependentParams + **/ + @ApiModelProperty(value = "") + public Boolean isHasDependentParams() { + return hasDependentParams; + } + + public void setHasDependentParams(Boolean hasDependentParams) { + this.hasDependentParams = hasDependentParams; + } + + public BugParam identifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Get identifier + * @return identifier + **/ + @ApiModelProperty(value = "") + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public BugParam maxLength(Integer maxLength) { + this.maxLength = maxLength; + return this; + } + + /** + * Get maxLength + * @return maxLength + **/ + @ApiModelProperty(value = "") + public Integer getMaxLength() { + return maxLength; + } + + public void setMaxLength(Integer maxLength) { + this.maxLength = maxLength; + } + + public BugParam required(Boolean required) { + this.required = required; + return this; + } + + /** + * Get required + * @return required + **/ + @ApiModelProperty(value = "") + public Boolean isRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public BugParam value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @ApiModelProperty(value = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugParam bugParam = (BugParam) o; + return Objects.equals(this.bugParamType, bugParam.bugParamType) && + Objects.equals(this.choiceList, bugParam.choiceList) && + Objects.equals(this.description, bugParam.description) && + Objects.equals(this.displayLabel, bugParam.displayLabel) && + Objects.equals(this.hasDependentParams, bugParam.hasDependentParams) && + Objects.equals(this.identifier, bugParam.identifier) && + Objects.equals(this.maxLength, bugParam.maxLength) && + Objects.equals(this.required, bugParam.required) && + Objects.equals(this.value, bugParam.value); + } + + @Override + public int hashCode() { + return Objects.hash(bugParamType, choiceList, description, displayLabel, hasDependentParams, identifier, maxLength, required, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugParam {\n"); + + sb.append(" bugParamType: ").append(toIndentedString(bugParamType)).append("\n"); + sb.append(" choiceList: ").append(toIndentedString(choiceList)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayLabel: ").append(toIndentedString(displayLabel)).append("\n"); + sb.append(" hasDependentParams: ").append(toIndentedString(hasDependentParams)).append("\n"); + sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append(" maxLength: ").append(toIndentedString(maxLength)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugStateManagementCfg.java b/src/main/java/com/fortify/ssc/restclient/model/BugStateManagementCfg.java new file mode 100644 index 0000000..a2e9fc3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugStateManagementCfg.java @@ -0,0 +1,162 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * BugStateManagementCfg + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugStateManagementCfg { + @SerializedName("id") + private Long id = null; + + @SerializedName("password") + private String password = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("username") + private String username = null; + + public BugStateManagementCfg id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public BugStateManagementCfg password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + **/ + @ApiModelProperty(value = "") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public BugStateManagementCfg projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public BugStateManagementCfg username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + **/ + @ApiModelProperty(value = "") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugStateManagementCfg bugStateManagementCfg = (BugStateManagementCfg) o; + return Objects.equals(this.id, bugStateManagementCfg.id) && + Objects.equals(this.password, bugStateManagementCfg.password) && + Objects.equals(this.projectVersionId, bugStateManagementCfg.projectVersionId) && + Objects.equals(this.username, bugStateManagementCfg.username); + } + + @Override + public int hashCode() { + return Objects.hash(id, password, projectVersionId, username); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugStateManagementCfg {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugTracker.java b/src/main/java/com/fortify/ssc/restclient/model/BugTracker.java new file mode 100644 index 0000000..bddde08 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugTracker.java @@ -0,0 +1,234 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugTrackerConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Bug tracker DTO object + */ +@ApiModel(description = "Bug tracker DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugTracker { + @SerializedName("authenticationRequired") + private Boolean authenticationRequired = null; + + @SerializedName("bugTrackerConfigs") + private List bugTrackerConfigs = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("longDisplayName") + private String longDisplayName = null; + + @SerializedName("pluginClassName") + private String pluginClassName = null; + + @SerializedName("pluginId") + private String pluginId = null; + + @SerializedName("shortDisplayName") + private String shortDisplayName = null; + + public BugTracker authenticationRequired(Boolean authenticationRequired) { + this.authenticationRequired = authenticationRequired; + return this; + } + + /** + * Authentication required + * @return authenticationRequired + **/ + @ApiModelProperty(example = "false", required = true, value = "Authentication required") + public Boolean isAuthenticationRequired() { + return authenticationRequired; + } + + public void setAuthenticationRequired(Boolean authenticationRequired) { + this.authenticationRequired = authenticationRequired; + } + + public BugTracker bugTrackerConfigs(List bugTrackerConfigs) { + this.bugTrackerConfigs = bugTrackerConfigs; + return this; + } + + public BugTracker addBugTrackerConfigsItem(BugTrackerConfiguration bugTrackerConfigsItem) { + if (this.bugTrackerConfigs == null) { + this.bugTrackerConfigs = new ArrayList(); + } + this.bugTrackerConfigs.add(bugTrackerConfigsItem); + return this; + } + + /** + * Bug tracker configuration + * @return bugTrackerConfigs + **/ + @ApiModelProperty(value = "Bug tracker configuration") + public List getBugTrackerConfigs() { + return bugTrackerConfigs; + } + + public void setBugTrackerConfigs(List bugTrackerConfigs) { + this.bugTrackerConfigs = bugTrackerConfigs; + } + + /** + * Bug tracker identifier + * @return id + **/ + @ApiModelProperty(value = "Bug tracker identifier") + public String getId() { + return id; + } + + public BugTracker longDisplayName(String longDisplayName) { + this.longDisplayName = longDisplayName; + return this; + } + + /** + * Long display name + * @return longDisplayName + **/ + @ApiModelProperty(value = "Long display name") + public String getLongDisplayName() { + return longDisplayName; + } + + public void setLongDisplayName(String longDisplayName) { + this.longDisplayName = longDisplayName; + } + + public BugTracker pluginClassName(String pluginClassName) { + this.pluginClassName = pluginClassName; + return this; + } + + /** + * Class name + * @return pluginClassName + **/ + @ApiModelProperty(required = true, value = "Class name") + public String getPluginClassName() { + return pluginClassName; + } + + public void setPluginClassName(String pluginClassName) { + this.pluginClassName = pluginClassName; + } + + public BugTracker pluginId(String pluginId) { + this.pluginId = pluginId; + return this; + } + + /** + * Bug tracker plugin identifier + * @return pluginId + **/ + @ApiModelProperty(required = true, value = "Bug tracker plugin identifier") + public String getPluginId() { + return pluginId; + } + + public void setPluginId(String pluginId) { + this.pluginId = pluginId; + } + + public BugTracker shortDisplayName(String shortDisplayName) { + this.shortDisplayName = shortDisplayName; + return this; + } + + /** + * Short display name + * @return shortDisplayName + **/ + @ApiModelProperty(required = true, value = "Short display name") + public String getShortDisplayName() { + return shortDisplayName; + } + + public void setShortDisplayName(String shortDisplayName) { + this.shortDisplayName = shortDisplayName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugTracker bugTracker = (BugTracker) o; + return Objects.equals(this.authenticationRequired, bugTracker.authenticationRequired) && + Objects.equals(this.bugTrackerConfigs, bugTracker.bugTrackerConfigs) && + Objects.equals(this.id, bugTracker.id) && + Objects.equals(this.longDisplayName, bugTracker.longDisplayName) && + Objects.equals(this.pluginClassName, bugTracker.pluginClassName) && + Objects.equals(this.pluginId, bugTracker.pluginId) && + Objects.equals(this.shortDisplayName, bugTracker.shortDisplayName); + } + + @Override + public int hashCode() { + return Objects.hash(authenticationRequired, bugTrackerConfigs, id, longDisplayName, pluginClassName, pluginId, shortDisplayName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugTracker {\n"); + + sb.append(" authenticationRequired: ").append(toIndentedString(authenticationRequired)).append("\n"); + sb.append(" bugTrackerConfigs: ").append(toIndentedString(bugTrackerConfigs)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" longDisplayName: ").append(toIndentedString(longDisplayName)).append("\n"); + sb.append(" pluginClassName: ").append(toIndentedString(pluginClassName)).append("\n"); + sb.append(" pluginId: ").append(toIndentedString(pluginId)).append("\n"); + sb.append(" shortDisplayName: ").append(toIndentedString(shortDisplayName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugTrackerConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/BugTrackerConfiguration.java new file mode 100644 index 0000000..153d676 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugTrackerConfiguration.java @@ -0,0 +1,186 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Bug tracker Configuration DTO object + */ +@ApiModel(description = "Bug tracker Configuration DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugTrackerConfiguration { + @SerializedName("description") + private String description = null; + + @SerializedName("displayLabel") + private String displayLabel = null; + + @SerializedName("identifier") + private String identifier = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("value") + private String value = null; + + public BugTrackerConfiguration description(String description) { + this.description = description; + return this; + } + + /** + * Description + * @return description + **/ + @ApiModelProperty(required = true, value = "Description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public BugTrackerConfiguration displayLabel(String displayLabel) { + this.displayLabel = displayLabel; + return this; + } + + /** + * Configuration name + * @return displayLabel + **/ + @ApiModelProperty(required = true, value = "Configuration name") + public String getDisplayLabel() { + return displayLabel; + } + + public void setDisplayLabel(String displayLabel) { + this.displayLabel = displayLabel; + } + + public BugTrackerConfiguration identifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Identifier + * @return identifier + **/ + @ApiModelProperty(required = true, value = "Identifier") + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public BugTrackerConfiguration required(Boolean required) { + this.required = required; + return this; + } + + /** + * Set to true if configuration is required + * @return required + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if configuration is required") + public Boolean isRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public BugTrackerConfiguration value(String value) { + this.value = value; + return this; + } + + /** + * Configuration value + * @return value + **/ + @ApiModelProperty(required = true, value = "Configuration value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugTrackerConfiguration bugTrackerConfiguration = (BugTrackerConfiguration) o; + return Objects.equals(this.description, bugTrackerConfiguration.description) && + Objects.equals(this.displayLabel, bugTrackerConfiguration.displayLabel) && + Objects.equals(this.identifier, bugTrackerConfiguration.identifier) && + Objects.equals(this.required, bugTrackerConfiguration.required) && + Objects.equals(this.value, bugTrackerConfiguration.value); + } + + @Override + public int hashCode() { + return Objects.hash(description, displayLabel, identifier, required, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugTrackerConfiguration {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayLabel: ").append(toIndentedString(displayLabel)).append("\n"); + sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugTrackerRequest.java b/src/main/java/com/fortify/ssc/restclient/model/BugTrackerRequest.java new file mode 100644 index 0000000..06f842c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugTrackerRequest.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ProjectVersionBugTracker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of testing bugtracker plugin connection + */ +@ApiModel(description = "Request of testing bugtracker plugin connection") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugTrackerRequest { + @SerializedName("testPlugin") + private ProjectVersionBugTracker testPlugin = null; + + public BugTrackerRequest testPlugin(ProjectVersionBugTracker testPlugin) { + this.testPlugin = testPlugin; + return this; + } + + /** + * Bugtracker plugin information to test connection + * @return testPlugin + **/ + @ApiModelProperty(required = true, value = "Bugtracker plugin information to test connection") + public ProjectVersionBugTracker getTestPlugin() { + return testPlugin; + } + + public void setTestPlugin(ProjectVersionBugTracker testPlugin) { + this.testPlugin = testPlugin; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugTrackerRequest bugTrackerRequest = (BugTrackerRequest) o; + return Objects.equals(this.testPlugin, bugTrackerRequest.testPlugin); + } + + @Override + public int hashCode() { + return Objects.hash(testPlugin); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugTrackerRequest {\n"); + + sb.append(" testPlugin: ").append(toIndentedString(testPlugin)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateDto.java b/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateDto.java new file mode 100644 index 0000000..f5b42bc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateDto.java @@ -0,0 +1,131 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Bugfield Template + */ +@ApiModel(description = "Bugfield Template") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugfieldTemplateDto { + @SerializedName("fieldName") + private String fieldName = null; + + @SerializedName("fieldValue") + private String fieldValue = null; + + @SerializedName("id") + private Long id = null; + + public BugfieldTemplateDto fieldName(String fieldName) { + this.fieldName = fieldName; + return this; + } + + /** + * unique name of bugfield template. + * @return fieldName + **/ + @ApiModelProperty(required = true, value = "unique name of bugfield template.") + public String getFieldName() { + return fieldName; + } + + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + public BugfieldTemplateDto fieldValue(String fieldValue) { + this.fieldValue = fieldValue; + return this; + } + + /** + * description for bugfield template . + * @return fieldValue + **/ + @ApiModelProperty(value = "description for bugfield template .") + public String getFieldValue() { + return fieldValue; + } + + public void setFieldValue(String fieldValue) { + this.fieldValue = fieldValue; + } + + /** + * unique identifier of bugfield template. + * @return id + **/ + @ApiModelProperty(value = "unique identifier of bugfield template.") + public Long getId() { + return id; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugfieldTemplateDto bugfieldTemplateDto = (BugfieldTemplateDto) o; + return Objects.equals(this.fieldName, bugfieldTemplateDto.fieldName) && + Objects.equals(this.fieldValue, bugfieldTemplateDto.fieldValue) && + Objects.equals(this.id, bugfieldTemplateDto.id); + } + + @Override + public int hashCode() { + return Objects.hash(fieldName, fieldValue, id); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugfieldTemplateDto {\n"); + + sb.append(" fieldName: ").append(toIndentedString(fieldName)).append("\n"); + sb.append(" fieldValue: ").append(toIndentedString(fieldValue)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateGroupDto.java b/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateGroupDto.java new file mode 100644 index 0000000..9333946 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BugfieldTemplateGroupDto.java @@ -0,0 +1,204 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugfieldTemplateDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Bugfield Template Group + */ +@ApiModel(description = "Bugfield Template Group") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BugfieldTemplateGroupDto { + @SerializedName("bugTrackerPluginId") + private String bugTrackerPluginId = null; + + @SerializedName("deletable") + private Boolean deletable = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("valueList") + private List valueList = new ArrayList(); + + /** + * Identifier of the bug tracker plugin associated with this template group. + * @return bugTrackerPluginId + **/ + @ApiModelProperty(required = true, value = "Identifier of the bug tracker plugin associated with this template group.") + public String getBugTrackerPluginId() { + return bugTrackerPluginId; + } + + /** + * Flag that says if bugfield template group can be deleted. + * @return deletable + **/ + @ApiModelProperty(example = "false", required = true, value = "Flag that says if bugfield template group can be deleted.") + public Boolean isDeletable() { + return deletable; + } + + public BugfieldTemplateGroupDto description(String description) { + this.description = description; + return this; + } + + /** + * description for bugfield template group. + * @return description + **/ + @ApiModelProperty(value = "description for bugfield template group.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * unique identifier of bugfield template group. + * @return id + **/ + @ApiModelProperty(value = "unique identifier of bugfield template group.") + public Long getId() { + return id; + } + + public BugfieldTemplateGroupDto name(String name) { + this.name = name; + return this; + } + + /** + * short name of associated bug tracker plugin. (May be null if plugin is not currently enabled.) + * @return name + **/ + @ApiModelProperty(required = true, value = "short name of associated bug tracker plugin. (May be null if plugin is not currently enabled.)") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * version of bugfield template group stored on the server. This value is used for optimistic locking to prevent concurrent modification by different users at the same time. + * @return objectVersion + **/ + @ApiModelProperty(required = true, value = "version of bugfield template group stored on the server. This value is used for optimistic locking to prevent concurrent modification by different users at the same time.") + public Integer getObjectVersion() { + return objectVersion; + } + + public BugfieldTemplateGroupDto valueList(List valueList) { + this.valueList = valueList; + return this; + } + + public BugfieldTemplateGroupDto addValueListItem(BugfieldTemplateDto valueListItem) { + this.valueList.add(valueListItem); + return this; + } + + /** + * Collection of all templates belonging to this bugfield template group. + * @return valueList + **/ + @ApiModelProperty(required = true, value = "Collection of all templates belonging to this bugfield template group.") + public List getValueList() { + return valueList; + } + + public void setValueList(List valueList) { + this.valueList = valueList; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BugfieldTemplateGroupDto bugfieldTemplateGroupDto = (BugfieldTemplateGroupDto) o; + return Objects.equals(this.bugTrackerPluginId, bugfieldTemplateGroupDto.bugTrackerPluginId) && + Objects.equals(this.deletable, bugfieldTemplateGroupDto.deletable) && + Objects.equals(this.description, bugfieldTemplateGroupDto.description) && + Objects.equals(this.id, bugfieldTemplateGroupDto.id) && + Objects.equals(this.name, bugfieldTemplateGroupDto.name) && + Objects.equals(this.objectVersion, bugfieldTemplateGroupDto.objectVersion) && + Objects.equals(this.valueList, bugfieldTemplateGroupDto.valueList); + } + + @Override + public int hashCode() { + return Objects.hash(bugTrackerPluginId, deletable, description, id, name, objectVersion, valueList); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BugfieldTemplateGroupDto {\n"); + + sb.append(" bugTrackerPluginId: ").append(toIndentedString(bugTrackerPluginId)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" valueList: ").append(toIndentedString(valueList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BulkRequestData.java b/src/main/java/com/fortify/ssc/restclient/model/BulkRequestData.java new file mode 100644 index 0000000..50a5fe6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BulkRequestData.java @@ -0,0 +1,104 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApiBulkRequestItem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * BulkRequestData + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BulkRequestData { + @SerializedName("requests") + private List requests = null; + + public BulkRequestData requests(List requests) { + this.requests = requests; + return this; + } + + public BulkRequestData addRequestsItem(ApiBulkRequestItem requestsItem) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(requestsItem); + return this; + } + + /** + * A list of bulk request items that represents requests that could have been issued independently (or use HATEOAS \"response\" scheme requests that map to individual requests). + * @return requests + **/ + @ApiModelProperty(value = "A list of bulk request items that represents requests that could have been issued independently (or use HATEOAS \"response\" scheme requests that map to individual requests).") + public List getRequests() { + return requests; + } + + public void setRequests(List requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkRequestData bulkRequestData = (BulkRequestData) o; + return Objects.equals(this.requests, bulkRequestData.requests); + } + + @Override + public int hashCode() { + return Objects.hash(requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkRequestData {\n"); + + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/BulkResponseItem.java b/src/main/java/com/fortify/ssc/restclient/model/BulkResponseItem.java new file mode 100644 index 0000000..d453081 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/BulkResponseItem.java @@ -0,0 +1,128 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ApiBulkRequestItem; +import com.fortify.ssc.restclient.model.ApiBulkResponseItemResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * BulkResponseItem + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class BulkResponseItem { + @SerializedName("request") + private ApiBulkRequestItem request = null; + + @SerializedName("responses") + private List responses = null; + + public BulkResponseItem request(ApiBulkRequestItem request) { + this.request = request; + return this; + } + + /** + * Get request + * @return request + **/ + @ApiModelProperty(value = "") + public ApiBulkRequestItem getRequest() { + return request; + } + + public void setRequest(ApiBulkRequestItem request) { + this.request = request; + } + + public BulkResponseItem responses(List responses) { + this.responses = responses; + return this; + } + + public BulkResponseItem addResponsesItem(ApiBulkResponseItemResponse responsesItem) { + if (this.responses == null) { + this.responses = new ArrayList(); + } + this.responses.add(responsesItem); + return this; + } + + /** + * Get responses + * @return responses + **/ + @ApiModelProperty(value = "") + public List getResponses() { + return responses; + } + + public void setResponses(List responses) { + this.responses = responses; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkResponseItem bulkResponseItem = (BulkResponseItem) o; + return Objects.equals(this.request, bulkResponseItem.request) && + Objects.equals(this.responses, bulkResponseItem.responses); + } + + @Override + public int hashCode() { + return Objects.hash(request, responses); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkResponseItem {\n"); + + sb.append(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" responses: ").append(toIndentedString(responses)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudJob.java b/src/main/java/com/fortify/ssc/restclient/model/CloudJob.java new file mode 100644 index 0000000..90fed4b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudJob.java @@ -0,0 +1,617 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPool; +import com.fortify.ssc.restclient.model.CloudWorker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Cloudscan job + */ +@ApiModel(description = "Cloudscan job") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudJob { + @SerializedName("cloudPool") + private CloudPool cloudPool = null; + + @SerializedName("cloudWorker") + private CloudWorker cloudWorker = null; + + @SerializedName("jobCancellable") + private Boolean jobCancellable = null; + + @SerializedName("jobDuration") + private Long jobDuration = null; + + @SerializedName("jobExpiryTime") + private OffsetDateTime jobExpiryTime = null; + + @SerializedName("jobFinishedTime") + private OffsetDateTime jobFinishedTime = null; + + @SerializedName("jobHasFpr") + private Boolean jobHasFpr = null; + + @SerializedName("jobHasLog") + private Boolean jobHasLog = null; + + @SerializedName("jobQueuedTime") + private OffsetDateTime jobQueuedTime = null; + + @SerializedName("jobStartedTime") + private OffsetDateTime jobStartedTime = null; + + @SerializedName("jobState") + private String jobState = null; + + @SerializedName("jobToken") + private String jobToken = null; + + @SerializedName("projectId") + private Long projectId = null; + + @SerializedName("projectName") + private String projectName = null; + + @SerializedName("pvId") + private Long pvId = null; + + @SerializedName("pvName") + private String pvName = null; + + @SerializedName("queuedDuration") + private Long queuedDuration = null; + + @SerializedName("scaArgs") + private String scaArgs = null; + + @SerializedName("scaBuildId") + private String scaBuildId = null; + + @SerializedName("scaVersion") + private String scaVersion = null; + + @SerializedName("scanDuration") + private Long scanDuration = null; + + @SerializedName("submitterEmail") + private String submitterEmail = null; + + @SerializedName("submitterIpAddress") + private String submitterIpAddress = null; + + @SerializedName("submitterUserName") + private String submitterUserName = null; + + public CloudJob cloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + return this; + } + + /** + * Get cloudPool + * @return cloudPool + **/ + @ApiModelProperty(value = "") + public CloudPool getCloudPool() { + return cloudPool; + } + + public void setCloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + } + + public CloudJob cloudWorker(CloudWorker cloudWorker) { + this.cloudWorker = cloudWorker; + return this; + } + + /** + * Get cloudWorker + * @return cloudWorker + **/ + @ApiModelProperty(value = "") + public CloudWorker getCloudWorker() { + return cloudWorker; + } + + public void setCloudWorker(CloudWorker cloudWorker) { + this.cloudWorker = cloudWorker; + } + + public CloudJob jobCancellable(Boolean jobCancellable) { + this.jobCancellable = jobCancellable; + return this; + } + + /** + * Get jobCancellable + * @return jobCancellable + **/ + @ApiModelProperty(value = "") + public Boolean isJobCancellable() { + return jobCancellable; + } + + public void setJobCancellable(Boolean jobCancellable) { + this.jobCancellable = jobCancellable; + } + + public CloudJob jobDuration(Long jobDuration) { + this.jobDuration = jobDuration; + return this; + } + + /** + * Get jobDuration + * @return jobDuration + **/ + @ApiModelProperty(value = "") + public Long getJobDuration() { + return jobDuration; + } + + public void setJobDuration(Long jobDuration) { + this.jobDuration = jobDuration; + } + + public CloudJob jobExpiryTime(OffsetDateTime jobExpiryTime) { + this.jobExpiryTime = jobExpiryTime; + return this; + } + + /** + * Get jobExpiryTime + * @return jobExpiryTime + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getJobExpiryTime() { + return jobExpiryTime; + } + + public void setJobExpiryTime(OffsetDateTime jobExpiryTime) { + this.jobExpiryTime = jobExpiryTime; + } + + public CloudJob jobFinishedTime(OffsetDateTime jobFinishedTime) { + this.jobFinishedTime = jobFinishedTime; + return this; + } + + /** + * Get jobFinishedTime + * @return jobFinishedTime + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getJobFinishedTime() { + return jobFinishedTime; + } + + public void setJobFinishedTime(OffsetDateTime jobFinishedTime) { + this.jobFinishedTime = jobFinishedTime; + } + + public CloudJob jobHasFpr(Boolean jobHasFpr) { + this.jobHasFpr = jobHasFpr; + return this; + } + + /** + * Get jobHasFpr + * @return jobHasFpr + **/ + @ApiModelProperty(value = "") + public Boolean isJobHasFpr() { + return jobHasFpr; + } + + public void setJobHasFpr(Boolean jobHasFpr) { + this.jobHasFpr = jobHasFpr; + } + + public CloudJob jobHasLog(Boolean jobHasLog) { + this.jobHasLog = jobHasLog; + return this; + } + + /** + * Get jobHasLog + * @return jobHasLog + **/ + @ApiModelProperty(value = "") + public Boolean isJobHasLog() { + return jobHasLog; + } + + public void setJobHasLog(Boolean jobHasLog) { + this.jobHasLog = jobHasLog; + } + + public CloudJob jobQueuedTime(OffsetDateTime jobQueuedTime) { + this.jobQueuedTime = jobQueuedTime; + return this; + } + + /** + * Get jobQueuedTime + * @return jobQueuedTime + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getJobQueuedTime() { + return jobQueuedTime; + } + + public void setJobQueuedTime(OffsetDateTime jobQueuedTime) { + this.jobQueuedTime = jobQueuedTime; + } + + public CloudJob jobStartedTime(OffsetDateTime jobStartedTime) { + this.jobStartedTime = jobStartedTime; + return this; + } + + /** + * Get jobStartedTime + * @return jobStartedTime + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getJobStartedTime() { + return jobStartedTime; + } + + public void setJobStartedTime(OffsetDateTime jobStartedTime) { + this.jobStartedTime = jobStartedTime; + } + + public CloudJob jobState(String jobState) { + this.jobState = jobState; + return this; + } + + /** + * Get jobState + * @return jobState + **/ + @ApiModelProperty(value = "") + public String getJobState() { + return jobState; + } + + public void setJobState(String jobState) { + this.jobState = jobState; + } + + /** + * Get jobToken + * @return jobToken + **/ + @ApiModelProperty(value = "") + public String getJobToken() { + return jobToken; + } + + public CloudJob projectId(Long projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @ApiModelProperty(value = "") + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public CloudJob projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @ApiModelProperty(value = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public CloudJob pvId(Long pvId) { + this.pvId = pvId; + return this; + } + + /** + * Get pvId + * @return pvId + **/ + @ApiModelProperty(value = "") + public Long getPvId() { + return pvId; + } + + public void setPvId(Long pvId) { + this.pvId = pvId; + } + + public CloudJob pvName(String pvName) { + this.pvName = pvName; + return this; + } + + /** + * Get pvName + * @return pvName + **/ + @ApiModelProperty(value = "") + public String getPvName() { + return pvName; + } + + public void setPvName(String pvName) { + this.pvName = pvName; + } + + public CloudJob queuedDuration(Long queuedDuration) { + this.queuedDuration = queuedDuration; + return this; + } + + /** + * Get queuedDuration + * @return queuedDuration + **/ + @ApiModelProperty(value = "") + public Long getQueuedDuration() { + return queuedDuration; + } + + public void setQueuedDuration(Long queuedDuration) { + this.queuedDuration = queuedDuration; + } + + public CloudJob scaArgs(String scaArgs) { + this.scaArgs = scaArgs; + return this; + } + + /** + * Get scaArgs + * @return scaArgs + **/ + @ApiModelProperty(value = "") + public String getScaArgs() { + return scaArgs; + } + + public void setScaArgs(String scaArgs) { + this.scaArgs = scaArgs; + } + + public CloudJob scaBuildId(String scaBuildId) { + this.scaBuildId = scaBuildId; + return this; + } + + /** + * Get scaBuildId + * @return scaBuildId + **/ + @ApiModelProperty(value = "") + public String getScaBuildId() { + return scaBuildId; + } + + public void setScaBuildId(String scaBuildId) { + this.scaBuildId = scaBuildId; + } + + public CloudJob scaVersion(String scaVersion) { + this.scaVersion = scaVersion; + return this; + } + + /** + * Get scaVersion + * @return scaVersion + **/ + @ApiModelProperty(value = "") + public String getScaVersion() { + return scaVersion; + } + + public void setScaVersion(String scaVersion) { + this.scaVersion = scaVersion; + } + + public CloudJob scanDuration(Long scanDuration) { + this.scanDuration = scanDuration; + return this; + } + + /** + * Get scanDuration + * @return scanDuration + **/ + @ApiModelProperty(value = "") + public Long getScanDuration() { + return scanDuration; + } + + public void setScanDuration(Long scanDuration) { + this.scanDuration = scanDuration; + } + + public CloudJob submitterEmail(String submitterEmail) { + this.submitterEmail = submitterEmail; + return this; + } + + /** + * Get submitterEmail + * @return submitterEmail + **/ + @ApiModelProperty(value = "") + public String getSubmitterEmail() { + return submitterEmail; + } + + public void setSubmitterEmail(String submitterEmail) { + this.submitterEmail = submitterEmail; + } + + public CloudJob submitterIpAddress(String submitterIpAddress) { + this.submitterIpAddress = submitterIpAddress; + return this; + } + + /** + * Get submitterIpAddress + * @return submitterIpAddress + **/ + @ApiModelProperty(value = "") + public String getSubmitterIpAddress() { + return submitterIpAddress; + } + + public void setSubmitterIpAddress(String submitterIpAddress) { + this.submitterIpAddress = submitterIpAddress; + } + + public CloudJob submitterUserName(String submitterUserName) { + this.submitterUserName = submitterUserName; + return this; + } + + /** + * Get submitterUserName + * @return submitterUserName + **/ + @ApiModelProperty(value = "") + public String getSubmitterUserName() { + return submitterUserName; + } + + public void setSubmitterUserName(String submitterUserName) { + this.submitterUserName = submitterUserName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudJob cloudJob = (CloudJob) o; + return Objects.equals(this.cloudPool, cloudJob.cloudPool) && + Objects.equals(this.cloudWorker, cloudJob.cloudWorker) && + Objects.equals(this.jobCancellable, cloudJob.jobCancellable) && + Objects.equals(this.jobDuration, cloudJob.jobDuration) && + Objects.equals(this.jobExpiryTime, cloudJob.jobExpiryTime) && + Objects.equals(this.jobFinishedTime, cloudJob.jobFinishedTime) && + Objects.equals(this.jobHasFpr, cloudJob.jobHasFpr) && + Objects.equals(this.jobHasLog, cloudJob.jobHasLog) && + Objects.equals(this.jobQueuedTime, cloudJob.jobQueuedTime) && + Objects.equals(this.jobStartedTime, cloudJob.jobStartedTime) && + Objects.equals(this.jobState, cloudJob.jobState) && + Objects.equals(this.jobToken, cloudJob.jobToken) && + Objects.equals(this.projectId, cloudJob.projectId) && + Objects.equals(this.projectName, cloudJob.projectName) && + Objects.equals(this.pvId, cloudJob.pvId) && + Objects.equals(this.pvName, cloudJob.pvName) && + Objects.equals(this.queuedDuration, cloudJob.queuedDuration) && + Objects.equals(this.scaArgs, cloudJob.scaArgs) && + Objects.equals(this.scaBuildId, cloudJob.scaBuildId) && + Objects.equals(this.scaVersion, cloudJob.scaVersion) && + Objects.equals(this.scanDuration, cloudJob.scanDuration) && + Objects.equals(this.submitterEmail, cloudJob.submitterEmail) && + Objects.equals(this.submitterIpAddress, cloudJob.submitterIpAddress) && + Objects.equals(this.submitterUserName, cloudJob.submitterUserName); + } + + @Override + public int hashCode() { + return Objects.hash(cloudPool, cloudWorker, jobCancellable, jobDuration, jobExpiryTime, jobFinishedTime, jobHasFpr, jobHasLog, jobQueuedTime, jobStartedTime, jobState, jobToken, projectId, projectName, pvId, pvName, queuedDuration, scaArgs, scaBuildId, scaVersion, scanDuration, submitterEmail, submitterIpAddress, submitterUserName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudJob {\n"); + + sb.append(" cloudPool: ").append(toIndentedString(cloudPool)).append("\n"); + sb.append(" cloudWorker: ").append(toIndentedString(cloudWorker)).append("\n"); + sb.append(" jobCancellable: ").append(toIndentedString(jobCancellable)).append("\n"); + sb.append(" jobDuration: ").append(toIndentedString(jobDuration)).append("\n"); + sb.append(" jobExpiryTime: ").append(toIndentedString(jobExpiryTime)).append("\n"); + sb.append(" jobFinishedTime: ").append(toIndentedString(jobFinishedTime)).append("\n"); + sb.append(" jobHasFpr: ").append(toIndentedString(jobHasFpr)).append("\n"); + sb.append(" jobHasLog: ").append(toIndentedString(jobHasLog)).append("\n"); + sb.append(" jobQueuedTime: ").append(toIndentedString(jobQueuedTime)).append("\n"); + sb.append(" jobStartedTime: ").append(toIndentedString(jobStartedTime)).append("\n"); + sb.append(" jobState: ").append(toIndentedString(jobState)).append("\n"); + sb.append(" jobToken: ").append(toIndentedString(jobToken)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" pvId: ").append(toIndentedString(pvId)).append("\n"); + sb.append(" pvName: ").append(toIndentedString(pvName)).append("\n"); + sb.append(" queuedDuration: ").append(toIndentedString(queuedDuration)).append("\n"); + sb.append(" scaArgs: ").append(toIndentedString(scaArgs)).append("\n"); + sb.append(" scaBuildId: ").append(toIndentedString(scaBuildId)).append("\n"); + sb.append(" scaVersion: ").append(toIndentedString(scaVersion)).append("\n"); + sb.append(" scanDuration: ").append(toIndentedString(scanDuration)).append("\n"); + sb.append(" submitterEmail: ").append(toIndentedString(submitterEmail)).append("\n"); + sb.append(" submitterIpAddress: ").append(toIndentedString(submitterIpAddress)).append("\n"); + sb.append(" submitterUserName: ").append(toIndentedString(submitterUserName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudJobCancelRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudJobCancelRequest.java new file mode 100644 index 0000000..92c603b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudJobCancelRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of cancelling cloudscan jobs + */ +@ApiModel(description = "Request of cancelling cloudscan jobs") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudJobCancelRequest { + @SerializedName("jobTokens") + private List jobTokens = new ArrayList(); + + public CloudJobCancelRequest jobTokens(List jobTokens) { + this.jobTokens = jobTokens; + return this; + } + + public CloudJobCancelRequest addJobTokensItem(String jobTokensItem) { + this.jobTokens.add(jobTokensItem); + return this; + } + + /** + * List containing single cloud job token to cancel + * @return jobTokens + **/ + @ApiModelProperty(required = true, value = "List containing single cloud job token to cancel") + public List getJobTokens() { + return jobTokens; + } + + public void setJobTokens(List jobTokens) { + this.jobTokens = jobTokens; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudJobCancelRequest cloudJobCancelRequest = (CloudJobCancelRequest) o; + return Objects.equals(this.jobTokens, cloudJobCancelRequest.jobTokens); + } + + @Override + public int hashCode() { + return Objects.hash(jobTokens); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudJobCancelRequest {\n"); + + sb.append(" jobTokens: ").append(toIndentedString(jobTokens)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPool.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPool.java new file mode 100644 index 0000000..ed593c5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPool.java @@ -0,0 +1,206 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPoolStats; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Cloudscan worker pool + */ +@ApiModel(description = "Cloudscan worker pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPool { + @SerializedName("childOfGlobalPool") + private Boolean childOfGlobalPool = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("isDeletable") + private Boolean isDeletable = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("path") + private String path = null; + + @SerializedName("stats") + private CloudPoolStats stats = null; + + @SerializedName("uuid") + private String uuid = null; + + public CloudPool childOfGlobalPool(Boolean childOfGlobalPool) { + this.childOfGlobalPool = childOfGlobalPool; + return this; + } + + /** + * Get childOfGlobalPool + * @return childOfGlobalPool + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isChildOfGlobalPool() { + return childOfGlobalPool; + } + + public void setChildOfGlobalPool(Boolean childOfGlobalPool) { + this.childOfGlobalPool = childOfGlobalPool; + } + + public CloudPool description(String description) { + this.description = description; + return this; + } + + /** + * Cloudscan pool description + * @return description + **/ + @ApiModelProperty(value = "Cloudscan pool description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Get isDeletable + * @return isDeletable + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isIsDeletable() { + return isDeletable; + } + + public CloudPool name(String name) { + this.name = name; + return this; + } + + /** + * Cloudscan pool name + * @return name + **/ + @ApiModelProperty(required = true, value = "Cloudscan pool name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * Cloudscan pool path + * @return path + **/ + @ApiModelProperty(value = "Cloudscan pool path") + public String getPath() { + return path; + } + + public CloudPool stats(CloudPoolStats stats) { + this.stats = stats; + return this; + } + + /** + * Get stats + * @return stats + **/ + @ApiModelProperty(value = "") + public CloudPoolStats getStats() { + return stats; + } + + public void setStats(CloudPoolStats stats) { + this.stats = stats; + } + + /** + * Cloudscan pool UUID + * @return uuid + **/ + @ApiModelProperty(value = "Cloudscan pool UUID") + public String getUuid() { + return uuid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPool cloudPool = (CloudPool) o; + return Objects.equals(this.childOfGlobalPool, cloudPool.childOfGlobalPool) && + Objects.equals(this.description, cloudPool.description) && + Objects.equals(this.isDeletable, cloudPool.isDeletable) && + Objects.equals(this.name, cloudPool.name) && + Objects.equals(this.path, cloudPool.path) && + Objects.equals(this.stats, cloudPool.stats) && + Objects.equals(this.uuid, cloudPool.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(childOfGlobalPool, description, isDeletable, name, path, stats, uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPool {\n"); + + sb.append(" childOfGlobalPool: ").append(toIndentedString(childOfGlobalPool)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isDeletable: ").append(toIndentedString(isDeletable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" stats: ").append(toIndentedString(stats)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolMapping.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolMapping.java new file mode 100644 index 0000000..c98f33a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolMapping.java @@ -0,0 +1,118 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPool; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Project version to CloudScan pool mapping + */ +@ApiModel(description = "Project version to CloudScan pool mapping") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolMapping { + @SerializedName("cloudPool") + private CloudPool cloudPool = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + public CloudPoolMapping cloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + return this; + } + + /** + * Get cloudPool + * @return cloudPool + **/ + @ApiModelProperty(value = "") + public CloudPool getCloudPool() { + return cloudPool; + } + + public void setCloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + } + + public CloudPoolMapping projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolMapping cloudPoolMapping = (CloudPoolMapping) o; + return Objects.equals(this.cloudPool, cloudPoolMapping.cloudPool) && + Objects.equals(this.projectVersionId, cloudPoolMapping.projectVersionId); + } + + @Override + public int hashCode() { + return Objects.hash(cloudPool, projectVersionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolMapping {\n"); + + sb.append(" cloudPool: ").append(toIndentedString(cloudPool)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionActionResponse.java new file mode 100644 index 0000000..6ef523a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionActionResponse.java @@ -0,0 +1,104 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Result of project version related to cloud pool actions + */ +@ApiModel(description = "Result of project version related to cloud pool actions") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolProjectVersionActionResponse { + @SerializedName("projectVersionIds") + private List projectVersionIds = null; + + public CloudPoolProjectVersionActionResponse projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public CloudPoolProjectVersionActionResponse addProjectVersionIdsItem(Long projectVersionIdsItem) { + if (this.projectVersionIds == null) { + this.projectVersionIds = new ArrayList(); + } + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List of project version ids + * @return projectVersionIds + **/ + @ApiModelProperty(value = "List of project version ids") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolProjectVersionActionResponse cloudPoolProjectVersionActionResponse = (CloudPoolProjectVersionActionResponse) o; + return Objects.equals(this.projectVersionIds, cloudPoolProjectVersionActionResponse.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolProjectVersionActionResponse {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionAssignRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionAssignRequest.java new file mode 100644 index 0000000..2baeb20 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionAssignRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of assigning project version to the cloud pool + */ +@ApiModel(description = "Request of assigning project version to the cloud pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolProjectVersionAssignRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public CloudPoolProjectVersionAssignRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public CloudPoolProjectVersionAssignRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List of project version ids to assign to cloud pool + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List of project version ids to assign to cloud pool") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolProjectVersionAssignRequest cloudPoolProjectVersionAssignRequest = (CloudPoolProjectVersionAssignRequest) o; + return Objects.equals(this.projectVersionIds, cloudPoolProjectVersionAssignRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolProjectVersionAssignRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionReplaceRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionReplaceRequest.java new file mode 100644 index 0000000..eab056d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolProjectVersionReplaceRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of replacing project versions in the cloud pool + */ +@ApiModel(description = "Request of replacing project versions in the cloud pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolProjectVersionReplaceRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public CloudPoolProjectVersionReplaceRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public CloudPoolProjectVersionReplaceRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List of project version ids to replace in cloud pool + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List of project version ids to replace in cloud pool") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolProjectVersionReplaceRequest cloudPoolProjectVersionReplaceRequest = (CloudPoolProjectVersionReplaceRequest) o; + return Objects.equals(this.projectVersionIds, cloudPoolProjectVersionReplaceRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolProjectVersionReplaceRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolStats.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolStats.java new file mode 100644 index 0000000..e70927e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolStats.java @@ -0,0 +1,278 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Cloudscan worker pool statistics + */ +@ApiModel(description = "Cloudscan worker pool statistics") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolStats { + @SerializedName("activeWorkerCount") + private Long activeWorkerCount = null; + + @SerializedName("idleWorkerCount") + private Long idleWorkerCount = null; + + @SerializedName("inactiveWorkerCount") + private Long inactiveWorkerCount = null; + + @SerializedName("pendingJobCount") + private Long pendingJobCount = null; + + @SerializedName("processingWorkerCount") + private Long processingWorkerCount = null; + + @SerializedName("projectVersionCount") + private Long projectVersionCount = null; + + @SerializedName("runningJobCount") + private Long runningJobCount = null; + + @SerializedName("staleWorkerCount") + private Long staleWorkerCount = null; + + @SerializedName("totalWorkerCount") + private Long totalWorkerCount = null; + + public CloudPoolStats activeWorkerCount(Long activeWorkerCount) { + this.activeWorkerCount = activeWorkerCount; + return this; + } + + /** + * Get activeWorkerCount + * @return activeWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getActiveWorkerCount() { + return activeWorkerCount; + } + + public void setActiveWorkerCount(Long activeWorkerCount) { + this.activeWorkerCount = activeWorkerCount; + } + + public CloudPoolStats idleWorkerCount(Long idleWorkerCount) { + this.idleWorkerCount = idleWorkerCount; + return this; + } + + /** + * Get idleWorkerCount + * @return idleWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getIdleWorkerCount() { + return idleWorkerCount; + } + + public void setIdleWorkerCount(Long idleWorkerCount) { + this.idleWorkerCount = idleWorkerCount; + } + + public CloudPoolStats inactiveWorkerCount(Long inactiveWorkerCount) { + this.inactiveWorkerCount = inactiveWorkerCount; + return this; + } + + /** + * Get inactiveWorkerCount + * @return inactiveWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getInactiveWorkerCount() { + return inactiveWorkerCount; + } + + public void setInactiveWorkerCount(Long inactiveWorkerCount) { + this.inactiveWorkerCount = inactiveWorkerCount; + } + + public CloudPoolStats pendingJobCount(Long pendingJobCount) { + this.pendingJobCount = pendingJobCount; + return this; + } + + /** + * Get pendingJobCount + * @return pendingJobCount + **/ + @ApiModelProperty(value = "") + public Long getPendingJobCount() { + return pendingJobCount; + } + + public void setPendingJobCount(Long pendingJobCount) { + this.pendingJobCount = pendingJobCount; + } + + public CloudPoolStats processingWorkerCount(Long processingWorkerCount) { + this.processingWorkerCount = processingWorkerCount; + return this; + } + + /** + * Get processingWorkerCount + * @return processingWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getProcessingWorkerCount() { + return processingWorkerCount; + } + + public void setProcessingWorkerCount(Long processingWorkerCount) { + this.processingWorkerCount = processingWorkerCount; + } + + public CloudPoolStats projectVersionCount(Long projectVersionCount) { + this.projectVersionCount = projectVersionCount; + return this; + } + + /** + * Get projectVersionCount + * @return projectVersionCount + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionCount() { + return projectVersionCount; + } + + public void setProjectVersionCount(Long projectVersionCount) { + this.projectVersionCount = projectVersionCount; + } + + public CloudPoolStats runningJobCount(Long runningJobCount) { + this.runningJobCount = runningJobCount; + return this; + } + + /** + * Get runningJobCount + * @return runningJobCount + **/ + @ApiModelProperty(value = "") + public Long getRunningJobCount() { + return runningJobCount; + } + + public void setRunningJobCount(Long runningJobCount) { + this.runningJobCount = runningJobCount; + } + + public CloudPoolStats staleWorkerCount(Long staleWorkerCount) { + this.staleWorkerCount = staleWorkerCount; + return this; + } + + /** + * Get staleWorkerCount + * @return staleWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getStaleWorkerCount() { + return staleWorkerCount; + } + + public void setStaleWorkerCount(Long staleWorkerCount) { + this.staleWorkerCount = staleWorkerCount; + } + + public CloudPoolStats totalWorkerCount(Long totalWorkerCount) { + this.totalWorkerCount = totalWorkerCount; + return this; + } + + /** + * Get totalWorkerCount + * @return totalWorkerCount + **/ + @ApiModelProperty(value = "") + public Long getTotalWorkerCount() { + return totalWorkerCount; + } + + public void setTotalWorkerCount(Long totalWorkerCount) { + this.totalWorkerCount = totalWorkerCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolStats cloudPoolStats = (CloudPoolStats) o; + return Objects.equals(this.activeWorkerCount, cloudPoolStats.activeWorkerCount) && + Objects.equals(this.idleWorkerCount, cloudPoolStats.idleWorkerCount) && + Objects.equals(this.inactiveWorkerCount, cloudPoolStats.inactiveWorkerCount) && + Objects.equals(this.pendingJobCount, cloudPoolStats.pendingJobCount) && + Objects.equals(this.processingWorkerCount, cloudPoolStats.processingWorkerCount) && + Objects.equals(this.projectVersionCount, cloudPoolStats.projectVersionCount) && + Objects.equals(this.runningJobCount, cloudPoolStats.runningJobCount) && + Objects.equals(this.staleWorkerCount, cloudPoolStats.staleWorkerCount) && + Objects.equals(this.totalWorkerCount, cloudPoolStats.totalWorkerCount); + } + + @Override + public int hashCode() { + return Objects.hash(activeWorkerCount, idleWorkerCount, inactiveWorkerCount, pendingJobCount, processingWorkerCount, projectVersionCount, runningJobCount, staleWorkerCount, totalWorkerCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolStats {\n"); + + sb.append(" activeWorkerCount: ").append(toIndentedString(activeWorkerCount)).append("\n"); + sb.append(" idleWorkerCount: ").append(toIndentedString(idleWorkerCount)).append("\n"); + sb.append(" inactiveWorkerCount: ").append(toIndentedString(inactiveWorkerCount)).append("\n"); + sb.append(" pendingJobCount: ").append(toIndentedString(pendingJobCount)).append("\n"); + sb.append(" processingWorkerCount: ").append(toIndentedString(processingWorkerCount)).append("\n"); + sb.append(" projectVersionCount: ").append(toIndentedString(projectVersionCount)).append("\n"); + sb.append(" runningJobCount: ").append(toIndentedString(runningJobCount)).append("\n"); + sb.append(" staleWorkerCount: ").append(toIndentedString(staleWorkerCount)).append("\n"); + sb.append(" totalWorkerCount: ").append(toIndentedString(totalWorkerCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerActionResponse.java new file mode 100644 index 0000000..e4e9c68 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerActionResponse.java @@ -0,0 +1,104 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Result of cloud scan workers related actions + */ +@ApiModel(description = "Result of cloud scan workers related actions") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolWorkerActionResponse { + @SerializedName("workerUuids") + private List workerUuids = null; + + public CloudPoolWorkerActionResponse workerUuids(List workerUuids) { + this.workerUuids = workerUuids; + return this; + } + + public CloudPoolWorkerActionResponse addWorkerUuidsItem(String workerUuidsItem) { + if (this.workerUuids == null) { + this.workerUuids = new ArrayList(); + } + this.workerUuids.add(workerUuidsItem); + return this; + } + + /** + * Cloud scan worker uuids + * @return workerUuids + **/ + @ApiModelProperty(value = "Cloud scan worker uuids") + public List getWorkerUuids() { + return workerUuids; + } + + public void setWorkerUuids(List workerUuids) { + this.workerUuids = workerUuids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolWorkerActionResponse cloudPoolWorkerActionResponse = (CloudPoolWorkerActionResponse) o; + return Objects.equals(this.workerUuids, cloudPoolWorkerActionResponse.workerUuids); + } + + @Override + public int hashCode() { + return Objects.hash(workerUuids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolWorkerActionResponse {\n"); + + sb.append(" workerUuids: ").append(toIndentedString(workerUuids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerAssignRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerAssignRequest.java new file mode 100644 index 0000000..4990bb2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerAssignRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of assigning cloud workers to cloud pool + */ +@ApiModel(description = "Request of assigning cloud workers to cloud pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolWorkerAssignRequest { + @SerializedName("workerUuids") + private List workerUuids = new ArrayList(); + + public CloudPoolWorkerAssignRequest workerUuids(List workerUuids) { + this.workerUuids = workerUuids; + return this; + } + + public CloudPoolWorkerAssignRequest addWorkerUuidsItem(String workerUuidsItem) { + this.workerUuids.add(workerUuidsItem); + return this; + } + + /** + * List of worker UUIds to assign to the cloud pool + * @return workerUuids + **/ + @ApiModelProperty(required = true, value = "List of worker UUIds to assign to the cloud pool") + public List getWorkerUuids() { + return workerUuids; + } + + public void setWorkerUuids(List workerUuids) { + this.workerUuids = workerUuids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolWorkerAssignRequest cloudPoolWorkerAssignRequest = (CloudPoolWorkerAssignRequest) o; + return Objects.equals(this.workerUuids, cloudPoolWorkerAssignRequest.workerUuids); + } + + @Override + public int hashCode() { + return Objects.hash(workerUuids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolWorkerAssignRequest {\n"); + + sb.append(" workerUuids: ").append(toIndentedString(workerUuids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerDisableRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerDisableRequest.java new file mode 100644 index 0000000..c2c71c3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerDisableRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of disabling workers from the cloud pool + */ +@ApiModel(description = "Request of disabling workers from the cloud pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolWorkerDisableRequest { + @SerializedName("workerUuids") + private List workerUuids = new ArrayList(); + + public CloudPoolWorkerDisableRequest workerUuids(List workerUuids) { + this.workerUuids = workerUuids; + return this; + } + + public CloudPoolWorkerDisableRequest addWorkerUuidsItem(String workerUuidsItem) { + this.workerUuids.add(workerUuidsItem); + return this; + } + + /** + * List of worker UUIds to disable from the cloud pool + * @return workerUuids + **/ + @ApiModelProperty(required = true, value = "List of worker UUIds to disable from the cloud pool") + public List getWorkerUuids() { + return workerUuids; + } + + public void setWorkerUuids(List workerUuids) { + this.workerUuids = workerUuids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolWorkerDisableRequest cloudPoolWorkerDisableRequest = (CloudPoolWorkerDisableRequest) o; + return Objects.equals(this.workerUuids, cloudPoolWorkerDisableRequest.workerUuids); + } + + @Override + public int hashCode() { + return Objects.hash(workerUuids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolWorkerDisableRequest {\n"); + + sb.append(" workerUuids: ").append(toIndentedString(workerUuids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerReplaceRequest.java b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerReplaceRequest.java new file mode 100644 index 0000000..3edc94d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudPoolWorkerReplaceRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of replacing workers in the cloud pool + */ +@ApiModel(description = "Request of replacing workers in the cloud pool") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudPoolWorkerReplaceRequest { + @SerializedName("workerUuids") + private List workerUuids = new ArrayList(); + + public CloudPoolWorkerReplaceRequest workerUuids(List workerUuids) { + this.workerUuids = workerUuids; + return this; + } + + public CloudPoolWorkerReplaceRequest addWorkerUuidsItem(String workerUuidsItem) { + this.workerUuids.add(workerUuidsItem); + return this; + } + + /** + * List of worker UUIds to replace in the cloud pool + * @return workerUuids + **/ + @ApiModelProperty(required = true, value = "List of worker UUIds to replace in the cloud pool") + public List getWorkerUuids() { + return workerUuids; + } + + public void setWorkerUuids(List workerUuids) { + this.workerUuids = workerUuids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudPoolWorkerReplaceRequest cloudPoolWorkerReplaceRequest = (CloudPoolWorkerReplaceRequest) o; + return Objects.equals(this.workerUuids, cloudPoolWorkerReplaceRequest.workerUuids); + } + + @Override + public int hashCode() { + return Objects.hash(workerUuids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudPoolWorkerReplaceRequest {\n"); + + sb.append(" workerUuids: ").append(toIndentedString(workerUuids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudScanConfig.java b/src/main/java/com/fortify/ssc/restclient/model/CloudScanConfig.java new file mode 100644 index 0000000..a058148 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudScanConfig.java @@ -0,0 +1,94 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Cloud Scan Config DTO object + */ +@ApiModel(description = "Cloud Scan Config DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudScanConfig { + @SerializedName("cloudScanEnabled") + private Boolean cloudScanEnabled = null; + + public CloudScanConfig cloudScanEnabled(Boolean cloudScanEnabled) { + this.cloudScanEnabled = cloudScanEnabled; + return this; + } + + /** + * Get cloudScanEnabled + * @return cloudScanEnabled + **/ + @ApiModelProperty(value = "") + public Boolean isCloudScanEnabled() { + return cloudScanEnabled; + } + + public void setCloudScanEnabled(Boolean cloudScanEnabled) { + this.cloudScanEnabled = cloudScanEnabled; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudScanConfig cloudScanConfig = (CloudScanConfig) o; + return Objects.equals(this.cloudScanEnabled, cloudScanConfig.cloudScanEnabled); + } + + @Override + public int hashCode() { + return Objects.hash(cloudScanEnabled); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudScanConfig {\n"); + + sb.append(" cloudScanEnabled: ").append(toIndentedString(cloudScanEnabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudSystemMetrics.java b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemMetrics.java new file mode 100644 index 0000000..8ed2b9b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemMetrics.java @@ -0,0 +1,114 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Cloudscan system metrics + */ +@ApiModel(description = "Cloudscan system metrics") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudSystemMetrics { + @SerializedName("controllerDiskFree") + private Long controllerDiskFree = null; + + @SerializedName("controllerDiskUsed") + private Long controllerDiskUsed = null; + + @SerializedName("controllerStartTime") + private OffsetDateTime controllerStartTime = null; + + /** + * Free disk space in controller's job directory [bytes] + * @return controllerDiskFree + **/ + @ApiModelProperty(required = true, value = "Free disk space in controller's job directory [bytes]") + public Long getControllerDiskFree() { + return controllerDiskFree; + } + + /** + * Disk space used by files in controller's job directory [bytes] + * @return controllerDiskUsed + **/ + @ApiModelProperty(required = true, value = "Disk space used by files in controller's job directory [bytes]") + public Long getControllerDiskUsed() { + return controllerDiskUsed; + } + + /** + * Get controllerStartTime + * @return controllerStartTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getControllerStartTime() { + return controllerStartTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudSystemMetrics cloudSystemMetrics = (CloudSystemMetrics) o; + return Objects.equals(this.controllerDiskFree, cloudSystemMetrics.controllerDiskFree) && + Objects.equals(this.controllerDiskUsed, cloudSystemMetrics.controllerDiskUsed) && + Objects.equals(this.controllerStartTime, cloudSystemMetrics.controllerStartTime); + } + + @Override + public int hashCode() { + return Objects.hash(controllerDiskFree, controllerDiskUsed, controllerStartTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudSystemMetrics {\n"); + + sb.append(" controllerDiskFree: ").append(toIndentedString(controllerDiskFree)).append("\n"); + sb.append(" controllerDiskUsed: ").append(toIndentedString(controllerDiskUsed)).append("\n"); + sb.append(" controllerStartTime: ").append(toIndentedString(controllerStartTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudSystemPollStatus.java b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemPollStatus.java new file mode 100644 index 0000000..ecf82cb --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemPollStatus.java @@ -0,0 +1,114 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Cloudscan system poll status + */ +@ApiModel(description = "Cloudscan system poll status") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudSystemPollStatus { + @SerializedName("lastPollSuccessful") + private Boolean lastPollSuccessful = null; + + @SerializedName("lastPollTime") + private OffsetDateTime lastPollTime = null; + + @SerializedName("lastSuccessfulPollTime") + private OffsetDateTime lastSuccessfulPollTime = null; + + /** + * Get lastPollSuccessful + * @return lastPollSuccessful + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isLastPollSuccessful() { + return lastPollSuccessful; + } + + /** + * Get lastPollTime + * @return lastPollTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getLastPollTime() { + return lastPollTime; + } + + /** + * Get lastSuccessfulPollTime + * @return lastSuccessfulPollTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getLastSuccessfulPollTime() { + return lastSuccessfulPollTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudSystemPollStatus cloudSystemPollStatus = (CloudSystemPollStatus) o; + return Objects.equals(this.lastPollSuccessful, cloudSystemPollStatus.lastPollSuccessful) && + Objects.equals(this.lastPollTime, cloudSystemPollStatus.lastPollTime) && + Objects.equals(this.lastSuccessfulPollTime, cloudSystemPollStatus.lastSuccessfulPollTime); + } + + @Override + public int hashCode() { + return Objects.hash(lastPollSuccessful, lastPollTime, lastSuccessfulPollTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudSystemPollStatus {\n"); + + sb.append(" lastPollSuccessful: ").append(toIndentedString(lastPollSuccessful)).append("\n"); + sb.append(" lastPollTime: ").append(toIndentedString(lastPollTime)).append("\n"); + sb.append(" lastSuccessfulPollTime: ").append(toIndentedString(lastSuccessfulPollTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudSystemSettings.java b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemSettings.java new file mode 100644 index 0000000..9c671dd --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudSystemSettings.java @@ -0,0 +1,253 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Cloudscan system settings + */ +@ApiModel(description = "Cloudscan system settings") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudSystemSettings { + @SerializedName("cleanupPeriodSeconds") + private Long cleanupPeriodSeconds = null; + + @SerializedName("controllerMaxUploadSize") + private Long controllerMaxUploadSize = null; + + @SerializedName("controllerSystemUrl") + private String controllerSystemUrl = null; + + @SerializedName("isSscLockdownMode") + private Boolean isSscLockdownMode = null; + + @SerializedName("jobExpiryDelaySeconds") + private Long jobExpiryDelaySeconds = null; + + @SerializedName("poolMappingMode") + private String poolMappingMode = null; + + @SerializedName("smtpFromAddress") + private String smtpFromAddress = null; + + @SerializedName("smtpHost") + private String smtpHost = null; + + @SerializedName("smtpPort") + private Integer smtpPort = null; + + @SerializedName("sscUrl") + private String sscUrl = null; + + @SerializedName("workerExpiryDelaySeconds") + private Long workerExpiryDelaySeconds = null; + + @SerializedName("workerInactiveDelaySeconds") + private Long workerInactiveDelaySeconds = null; + + @SerializedName("workerStaleDelaySeconds") + private Long workerStaleDelaySeconds = null; + + /** + * Get cleanupPeriodSeconds + * @return cleanupPeriodSeconds + **/ + @ApiModelProperty(required = true, value = "") + public Long getCleanupPeriodSeconds() { + return cleanupPeriodSeconds; + } + + /** + * Get controllerMaxUploadSize + * @return controllerMaxUploadSize + **/ + @ApiModelProperty(required = true, value = "") + public Long getControllerMaxUploadSize() { + return controllerMaxUploadSize; + } + + /** + * Get controllerSystemUrl + * @return controllerSystemUrl + **/ + @ApiModelProperty(required = true, value = "") + public String getControllerSystemUrl() { + return controllerSystemUrl; + } + + /** + * Get isSscLockdownMode + * @return isSscLockdownMode + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isIsSscLockdownMode() { + return isSscLockdownMode; + } + + /** + * Get jobExpiryDelaySeconds + * @return jobExpiryDelaySeconds + **/ + @ApiModelProperty(required = true, value = "") + public Long getJobExpiryDelaySeconds() { + return jobExpiryDelaySeconds; + } + + /** + * Get poolMappingMode + * @return poolMappingMode + **/ + @ApiModelProperty(required = true, value = "") + public String getPoolMappingMode() { + return poolMappingMode; + } + + /** + * Get smtpFromAddress + * @return smtpFromAddress + **/ + @ApiModelProperty(required = true, value = "") + public String getSmtpFromAddress() { + return smtpFromAddress; + } + + /** + * Get smtpHost + * @return smtpHost + **/ + @ApiModelProperty(required = true, value = "") + public String getSmtpHost() { + return smtpHost; + } + + /** + * Get smtpPort + * @return smtpPort + **/ + @ApiModelProperty(required = true, value = "") + public Integer getSmtpPort() { + return smtpPort; + } + + /** + * Get sscUrl + * @return sscUrl + **/ + @ApiModelProperty(required = true, value = "") + public String getSscUrl() { + return sscUrl; + } + + /** + * Get workerExpiryDelaySeconds + * @return workerExpiryDelaySeconds + **/ + @ApiModelProperty(required = true, value = "") + public Long getWorkerExpiryDelaySeconds() { + return workerExpiryDelaySeconds; + } + + /** + * Get workerInactiveDelaySeconds + * @return workerInactiveDelaySeconds + **/ + @ApiModelProperty(required = true, value = "") + public Long getWorkerInactiveDelaySeconds() { + return workerInactiveDelaySeconds; + } + + /** + * Get workerStaleDelaySeconds + * @return workerStaleDelaySeconds + **/ + @ApiModelProperty(required = true, value = "") + public Long getWorkerStaleDelaySeconds() { + return workerStaleDelaySeconds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudSystemSettings cloudSystemSettings = (CloudSystemSettings) o; + return Objects.equals(this.cleanupPeriodSeconds, cloudSystemSettings.cleanupPeriodSeconds) && + Objects.equals(this.controllerMaxUploadSize, cloudSystemSettings.controllerMaxUploadSize) && + Objects.equals(this.controllerSystemUrl, cloudSystemSettings.controllerSystemUrl) && + Objects.equals(this.isSscLockdownMode, cloudSystemSettings.isSscLockdownMode) && + Objects.equals(this.jobExpiryDelaySeconds, cloudSystemSettings.jobExpiryDelaySeconds) && + Objects.equals(this.poolMappingMode, cloudSystemSettings.poolMappingMode) && + Objects.equals(this.smtpFromAddress, cloudSystemSettings.smtpFromAddress) && + Objects.equals(this.smtpHost, cloudSystemSettings.smtpHost) && + Objects.equals(this.smtpPort, cloudSystemSettings.smtpPort) && + Objects.equals(this.sscUrl, cloudSystemSettings.sscUrl) && + Objects.equals(this.workerExpiryDelaySeconds, cloudSystemSettings.workerExpiryDelaySeconds) && + Objects.equals(this.workerInactiveDelaySeconds, cloudSystemSettings.workerInactiveDelaySeconds) && + Objects.equals(this.workerStaleDelaySeconds, cloudSystemSettings.workerStaleDelaySeconds); + } + + @Override + public int hashCode() { + return Objects.hash(cleanupPeriodSeconds, controllerMaxUploadSize, controllerSystemUrl, isSscLockdownMode, jobExpiryDelaySeconds, poolMappingMode, smtpFromAddress, smtpHost, smtpPort, sscUrl, workerExpiryDelaySeconds, workerInactiveDelaySeconds, workerStaleDelaySeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudSystemSettings {\n"); + + sb.append(" cleanupPeriodSeconds: ").append(toIndentedString(cleanupPeriodSeconds)).append("\n"); + sb.append(" controllerMaxUploadSize: ").append(toIndentedString(controllerMaxUploadSize)).append("\n"); + sb.append(" controllerSystemUrl: ").append(toIndentedString(controllerSystemUrl)).append("\n"); + sb.append(" isSscLockdownMode: ").append(toIndentedString(isSscLockdownMode)).append("\n"); + sb.append(" jobExpiryDelaySeconds: ").append(toIndentedString(jobExpiryDelaySeconds)).append("\n"); + sb.append(" poolMappingMode: ").append(toIndentedString(poolMappingMode)).append("\n"); + sb.append(" smtpFromAddress: ").append(toIndentedString(smtpFromAddress)).append("\n"); + sb.append(" smtpHost: ").append(toIndentedString(smtpHost)).append("\n"); + sb.append(" smtpPort: ").append(toIndentedString(smtpPort)).append("\n"); + sb.append(" sscUrl: ").append(toIndentedString(sscUrl)).append("\n"); + sb.append(" workerExpiryDelaySeconds: ").append(toIndentedString(workerExpiryDelaySeconds)).append("\n"); + sb.append(" workerInactiveDelaySeconds: ").append(toIndentedString(workerInactiveDelaySeconds)).append("\n"); + sb.append(" workerStaleDelaySeconds: ").append(toIndentedString(workerStaleDelaySeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CloudWorker.java b/src/main/java/com/fortify/ssc/restclient/model/CloudWorker.java new file mode 100644 index 0000000..552d1f1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CloudWorker.java @@ -0,0 +1,320 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudPool; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Cloudscan worker + */ +@ApiModel(description = "Cloudscan worker") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CloudWorker { + @SerializedName("availableProcessors") + private Integer availableProcessors = null; + + @SerializedName("cloudPool") + private CloudPool cloudPool = null; + + @SerializedName("hostName") + private String hostName = null; + + @SerializedName("ipAddress") + private String ipAddress = null; + + @SerializedName("lastActivity") + private String lastActivity = null; + + @SerializedName("lastSeen") + private OffsetDateTime lastSeen = null; + + @SerializedName("osArchitecture") + private String osArchitecture = null; + + @SerializedName("osName") + private String osName = null; + + @SerializedName("osVersion") + private String osVersion = null; + + @SerializedName("processUuid") + private String processUuid = null; + + @SerializedName("scaVersion") + private String scaVersion = null; + + @SerializedName("state") + private String state = null; + + @SerializedName("totalPhysicalMemory") + private Long totalPhysicalMemory = null; + + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("vmName") + private String vmName = null; + + @SerializedName("workerExpiryTime") + private OffsetDateTime workerExpiryTime = null; + + @SerializedName("workerStartTime") + private OffsetDateTime workerStartTime = null; + + /** + * Get availableProcessors + * @return availableProcessors + **/ + @ApiModelProperty(required = true, value = "") + public Integer getAvailableProcessors() { + return availableProcessors; + } + + public CloudWorker cloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + return this; + } + + /** + * Get cloudPool + * @return cloudPool + **/ + @ApiModelProperty(required = true, value = "") + public CloudPool getCloudPool() { + return cloudPool; + } + + public void setCloudPool(CloudPool cloudPool) { + this.cloudPool = cloudPool; + } + + /** + * Get hostName + * @return hostName + **/ + @ApiModelProperty(required = true, value = "") + public String getHostName() { + return hostName; + } + + /** + * Get ipAddress + * @return ipAddress + **/ + @ApiModelProperty(required = true, value = "") + public String getIpAddress() { + return ipAddress; + } + + /** + * Get lastActivity + * @return lastActivity + **/ + @ApiModelProperty(required = true, value = "") + public String getLastActivity() { + return lastActivity; + } + + /** + * Get lastSeen + * @return lastSeen + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getLastSeen() { + return lastSeen; + } + + /** + * Get osArchitecture + * @return osArchitecture + **/ + @ApiModelProperty(required = true, value = "") + public String getOsArchitecture() { + return osArchitecture; + } + + /** + * Get osName + * @return osName + **/ + @ApiModelProperty(required = true, value = "") + public String getOsName() { + return osName; + } + + /** + * Get osVersion + * @return osVersion + **/ + @ApiModelProperty(required = true, value = "") + public String getOsVersion() { + return osVersion; + } + + /** + * Get processUuid + * @return processUuid + **/ + @ApiModelProperty(required = true, value = "") + public String getProcessUuid() { + return processUuid; + } + + /** + * Get scaVersion + * @return scaVersion + **/ + @ApiModelProperty(required = true, value = "") + public String getScaVersion() { + return scaVersion; + } + + /** + * Get state + * @return state + **/ + @ApiModelProperty(required = true, value = "") + public String getState() { + return state; + } + + /** + * Get totalPhysicalMemory + * @return totalPhysicalMemory + **/ + @ApiModelProperty(required = true, value = "") + public Long getTotalPhysicalMemory() { + return totalPhysicalMemory; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(required = true, value = "") + public String getUuid() { + return uuid; + } + + /** + * Get vmName + * @return vmName + **/ + @ApiModelProperty(required = true, value = "") + public String getVmName() { + return vmName; + } + + /** + * Get workerExpiryTime + * @return workerExpiryTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getWorkerExpiryTime() { + return workerExpiryTime; + } + + /** + * Get workerStartTime + * @return workerStartTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getWorkerStartTime() { + return workerStartTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloudWorker cloudWorker = (CloudWorker) o; + return Objects.equals(this.availableProcessors, cloudWorker.availableProcessors) && + Objects.equals(this.cloudPool, cloudWorker.cloudPool) && + Objects.equals(this.hostName, cloudWorker.hostName) && + Objects.equals(this.ipAddress, cloudWorker.ipAddress) && + Objects.equals(this.lastActivity, cloudWorker.lastActivity) && + Objects.equals(this.lastSeen, cloudWorker.lastSeen) && + Objects.equals(this.osArchitecture, cloudWorker.osArchitecture) && + Objects.equals(this.osName, cloudWorker.osName) && + Objects.equals(this.osVersion, cloudWorker.osVersion) && + Objects.equals(this.processUuid, cloudWorker.processUuid) && + Objects.equals(this.scaVersion, cloudWorker.scaVersion) && + Objects.equals(this.state, cloudWorker.state) && + Objects.equals(this.totalPhysicalMemory, cloudWorker.totalPhysicalMemory) && + Objects.equals(this.uuid, cloudWorker.uuid) && + Objects.equals(this.vmName, cloudWorker.vmName) && + Objects.equals(this.workerExpiryTime, cloudWorker.workerExpiryTime) && + Objects.equals(this.workerStartTime, cloudWorker.workerStartTime); + } + + @Override + public int hashCode() { + return Objects.hash(availableProcessors, cloudPool, hostName, ipAddress, lastActivity, lastSeen, osArchitecture, osName, osVersion, processUuid, scaVersion, state, totalPhysicalMemory, uuid, vmName, workerExpiryTime, workerStartTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloudWorker {\n"); + + sb.append(" availableProcessors: ").append(toIndentedString(availableProcessors)).append("\n"); + sb.append(" cloudPool: ").append(toIndentedString(cloudPool)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" osArchitecture: ").append(toIndentedString(osArchitecture)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" osVersion: ").append(toIndentedString(osVersion)).append("\n"); + sb.append(" processUuid: ").append(toIndentedString(processUuid)).append("\n"); + sb.append(" scaVersion: ").append(toIndentedString(scaVersion)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" totalPhysicalMemory: ").append(toIndentedString(totalPhysicalMemory)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" vmName: ").append(toIndentedString(vmName)).append("\n"); + sb.append(" workerExpiryTime: ").append(toIndentedString(workerExpiryTime)).append("\n"); + sb.append(" workerStartTime: ").append(toIndentedString(workerStartTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ConfigProperties.java b/src/main/java/com/fortify/ssc/restclient/model/ConfigProperties.java new file mode 100644 index 0000000..7b7adf5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ConfigProperties.java @@ -0,0 +1,105 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ConfigProperty; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Collection of SSC application configuration properties + */ +@ApiModel(description = "Collection of SSC application configuration properties") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ConfigProperties { + @SerializedName("properties") + private List properties = null; + + public ConfigProperties properties(List properties) { + this.properties = properties; + return this; + } + + public ConfigProperties addPropertiesItem(ConfigProperty propertiesItem) { + if (this.properties == null) { + this.properties = new ArrayList(); + } + this.properties.add(propertiesItem); + return this; + } + + /** + * Collection of configuration properties defined in the system + * @return properties + **/ + @ApiModelProperty(value = "Collection of configuration properties defined in the system") + public List getProperties() { + return properties; + } + + public void setProperties(List properties) { + this.properties = properties; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigProperties configProperties = (ConfigProperties) o; + return Objects.equals(this.properties, configProperties.properties); + } + + @Override + public int hashCode() { + return Objects.hash(properties); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigProperties {\n"); + + sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ConfigProperty.java b/src/main/java/com/fortify/ssc/restclient/model/ConfigProperty.java new file mode 100644 index 0000000..b9ebc4d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ConfigProperty.java @@ -0,0 +1,416 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ConfigPropertyValueItem; +import com.fortify.ssc.restclient.model.ConfigPropertyValueValidation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * SSC application configuration property + */ +@ApiModel(description = "SSC application configuration property") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ConfigProperty { + @SerializedName("appliedAfterRestarting") + private Boolean appliedAfterRestarting = null; + + @SerializedName("configPropertyValueValidation") + private ConfigPropertyValueValidation configPropertyValueValidation = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("group") + private String group = null; + + @SerializedName("groupSwitchEnabled") + private Boolean groupSwitchEnabled = null; + + @SerializedName("name") + private String name = null; + + /** + * Property value type. + */ + @JsonAdapter(PropertyTypeEnum.Adapter.class) + public enum PropertyTypeEnum { + BOOLEAN("BOOLEAN"), + + INTEGER("INTEGER"), + + STRING("STRING"), + + STRINGMULTILINE("STRINGMULTILINE"), + + OPTIONLIST("OPTIONLIST"), + + DYNAMIC_OPTIONLIST("DYNAMIC_OPTIONLIST"), + + ENCODED("ENCODED"), + + ENCODEDHIDDEN("ENCODEDHIDDEN"), + + EMAIL("EMAIL"), + + URL("URL"), + + HOSTNAME("HOSTNAME"), + + MULTI_EMAIL("MULTI_EMAIL"), + + DISTINGUISHED_NAME("DISTINGUISHED_NAME"), + + ENCODED_DISTINGUISHED_NAME("ENCODED_DISTINGUISHED_NAME"), + + DISTINGUISHED_NAMES_("DISTINGUISHED_NAMES;"); + + private String value; + + PropertyTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PropertyTypeEnum fromValue(String text) { + for (PropertyTypeEnum b : PropertyTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PropertyTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PropertyTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PropertyTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("propertyType") + private PropertyTypeEnum propertyType = null; + + @SerializedName("protectedOption") + private Boolean protectedOption = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("subGroup") + private String subGroup = null; + + /** + * Configuration property value. + */ + @JsonAdapter(ValueEnum.Adapter.class) + public enum ValueEnum { + DEPENDS_ON_PROPERTY_TYPE_IT_CAN_BE_NUMBER("Depends on property type. It can be number"), + + STRING("string"), + + URL("URL"), + + EMAIL_OR_VALUE_FROM_VALUES_LIST_("email or value from values list."); + + private String value; + + ValueEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ValueEnum fromValue(String text) { + for (ValueEnum b : ValueEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ValueEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ValueEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ValueEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("value") + private ValueEnum value = null; + + @SerializedName("valuesList") + private List valuesList = null; + + @SerializedName("version") + private Integer version = null; + + /** + * Should the SSC server be restarted after changing value of the property to apply the changes. + * @return appliedAfterRestarting + **/ + @ApiModelProperty(example = "false", value = "Should the SSC server be restarted after changing value of the property to apply the changes.") + public Boolean isAppliedAfterRestarting() { + return appliedAfterRestarting; + } + + public ConfigProperty configPropertyValueValidation(ConfigPropertyValueValidation configPropertyValueValidation) { + this.configPropertyValueValidation = configPropertyValueValidation; + return this; + } + + /** + * Meta information about how the property's value should be validated on the client side. + * @return configPropertyValueValidation + **/ + @ApiModelProperty(value = "Meta information about how the property's value should be validated on the client side.") + public ConfigPropertyValueValidation getConfigPropertyValueValidation() { + return configPropertyValueValidation; + } + + public void setConfigPropertyValueValidation(ConfigPropertyValueValidation configPropertyValueValidation) { + this.configPropertyValueValidation = configPropertyValueValidation; + } + + /** + * Property description. + * @return description + **/ + @ApiModelProperty(value = "Property description.") + public String getDescription() { + return description; + } + + /** + * Parent group name the property belongs to. + * @return group + **/ + @ApiModelProperty(value = "Parent group name the property belongs to.") + public String getGroup() { + return group; + } + + /** + * Flag is set to TRUE if property is allowed to be edited on UI. + * @return groupSwitchEnabled + **/ + @ApiModelProperty(example = "false", value = "Flag is set to TRUE if property is allowed to be edited on UI.") + public Boolean isGroupSwitchEnabled() { + return groupSwitchEnabled; + } + + /** + * Configuration property unique name. + * @return name + **/ + @ApiModelProperty(required = true, value = "Configuration property unique name.") + public String getName() { + return name; + } + + /** + * Property value type. + * @return propertyType + **/ + @ApiModelProperty(value = "Property value type.") + public PropertyTypeEnum getPropertyType() { + return propertyType; + } + + /** + * If special permission is required to get value of this property. + * @return protectedOption + **/ + @ApiModelProperty(example = "false", value = "If special permission is required to get value of this property.") + public Boolean isProtectedOption() { + return protectedOption; + } + + /** + * Flag is set to TRUE if this property is required and always must have non empty value. + * @return required + **/ + @ApiModelProperty(example = "false", value = "Flag is set to TRUE if this property is required and always must have non empty value.") + public Boolean isRequired() { + return required; + } + + /** + * Parent subgroup name the property belongs to. + * @return subGroup + **/ + @ApiModelProperty(value = "Parent subgroup name the property belongs to.") + public String getSubGroup() { + return subGroup; + } + + public ConfigProperty value(ValueEnum value) { + this.value = value; + return this; + } + + /** + * Configuration property value. + * @return value + **/ + @ApiModelProperty(required = true, value = "Configuration property value.") + public ValueEnum getValue() { + return value; + } + + public void setValue(ValueEnum value) { + this.value = value; + } + + public ConfigProperty valuesList(List valuesList) { + this.valuesList = valuesList; + return this; + } + + public ConfigProperty addValuesListItem(ConfigPropertyValueItem valuesListItem) { + if (this.valuesList == null) { + this.valuesList = new ArrayList(); + } + this.valuesList.add(valuesListItem); + return this; + } + + /** + * List of allowed property values if property type is OPTIONLIST or DYNAMIC_OPTIONLIST. + * @return valuesList + **/ + @ApiModelProperty(value = "List of allowed property values if property type is OPTIONLIST or DYNAMIC_OPTIONLIST.") + public List getValuesList() { + return valuesList; + } + + public void setValuesList(List valuesList) { + this.valuesList = valuesList; + } + + /** + * Configuration property version stored on the server. This value is used for optimistic locking of the property object to prevent concurrent changes of the property value by different users at the same time. + * @return version + **/ + @ApiModelProperty(required = true, value = "Configuration property version stored on the server. This value is used for optimistic locking of the property object to prevent concurrent changes of the property value by different users at the same time.") + public Integer getVersion() { + return version; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigProperty configProperty = (ConfigProperty) o; + return Objects.equals(this.appliedAfterRestarting, configProperty.appliedAfterRestarting) && + Objects.equals(this.configPropertyValueValidation, configProperty.configPropertyValueValidation) && + Objects.equals(this.description, configProperty.description) && + Objects.equals(this.group, configProperty.group) && + Objects.equals(this.groupSwitchEnabled, configProperty.groupSwitchEnabled) && + Objects.equals(this.name, configProperty.name) && + Objects.equals(this.propertyType, configProperty.propertyType) && + Objects.equals(this.protectedOption, configProperty.protectedOption) && + Objects.equals(this.required, configProperty.required) && + Objects.equals(this.subGroup, configProperty.subGroup) && + Objects.equals(this.value, configProperty.value) && + Objects.equals(this.valuesList, configProperty.valuesList) && + Objects.equals(this.version, configProperty.version); + } + + @Override + public int hashCode() { + return Objects.hash(appliedAfterRestarting, configPropertyValueValidation, description, group, groupSwitchEnabled, name, propertyType, protectedOption, required, subGroup, value, valuesList, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigProperty {\n"); + + sb.append(" appliedAfterRestarting: ").append(toIndentedString(appliedAfterRestarting)).append("\n"); + sb.append(" configPropertyValueValidation: ").append(toIndentedString(configPropertyValueValidation)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" groupSwitchEnabled: ").append(toIndentedString(groupSwitchEnabled)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" propertyType: ").append(toIndentedString(propertyType)).append("\n"); + sb.append(" protectedOption: ").append(toIndentedString(protectedOption)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" subGroup: ").append(toIndentedString(subGroup)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" valuesList: ").append(toIndentedString(valuesList)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueItem.java b/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueItem.java new file mode 100644 index 0000000..7fae60b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueItem.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Allowed values of the property which type is OPTIONLIST or DYNAMIC_OPTIONLIST. + */ +@ApiModel(description = "Allowed values of the property which type is OPTIONLIST or DYNAMIC_OPTIONLIST.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ConfigPropertyValueItem { + @SerializedName("displayName") + private String displayName = null; + + @SerializedName("value") + private String value = null; + + /** + * Value display name. This string is displayed on UI in the option values list. + * @return displayName + **/ + @ApiModelProperty(value = "Value display name. This string is displayed on UI in the option values list.") + public String getDisplayName() { + return displayName; + } + + /** + * Value that is sent to server if this option is selected on UI. + * @return value + **/ + @ApiModelProperty(value = "Value that is sent to server if this option is selected on UI.") + public String getValue() { + return value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigPropertyValueItem configPropertyValueItem = (ConfigPropertyValueItem) o; + return Objects.equals(this.displayName, configPropertyValueItem.displayName) && + Objects.equals(this.value, configPropertyValueItem.value); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigPropertyValueItem {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueValidation.java b/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueValidation.java new file mode 100644 index 0000000..e565aa4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ConfigPropertyValueValidation.java @@ -0,0 +1,143 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * SSC configuration property value validation type + */ +@ApiModel(description = "SSC configuration property value validation type") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ConfigPropertyValueValidation { + /** + * Gets or Sets validationType + */ + @JsonAdapter(ValidationTypeEnum.Adapter.class) + public enum ValidationTypeEnum { + NOT_SET("NOT_SET"), + + POSITIVE_INTEGER("POSITIVE_INTEGER"), + + MIXED_VALUES("MIXED_VALUES"); + + private String value; + + ValidationTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ValidationTypeEnum fromValue(String text) { + for (ValidationTypeEnum b : ValidationTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ValidationTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ValidationTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ValidationTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("validationType") + private ValidationTypeEnum validationType = null; + + public ConfigPropertyValueValidation validationType(ValidationTypeEnum validationType) { + this.validationType = validationType; + return this; + } + + /** + * Get validationType + * @return validationType + **/ + @ApiModelProperty(value = "") + public ValidationTypeEnum getValidationType() { + return validationType; + } + + public void setValidationType(ValidationTypeEnum validationType) { + this.validationType = validationType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigPropertyValueValidation configPropertyValueValidation = (ConfigPropertyValueValidation) o; + return Objects.equals(this.validationType, configPropertyValueValidation.validationType); + } + + @Override + public int hashCode() { + return Objects.hash(validationType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigPropertyValueValidation {\n"); + + sb.append(" validationType: ").append(toIndentedString(validationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CustomTag.java b/src/main/java/com/fortify/ssc/restclient/model/CustomTag.java new file mode 100644 index 0000000..742e88c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CustomTag.java @@ -0,0 +1,564 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTagLookup; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * CustomTag + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CustomTag { + /** + * Custom tag type. + */ + @JsonAdapter(CustomTagTypeEnum.Adapter.class) + public enum CustomTagTypeEnum { + UNKNOWN("UNKNOWN"), + + CUSTOM("CUSTOM"), + + HYBRID("HYBRID"), + + METAGROUP("METAGROUP"), + + SYSTEM("SYSTEM"), + + AUDITASSISTANT("AUDITASSISTANT"); + + private String value; + + CustomTagTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CustomTagTypeEnum fromValue(String text) { + for (CustomTagTypeEnum b : CustomTagTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CustomTagTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CustomTagTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CustomTagTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("customTagType") + private CustomTagTypeEnum customTagType = null; + + @SerializedName("defaultValue") + private String defaultValue = null; + + @SerializedName("defaultValueIndex") + private Integer defaultValueIndex = null; + + @SerializedName("deletable") + private Boolean deletable = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("extensible") + private Boolean extensible = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("primaryTag") + private Boolean primaryTag = null; + + @SerializedName("restriction") + private Boolean restriction = null; + + /** + * Special permission type if restriction is set to TRUE. + */ + @JsonAdapter(RestrictionTypeEnum.Adapter.class) + public enum RestrictionTypeEnum { + NONE("NONE"), + + RESTRICTED("RESTRICTED"), + + READONLY("READONLY"); + + private String value; + + RestrictionTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RestrictionTypeEnum fromValue(String text) { + for (RestrictionTypeEnum b : RestrictionTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RestrictionTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RestrictionTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RestrictionTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("restrictionType") + private RestrictionTypeEnum restrictionType = null; + + @SerializedName("valueList") + private List valueList = null; + + /** + * Custom tag value type. + */ + @JsonAdapter(ValueTypeEnum.Adapter.class) + public enum ValueTypeEnum { + LIST("LIST"), + + DECIMAL("DECIMAL"), + + DATE("DATE"), + + TEXT("TEXT"); + + private String value; + + ValueTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ValueTypeEnum fromValue(String text) { + for (ValueTypeEnum b : ValueTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ValueTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ValueTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ValueTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("valueType") + private ValueTypeEnum valueType = null; + + public CustomTag customTagType(CustomTagTypeEnum customTagType) { + this.customTagType = customTagType; + return this; + } + + /** + * Custom tag type. + * @return customTagType + **/ + @ApiModelProperty(required = true, value = "Custom tag type.") + public CustomTagTypeEnum getCustomTagType() { + return customTagType; + } + + public void setCustomTagType(CustomTagTypeEnum customTagType) { + this.customTagType = customTagType; + } + + /** + * Default value of the custom tag. Actual string value is presented here. + * @return defaultValue + **/ + @ApiModelProperty(value = "Default value of the custom tag. Actual string value is presented here.") + public String getDefaultValue() { + return defaultValue; + } + + public CustomTag defaultValueIndex(Integer defaultValueIndex) { + this.defaultValueIndex = defaultValueIndex; + return this; + } + + /** + * Index of default value of the custom tag. This is ordinal number of the item in CustomTagLookup collection. + * @return defaultValueIndex + **/ + @ApiModelProperty(value = "Index of default value of the custom tag. This is ordinal number of the item in CustomTagLookup collection.") + public Integer getDefaultValueIndex() { + return defaultValueIndex; + } + + public void setDefaultValueIndex(Integer defaultValueIndex) { + this.defaultValueIndex = defaultValueIndex; + } + + /** + * Flag that says if custom tag can be deleted. Custom tag which values are currently in use cannot be deleted. + * @return deletable + **/ + @ApiModelProperty(example = "false", value = "Flag that says if custom tag can be deleted. Custom tag which values are currently in use cannot be deleted.") + public Boolean isDeletable() { + return deletable; + } + + public CustomTag description(String description) { + this.description = description; + return this; + } + + /** + * Custom tag description. + * @return description + **/ + @ApiModelProperty(value = "Custom tag description.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CustomTag extensible(Boolean extensible) { + this.extensible = extensible; + return this; + } + + /** + * Flag that says if custom tag is extensible or not. + * @return extensible + **/ + @ApiModelProperty(example = "false", required = true, value = "Flag that says if custom tag is extensible or not.") + public Boolean isExtensible() { + return extensible; + } + + public void setExtensible(Boolean extensible) { + this.extensible = extensible; + } + + /** + * Custom tag GUID. + * @return guid + **/ + @ApiModelProperty(required = true, value = "Custom tag GUID.") + public String getGuid() { + return guid; + } + + public CustomTag hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Is custom tag hidden or not. + * @return hidden + **/ + @ApiModelProperty(example = "false", required = true, value = "Is custom tag hidden or not.") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + /** + * Custom tag id + * @return id + **/ + @ApiModelProperty(value = "Custom tag id") + public Long getId() { + return id; + } + + /** + * Is custom tag values are selected for any issues in the system. + * @return inUse + **/ + @ApiModelProperty(example = "false", value = "Is custom tag values are selected for any issues in the system.") + public Boolean isInUse() { + return inUse; + } + + public CustomTag name(String name) { + this.name = name; + return this; + } + + /** + * Custom tag unique name. + * @return name + **/ + @ApiModelProperty(required = true, value = "Custom tag unique name.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * Custom tag version stored on the server. This value is used for optimistic locking of the custom tag object to prevent concurrent modification of the custom tag by different users at the same time. + * @return objectVersion + **/ + @ApiModelProperty(required = true, value = "Custom tag version stored on the server. This value is used for optimistic locking of the custom tag object to prevent concurrent modification of the custom tag by different users at the same time.") + public Integer getObjectVersion() { + return objectVersion; + } + + /** + * If this custom tag is set as primary tag for a specific project version. This value is initialized only if custom tags for specific project version are requested. + * @return primaryTag + **/ + @ApiModelProperty(example = "false", value = "If this custom tag is set as primary tag for a specific project version. This value is initialized only if custom tags for specific project version are requested.") + public Boolean isPrimaryTag() { + return primaryTag; + } + + public CustomTag restriction(Boolean restriction) { + this.restriction = restriction; + return this; + } + + /** + * Flag is set to true if special permission is required to set values of this custom tag. + * @return restriction + **/ + @ApiModelProperty(example = "false", value = "Flag is set to true if special permission is required to set values of this custom tag.") + public Boolean isRestriction() { + return restriction; + } + + public void setRestriction(Boolean restriction) { + this.restriction = restriction; + } + + public CustomTag restrictionType(RestrictionTypeEnum restrictionType) { + this.restrictionType = restrictionType; + return this; + } + + /** + * Special permission type if restriction is set to TRUE. + * @return restrictionType + **/ + @ApiModelProperty(value = "Special permission type if restriction is set to TRUE.") + public RestrictionTypeEnum getRestrictionType() { + return restrictionType; + } + + public void setRestrictionType(RestrictionTypeEnum restrictionType) { + this.restrictionType = restrictionType; + } + + public CustomTag valueList(List valueList) { + this.valueList = valueList; + return this; + } + + public CustomTag addValueListItem(CustomTagLookup valueListItem) { + if (this.valueList == null) { + this.valueList = new ArrayList(); + } + this.valueList.add(valueListItem); + return this; + } + + /** + * Collection of all possible custom tag values. + * @return valueList + **/ + @ApiModelProperty(value = "Collection of all possible custom tag values.") + public List getValueList() { + return valueList; + } + + public void setValueList(List valueList) { + this.valueList = valueList; + } + + public CustomTag valueType(ValueTypeEnum valueType) { + this.valueType = valueType; + return this; + } + + /** + * Custom tag value type. + * @return valueType + **/ + @ApiModelProperty(required = true, value = "Custom tag value type.") + public ValueTypeEnum getValueType() { + return valueType; + } + + public void setValueType(ValueTypeEnum valueType) { + this.valueType = valueType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomTag customTag = (CustomTag) o; + return Objects.equals(this.customTagType, customTag.customTagType) && + Objects.equals(this.defaultValue, customTag.defaultValue) && + Objects.equals(this.defaultValueIndex, customTag.defaultValueIndex) && + Objects.equals(this.deletable, customTag.deletable) && + Objects.equals(this.description, customTag.description) && + Objects.equals(this.extensible, customTag.extensible) && + Objects.equals(this.guid, customTag.guid) && + Objects.equals(this.hidden, customTag.hidden) && + Objects.equals(this.id, customTag.id) && + Objects.equals(this.inUse, customTag.inUse) && + Objects.equals(this.name, customTag.name) && + Objects.equals(this.objectVersion, customTag.objectVersion) && + Objects.equals(this.primaryTag, customTag.primaryTag) && + Objects.equals(this.restriction, customTag.restriction) && + Objects.equals(this.restrictionType, customTag.restrictionType) && + Objects.equals(this.valueList, customTag.valueList) && + Objects.equals(this.valueType, customTag.valueType); + } + + @Override + public int hashCode() { + return Objects.hash(customTagType, defaultValue, defaultValueIndex, deletable, description, extensible, guid, hidden, id, inUse, name, objectVersion, primaryTag, restriction, restrictionType, valueList, valueType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomTag {\n"); + + sb.append(" customTagType: ").append(toIndentedString(customTagType)).append("\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" defaultValueIndex: ").append(toIndentedString(defaultValueIndex)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" extensible: ").append(toIndentedString(extensible)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" primaryTag: ").append(toIndentedString(primaryTag)).append("\n"); + sb.append(" restriction: ").append(toIndentedString(restriction)).append("\n"); + sb.append(" restrictionType: ").append(toIndentedString(restrictionType)).append("\n"); + sb.append(" valueList: ").append(toIndentedString(valueList)).append("\n"); + sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CustomTagInfo.java b/src/main/java/com/fortify/ssc/restclient/model/CustomTagInfo.java new file mode 100644 index 0000000..00d132a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CustomTagInfo.java @@ -0,0 +1,156 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTagLookupInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Holds the details about existed custom tag that is assigned or linked with some other entity + */ +@ApiModel(description = "Holds the details about existed custom tag that is assigned or linked with some other entity") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CustomTagInfo { + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("valueList") + private List valueList = null; + + /** + * Custom tag GUID + * @return guid + **/ + @ApiModelProperty(value = "Custom tag GUID") + public String getGuid() { + return guid; + } + + public CustomTagInfo id(Long id) { + this.id = id; + return this; + } + + /** + * Custom tag id + * @return id + **/ + @ApiModelProperty(required = true, value = "Custom tag id") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + /** + * Custom tag unique name + * @return name + **/ + @ApiModelProperty(value = "Custom tag unique name") + public String getName() { + return name; + } + + public CustomTagInfo valueList(List valueList) { + this.valueList = valueList; + return this; + } + + public CustomTagInfo addValueListItem(CustomTagLookupInfo valueListItem) { + if (this.valueList == null) { + this.valueList = new ArrayList(); + } + this.valueList.add(valueListItem); + return this; + } + + /** + * Collection of custom tag values + * @return valueList + **/ + @ApiModelProperty(value = "Collection of custom tag values") + public List getValueList() { + return valueList; + } + + public void setValueList(List valueList) { + this.valueList = valueList; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomTagInfo customTagInfo = (CustomTagInfo) o; + return Objects.equals(this.guid, customTagInfo.guid) && + Objects.equals(this.id, customTagInfo.id) && + Objects.equals(this.name, customTagInfo.name) && + Objects.equals(this.valueList, customTagInfo.valueList); + } + + @Override + public int hashCode() { + return Objects.hash(guid, id, name, valueList); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomTagInfo {\n"); + + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" valueList: ").append(toIndentedString(valueList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookup.java b/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookup.java new file mode 100644 index 0000000..3b634c8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookup.java @@ -0,0 +1,294 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTagInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Custom tag value + */ +@ApiModel(description = "Custom tag value") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CustomTagLookup { + @SerializedName("consideredIssue") + private Boolean consideredIssue = null; + + @SerializedName("customTagGuid") + private String customTagGuid = null; + + @SerializedName("defaultValue") + private Boolean defaultValue = null; + + @SerializedName("deletable") + private Boolean deletable = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("lookupIndex") + private Integer lookupIndex = null; + + @SerializedName("lookupValue") + private String lookupValue = null; + + @SerializedName("relyingCustomTags") + private List relyingCustomTags = null; + + @SerializedName("seqNumber") + private Integer seqNumber = null; + + public CustomTagLookup consideredIssue(Boolean consideredIssue) { + this.consideredIssue = consideredIssue; + return this; + } + + /** + * Flag that should be used to mark values that mean \"not an issue\" or \"false positive\". + * @return consideredIssue + **/ + @ApiModelProperty(example = "false", value = "Flag that should be used to mark values that mean \"not an issue\" or \"false positive\".") + public Boolean isConsideredIssue() { + return consideredIssue; + } + + public void setConsideredIssue(Boolean consideredIssue) { + this.consideredIssue = consideredIssue; + } + + /** + * GUID of the parent custom tag this value belongs to. + * @return customTagGuid + **/ + @ApiModelProperty(value = "GUID of the parent custom tag this value belongs to.") + public String getCustomTagGuid() { + return customTagGuid; + } + + public CustomTagLookup defaultValue(Boolean defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Flag that says if this value is default custom tag value and should be selected automatically in the values list on issue audit screen. + * @return defaultValue + **/ + @ApiModelProperty(example = "false", value = "Flag that says if this value is default custom tag value and should be selected automatically in the values list on issue audit screen.") + public Boolean isDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(Boolean defaultValue) { + this.defaultValue = defaultValue; + } + + /** + * Flag that says if this value can be removed from custom tag. Value cannot be removed if it is selected for some issue in the system. + * @return deletable + **/ + @ApiModelProperty(example = "false", value = "Flag that says if this value can be removed from custom tag. Value cannot be removed if it is selected for some issue in the system.") + public Boolean isDeletable() { + return deletable; + } + + public CustomTagLookup description(String description) { + this.description = description; + return this; + } + + /** + * Custom tag value description. + * @return description + **/ + @ApiModelProperty(value = "Custom tag value description.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CustomTagLookup hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Flag that says that this value is hidden and cannot be selected in issue audit mode. + * @return hidden + **/ + @ApiModelProperty(example = "false", value = "Flag that says that this value is hidden and cannot be selected in issue audit mode.") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + public CustomTagLookup lookupIndex(Integer lookupIndex) { + this.lookupIndex = lookupIndex; + return this; + } + + /** + * Current value index in values list. + * @return lookupIndex + **/ + @ApiModelProperty(required = true, value = "Current value index in values list.") + public Integer getLookupIndex() { + return lookupIndex; + } + + public void setLookupIndex(Integer lookupIndex) { + this.lookupIndex = lookupIndex; + } + + public CustomTagLookup lookupValue(String lookupValue) { + this.lookupValue = lookupValue; + return this; + } + + /** + * Plain text custom tag value. + * @return lookupValue + **/ + @ApiModelProperty(required = true, value = "Plain text custom tag value.") + public String getLookupValue() { + return lookupValue; + } + + public void setLookupValue(String lookupValue) { + this.lookupValue = lookupValue; + } + + public CustomTagLookup relyingCustomTags(List relyingCustomTags) { + this.relyingCustomTags = relyingCustomTags; + return this; + } + + public CustomTagLookup addRelyingCustomTagsItem(CustomTagInfo relyingCustomTagsItem) { + if (this.relyingCustomTags == null) { + this.relyingCustomTags = new ArrayList(); + } + this.relyingCustomTags.add(relyingCustomTagsItem); + return this; + } + + /** + * List of relying custom tags and their values this value depends on. This list should be set to automatically reflect relying custom tags values changes to this custom tag value + * @return relyingCustomTags + **/ + @ApiModelProperty(value = "List of relying custom tags and their values this value depends on. This list should be set to automatically reflect relying custom tags values changes to this custom tag value") + public List getRelyingCustomTags() { + return relyingCustomTags; + } + + public void setRelyingCustomTags(List relyingCustomTags) { + this.relyingCustomTags = relyingCustomTags; + } + + public CustomTagLookup seqNumber(Integer seqNumber) { + this.seqNumber = seqNumber; + return this; + } + + /** + * Custom tag value sequence number. + * @return seqNumber + **/ + @ApiModelProperty(required = true, value = "Custom tag value sequence number.") + public Integer getSeqNumber() { + return seqNumber; + } + + public void setSeqNumber(Integer seqNumber) { + this.seqNumber = seqNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomTagLookup customTagLookup = (CustomTagLookup) o; + return Objects.equals(this.consideredIssue, customTagLookup.consideredIssue) && + Objects.equals(this.customTagGuid, customTagLookup.customTagGuid) && + Objects.equals(this.defaultValue, customTagLookup.defaultValue) && + Objects.equals(this.deletable, customTagLookup.deletable) && + Objects.equals(this.description, customTagLookup.description) && + Objects.equals(this.hidden, customTagLookup.hidden) && + Objects.equals(this.lookupIndex, customTagLookup.lookupIndex) && + Objects.equals(this.lookupValue, customTagLookup.lookupValue) && + Objects.equals(this.relyingCustomTags, customTagLookup.relyingCustomTags) && + Objects.equals(this.seqNumber, customTagLookup.seqNumber); + } + + @Override + public int hashCode() { + return Objects.hash(consideredIssue, customTagGuid, defaultValue, deletable, description, hidden, lookupIndex, lookupValue, relyingCustomTags, seqNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomTagLookup {\n"); + + sb.append(" consideredIssue: ").append(toIndentedString(consideredIssue)).append("\n"); + sb.append(" customTagGuid: ").append(toIndentedString(customTagGuid)).append("\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" lookupIndex: ").append(toIndentedString(lookupIndex)).append("\n"); + sb.append(" lookupValue: ").append(toIndentedString(lookupValue)).append("\n"); + sb.append(" relyingCustomTags: ").append(toIndentedString(relyingCustomTags)).append("\n"); + sb.append(" seqNumber: ").append(toIndentedString(seqNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookupInfo.java b/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookupInfo.java new file mode 100644 index 0000000..2d8824a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/CustomTagLookupInfo.java @@ -0,0 +1,108 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Holds the details about existed list custom tag value that is assigned or linked with some other entity + */ +@ApiModel(description = "Holds the details about existed list custom tag value that is assigned or linked with some other entity") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class CustomTagLookupInfo { + @SerializedName("lookupIndex") + private Integer lookupIndex = null; + + @SerializedName("lookupValue") + private String lookupValue = null; + + public CustomTagLookupInfo lookupIndex(Integer lookupIndex) { + this.lookupIndex = lookupIndex; + return this; + } + + /** + * Current value index in values list + * @return lookupIndex + **/ + @ApiModelProperty(required = true, value = "Current value index in values list") + public Integer getLookupIndex() { + return lookupIndex; + } + + public void setLookupIndex(Integer lookupIndex) { + this.lookupIndex = lookupIndex; + } + + /** + * Plain text custom tag value + * @return lookupValue + **/ + @ApiModelProperty(value = "Plain text custom tag value") + public String getLookupValue() { + return lookupValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomTagLookupInfo customTagLookupInfo = (CustomTagLookupInfo) o; + return Objects.equals(this.lookupIndex, customTagLookupInfo.lookupIndex) && + Objects.equals(this.lookupValue, customTagLookupInfo.lookupValue); + } + + @Override + public int hashCode() { + return Objects.hash(lookupIndex, lookupValue); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomTagLookupInfo {\n"); + + sb.append(" lookupIndex: ").append(toIndentedString(lookupIndex)).append("\n"); + sb.append(" lookupValue: ").append(toIndentedString(lookupValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DashboardVersion.java b/src/main/java/com/fortify/ssc/restclient/model/DashboardVersion.java new file mode 100644 index 0000000..6cdd562 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DashboardVersion.java @@ -0,0 +1,64 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import java.util.HashMap; +import java.util.Map; + +/** + * DashboardVersion + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DashboardVersion extends HashMap { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DashboardVersion {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DataExport.java b/src/main/java/com/fortify/ssc/restclient/model/DataExport.java new file mode 100644 index 0000000..a4bd3cc --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DataExport.java @@ -0,0 +1,388 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Data Export DTO object + */ +@ApiModel(description = "Data Export DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DataExport { + @SerializedName("appVersionId") + private Long appVersionId = null; + + @SerializedName("appVersionName") + private String appVersionName = null; + + @SerializedName("datasetName") + private String datasetName = null; + + @SerializedName("documentInfoId") + private Long documentInfoId = null; + + @SerializedName("expiration") + private Integer expiration = null; + + @SerializedName("exportDate") + private OffsetDateTime exportDate = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("fileType") + private String fileType = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("note") + private String note = null; + + /** + * Data export status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + STARTED("EXPORT_PROCESS_STARTED"), + + COMPLETED("EXPORT_PROCESS_COMPLETED"), + + FAILED("EXPORT_PROCESS_FAILED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("userName") + private String userName = null; + + public DataExport appVersionId(Long appVersionId) { + this.appVersionId = appVersionId; + return this; + } + + /** + * Application version id - required if DatasetName = \"Audit\" + * @return appVersionId + **/ + @ApiModelProperty(value = "Application version id - required if DatasetName = \"Audit\"") + public Long getAppVersionId() { + return appVersionId; + } + + public void setAppVersionId(Long appVersionId) { + this.appVersionId = appVersionId; + } + + public DataExport appVersionName(String appVersionName) { + this.appVersionName = appVersionName; + return this; + } + + /** + * Application version name + * @return appVersionName + **/ + @ApiModelProperty(value = "Application version name") + public String getAppVersionName() { + return appVersionName; + } + + public void setAppVersionName(String appVersionName) { + this.appVersionName = appVersionName; + } + + public DataExport datasetName(String datasetName) { + this.datasetName = datasetName; + return this; + } + + /** + * Dataset name - e.g. \"Audit\", \"Issue Stats\" - corresponds to page from which data is exported + * @return datasetName + **/ + @ApiModelProperty(required = true, value = "Dataset name - e.g. \"Audit\", \"Issue Stats\" - corresponds to page from which data is exported") + public String getDatasetName() { + return datasetName; + } + + public void setDatasetName(String datasetName) { + this.datasetName = datasetName; + } + + public DataExport documentInfoId(Long documentInfoId) { + this.documentInfoId = documentInfoId; + return this; + } + + /** + * Document Info id for file blob + * @return documentInfoId + **/ + @ApiModelProperty(value = "Document Info id for file blob") + public Long getDocumentInfoId() { + return documentInfoId; + } + + public void setDocumentInfoId(Long documentInfoId) { + this.documentInfoId = documentInfoId; + } + + public DataExport expiration(Integer expiration) { + this.expiration = expiration; + return this; + } + + /** + * Data export file expiration in days + * @return expiration + **/ + @ApiModelProperty(value = "Data export file expiration in days") + public Integer getExpiration() { + return expiration; + } + + public void setExpiration(Integer expiration) { + this.expiration = expiration; + } + + public DataExport exportDate(OffsetDateTime exportDate) { + this.exportDate = exportDate; + return this; + } + + /** + * Export date + * @return exportDate + **/ + @ApiModelProperty(value = "Export date") + public OffsetDateTime getExportDate() { + return exportDate; + } + + public void setExportDate(OffsetDateTime exportDate) { + this.exportDate = exportDate; + } + + public DataExport fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Name of data export file + * @return fileName + **/ + @ApiModelProperty(required = true, value = "Name of data export file") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public DataExport fileType(String fileType) { + this.fileType = fileType; + return this; + } + + /** + * File type, e.g. CSV + * @return fileType + **/ + @ApiModelProperty(value = "File type, e.g. CSV") + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public DataExport note(String note) { + this.note = note; + return this; + } + + /** + * Note, i.e. comments or info related to data being exported + * @return note + **/ + @ApiModelProperty(value = "Note, i.e. comments or info related to data being exported") + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public DataExport status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Data export status + * @return status + **/ + @ApiModelProperty(value = "Data export status") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public DataExport userName(String userName) { + this.userName = userName; + return this; + } + + /** + * User name of user who initiated the data export + * @return userName + **/ + @ApiModelProperty(value = "User name of user who initiated the data export") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataExport dataExport = (DataExport) o; + return Objects.equals(this.appVersionId, dataExport.appVersionId) && + Objects.equals(this.appVersionName, dataExport.appVersionName) && + Objects.equals(this.datasetName, dataExport.datasetName) && + Objects.equals(this.documentInfoId, dataExport.documentInfoId) && + Objects.equals(this.expiration, dataExport.expiration) && + Objects.equals(this.exportDate, dataExport.exportDate) && + Objects.equals(this.fileName, dataExport.fileName) && + Objects.equals(this.fileType, dataExport.fileType) && + Objects.equals(this.id, dataExport.id) && + Objects.equals(this.note, dataExport.note) && + Objects.equals(this.status, dataExport.status) && + Objects.equals(this.userName, dataExport.userName); + } + + @Override + public int hashCode() { + return Objects.hash(appVersionId, appVersionName, datasetName, documentInfoId, expiration, exportDate, fileName, fileType, id, note, status, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataExport {\n"); + + sb.append(" appVersionId: ").append(toIndentedString(appVersionId)).append("\n"); + sb.append(" appVersionName: ").append(toIndentedString(appVersionName)).append("\n"); + sb.append(" datasetName: ").append(toIndentedString(datasetName)).append("\n"); + sb.append(" documentInfoId: ").append(toIndentedString(documentInfoId)).append("\n"); + sb.append(" expiration: ").append(toIndentedString(expiration)).append("\n"); + sb.append(" exportDate: ").append(toIndentedString(exportDate)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequest.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequest.java new file mode 100644 index 0000000..bba2801 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequest.java @@ -0,0 +1,292 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequestParameter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * Dynamic Scan Request object + */ +@ApiModel(description = "Dynamic Scan Request object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequest { + @SerializedName("id") + private Long id = null; + + @SerializedName("lastUpdateDate") + private OffsetDateTime lastUpdateDate = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("parameters") + private List parameters = new ArrayList(); + + @SerializedName("requestedDate") + private OffsetDateTime requestedDate = null; + + /** + * The status of the dynamic scan request + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + SUBMITTED("SUBMITTED"), + + PICKED_UP("PICKED_UP"), + + CANCELED("CANCELED"), + + COMPLETED("COMPLETED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("submitter") + private String submitter = null; + + public DynamicScanRequest id(Long id) { + this.id = id; + return this; + } + + /** + * Unique identifier of dynamic scan request + * @return id + **/ + @ApiModelProperty(required = true, value = "Unique identifier of dynamic scan request") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public DynamicScanRequest lastUpdateDate(OffsetDateTime lastUpdateDate) { + this.lastUpdateDate = lastUpdateDate; + return this; + } + + /** + * The date that the dynamic scan request was updated + * @return lastUpdateDate + **/ + @ApiModelProperty(value = "The date that the dynamic scan request was updated") + public OffsetDateTime getLastUpdateDate() { + return lastUpdateDate; + } + + public void setLastUpdateDate(OffsetDateTime lastUpdateDate) { + this.lastUpdateDate = lastUpdateDate; + } + + public DynamicScanRequest objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * The object version of the dynamic scan request + * @return objectVersion + **/ + @ApiModelProperty(value = "The object version of the dynamic scan request") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public DynamicScanRequest parameters(List parameters) { + this.parameters = parameters; + return this; + } + + public DynamicScanRequest addParametersItem(DynamicScanRequestParameter parametersItem) { + this.parameters.add(parametersItem); + return this; + } + + /** + * Parameters that are needed for dynamic scan request + * @return parameters + **/ + @ApiModelProperty(required = true, value = "Parameters that are needed for dynamic scan request") + public List getParameters() { + return parameters; + } + + public void setParameters(List parameters) { + this.parameters = parameters; + } + + public DynamicScanRequest requestedDate(OffsetDateTime requestedDate) { + this.requestedDate = requestedDate; + return this; + } + + /** + * The date that the dynamic scan request was submitted + * @return requestedDate + **/ + @ApiModelProperty(value = "The date that the dynamic scan request was submitted") + public OffsetDateTime getRequestedDate() { + return requestedDate; + } + + public void setRequestedDate(OffsetDateTime requestedDate) { + this.requestedDate = requestedDate; + } + + public DynamicScanRequest status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * The status of the dynamic scan request + * @return status + **/ + @ApiModelProperty(value = "The status of the dynamic scan request") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public DynamicScanRequest submitter(String submitter) { + this.submitter = submitter; + return this; + } + + /** + * The id of the user who submitted the dynamic scan request + * @return submitter + **/ + @ApiModelProperty(value = "The id of the user who submitted the dynamic scan request") + public String getSubmitter() { + return submitter; + } + + public void setSubmitter(String submitter) { + this.submitter = submitter; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequest dynamicScanRequest = (DynamicScanRequest) o; + return Objects.equals(this.id, dynamicScanRequest.id) && + Objects.equals(this.lastUpdateDate, dynamicScanRequest.lastUpdateDate) && + Objects.equals(this.objectVersion, dynamicScanRequest.objectVersion) && + Objects.equals(this.parameters, dynamicScanRequest.parameters) && + Objects.equals(this.requestedDate, dynamicScanRequest.requestedDate) && + Objects.equals(this.status, dynamicScanRequest.status) && + Objects.equals(this.submitter, dynamicScanRequest.submitter); + } + + @Override + public int hashCode() { + return Objects.hash(id, lastUpdateDate, objectVersion, parameters, requestedDate, status, submitter); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequest {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastUpdateDate: ").append(toIndentedString(lastUpdateDate)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append(" requestedDate: ").append(toIndentedString(requestedDate)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" submitter: ").append(toIndentedString(submitter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameter.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameter.java new file mode 100644 index 0000000..213d50e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameter.java @@ -0,0 +1,275 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequestParameterDefinition; +import com.fortify.ssc.restclient.model.DynamicScanRequestParameterOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Dynamic Scan Request Parameter DTO object + */ +@ApiModel(description = "Dynamic Scan Request Parameter DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequestParameter { + @SerializedName("fileValueDocumentInfoId") + private Long fileValueDocumentInfoId = null; + + @SerializedName("fileValueName") + private String fileValueName = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("parameterDefinition") + private DynamicScanRequestParameterDefinition parameterDefinition = null; + + @SerializedName("value") + private String value = null; + + @SerializedName("valueOptions") + private List valueOptions = null; + + @SerializedName("values") + private List values = null; + + public DynamicScanRequestParameter fileValueDocumentInfoId(Long fileValueDocumentInfoId) { + this.fileValueDocumentInfoId = fileValueDocumentInfoId; + return this; + } + + /** + * The file value document info id for an upload file + * @return fileValueDocumentInfoId + **/ + @ApiModelProperty(value = "The file value document info id for an upload file") + public Long getFileValueDocumentInfoId() { + return fileValueDocumentInfoId; + } + + public void setFileValueDocumentInfoId(Long fileValueDocumentInfoId) { + this.fileValueDocumentInfoId = fileValueDocumentInfoId; + } + + public DynamicScanRequestParameter fileValueName(String fileValueName) { + this.fileValueName = fileValueName; + return this; + } + + /** + * The name of an uploaded file + * @return fileValueName + **/ + @ApiModelProperty(value = "The name of an uploaded file") + public String getFileValueName() { + return fileValueName; + } + + public void setFileValueName(String fileValueName) { + this.fileValueName = fileValueName; + } + + public DynamicScanRequestParameter id(Long id) { + this.id = id; + return this; + } + + /** + * The id of the parameter + * @return id + **/ + @ApiModelProperty(value = "The id of the parameter") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public DynamicScanRequestParameter objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * The objecct version of this parameter + * @return objectVersion + **/ + @ApiModelProperty(value = "The objecct version of this parameter") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public DynamicScanRequestParameter parameterDefinition(DynamicScanRequestParameterDefinition parameterDefinition) { + this.parameterDefinition = parameterDefinition; + return this; + } + + /** + * The definition for this parameter + * @return parameterDefinition + **/ + @ApiModelProperty(value = "The definition for this parameter") + public DynamicScanRequestParameterDefinition getParameterDefinition() { + return parameterDefinition; + } + + public void setParameterDefinition(DynamicScanRequestParameterDefinition parameterDefinition) { + this.parameterDefinition = parameterDefinition; + } + + public DynamicScanRequestParameter value(String value) { + this.value = value; + return this; + } + + /** + * The value of the parameter + * @return value + **/ + @ApiModelProperty(value = "The value of the parameter") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public DynamicScanRequestParameter valueOptions(List valueOptions) { + this.valueOptions = valueOptions; + return this; + } + + public DynamicScanRequestParameter addValueOptionsItem(DynamicScanRequestParameterOption valueOptionsItem) { + if (this.valueOptions == null) { + this.valueOptions = new ArrayList(); + } + this.valueOptions.add(valueOptionsItem); + return this; + } + + /** + * The name of the uploaded file + * @return valueOptions + **/ + @ApiModelProperty(value = "The name of the uploaded file") + public List getValueOptions() { + return valueOptions; + } + + public void setValueOptions(List valueOptions) { + this.valueOptions = valueOptions; + } + + public DynamicScanRequestParameter values(List values) { + this.values = values; + return this; + } + + public DynamicScanRequestParameter addValuesItem(DynamicScanRequestParameterOption valuesItem) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(valuesItem); + return this; + } + + /** + * A list of possible values for this parameter + * @return values + **/ + @ApiModelProperty(value = "A list of possible values for this parameter") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequestParameter dynamicScanRequestParameter = (DynamicScanRequestParameter) o; + return Objects.equals(this.fileValueDocumentInfoId, dynamicScanRequestParameter.fileValueDocumentInfoId) && + Objects.equals(this.fileValueName, dynamicScanRequestParameter.fileValueName) && + Objects.equals(this.id, dynamicScanRequestParameter.id) && + Objects.equals(this.objectVersion, dynamicScanRequestParameter.objectVersion) && + Objects.equals(this.parameterDefinition, dynamicScanRequestParameter.parameterDefinition) && + Objects.equals(this.value, dynamicScanRequestParameter.value) && + Objects.equals(this.valueOptions, dynamicScanRequestParameter.valueOptions) && + Objects.equals(this.values, dynamicScanRequestParameter.values); + } + + @Override + public int hashCode() { + return Objects.hash(fileValueDocumentInfoId, fileValueName, id, objectVersion, parameterDefinition, value, valueOptions, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequestParameter {\n"); + + sb.append(" fileValueDocumentInfoId: ").append(toIndentedString(fileValueDocumentInfoId)).append("\n"); + sb.append(" fileValueName: ").append(toIndentedString(fileValueName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" parameterDefinition: ").append(toIndentedString(parameterDefinition)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" valueOptions: ").append(toIndentedString(valueOptions)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterDefinition.java new file mode 100644 index 0000000..a223428 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterDefinition.java @@ -0,0 +1,284 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Attribute Definition DTO object. + */ +@ApiModel(description = "Attribute Definition DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequestParameterDefinition { + @SerializedName("description") + private String description = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("sequenceNumber") + private Long sequenceNumber = null; + + /** + * Attribute Definition Type from which this parameter definition is based on + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + TEXT("TEXT"), + + SINGLE("SINGLE"), + + MULTIPLE("MULTIPLE"), + + LONG_TEXT("LONG_TEXT"), + + SENSITIVE_TEXT("SENSITIVE_TEXT"), + + BOOLEAN("BOOLEAN"), + + INTEGER("INTEGER"), + + DATE("DATE"), + + FILE("FILE"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + public DynamicScanRequestParameterDefinition description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DynamicScanRequestParameterDefinition guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Unique string identifier for this parameter definition + * @return guid + **/ + @ApiModelProperty(required = true, value = "Unique string identifier for this parameter definition") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + /** + * Unique id for this parameter definition + * @return id + **/ + @ApiModelProperty(value = "Unique id for this parameter definition") + public Long getId() { + return id; + } + + public DynamicScanRequestParameterDefinition name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DynamicScanRequestParameterDefinition required(Boolean required) { + this.required = required; + return this; + } + + /** + * Set to true if required + * @return required + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if required") + public Boolean isRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public DynamicScanRequestParameterDefinition sequenceNumber(Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + * Get sequenceNumber + * @return sequenceNumber + **/ + @ApiModelProperty(value = "") + public Long getSequenceNumber() { + return sequenceNumber; + } + + public void setSequenceNumber(Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public DynamicScanRequestParameterDefinition type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Attribute Definition Type from which this parameter definition is based on + * @return type + **/ + @ApiModelProperty(required = true, value = "Attribute Definition Type from which this parameter definition is based on") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequestParameterDefinition dynamicScanRequestParameterDefinition = (DynamicScanRequestParameterDefinition) o; + return Objects.equals(this.description, dynamicScanRequestParameterDefinition.description) && + Objects.equals(this.guid, dynamicScanRequestParameterDefinition.guid) && + Objects.equals(this.id, dynamicScanRequestParameterDefinition.id) && + Objects.equals(this.name, dynamicScanRequestParameterDefinition.name) && + Objects.equals(this.required, dynamicScanRequestParameterDefinition.required) && + Objects.equals(this.sequenceNumber, dynamicScanRequestParameterDefinition.sequenceNumber) && + Objects.equals(this.type, dynamicScanRequestParameterDefinition.type); + } + + @Override + public int hashCode() { + return Objects.hash(description, guid, id, name, required, sequenceNumber, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequestParameterDefinition {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterOption.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterOption.java new file mode 100644 index 0000000..a07461a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestParameterOption.java @@ -0,0 +1,186 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Dynamic Scan Request Parameter Option DTO object + */ +@ApiModel(description = "Dynamic Scan Request Parameter Option DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequestParameterOption { + @SerializedName("description") + private String description = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("index") + private Integer index = null; + + @SerializedName("name") + private String name = null; + + public DynamicScanRequestParameterOption description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DynamicScanRequestParameterOption guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Unique string identifier for a Dynamic Scan Request Parameter Option + * @return guid + **/ + @ApiModelProperty(value = "Unique string identifier for a Dynamic Scan Request Parameter Option") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public DynamicScanRequestParameterOption id(Long id) { + this.id = id; + return this; + } + + /** + * Unique ID for this parameter option + * @return id + **/ + @ApiModelProperty(required = true, value = "Unique ID for this parameter option") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public DynamicScanRequestParameterOption index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of this option in list of options + * @return index + **/ + @ApiModelProperty(required = true, value = "Index of this option in list of options") + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public DynamicScanRequestParameterOption name(String name) { + this.name = name; + return this; + } + + /** + * Name + * @return name + **/ + @ApiModelProperty(required = true, value = "Name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequestParameterOption dynamicScanRequestParameterOption = (DynamicScanRequestParameterOption) o; + return Objects.equals(this.description, dynamicScanRequestParameterOption.description) && + Objects.equals(this.guid, dynamicScanRequestParameterOption.guid) && + Objects.equals(this.id, dynamicScanRequestParameterOption.id) && + Objects.equals(this.index, dynamicScanRequestParameterOption.index) && + Objects.equals(this.name, dynamicScanRequestParameterOption.name); + } + + @Override + public int hashCode() { + return Objects.hash(description, guid, id, index, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequestParameterOption {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestTemplate.java new file mode 100644 index 0000000..e731589 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestTemplate.java @@ -0,0 +1,102 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.DynamicScanRequestParameter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Dynamic Scan Request Template object + */ +@ApiModel(description = "Dynamic Scan Request Template object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequestTemplate { + @SerializedName("parameters") + private List parameters = new ArrayList(); + + public DynamicScanRequestTemplate parameters(List parameters) { + this.parameters = parameters; + return this; + } + + public DynamicScanRequestTemplate addParametersItem(DynamicScanRequestParameter parametersItem) { + this.parameters.add(parametersItem); + return this; + } + + /** + * Parameters that are needed for dynamic scan request + * @return parameters + **/ + @ApiModelProperty(required = true, value = "Parameters that are needed for dynamic scan request") + public List getParameters() { + return parameters; + } + + public void setParameters(List parameters) { + this.parameters = parameters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequestTemplate dynamicScanRequestTemplate = (DynamicScanRequestTemplate) o; + return Objects.equals(this.parameters, dynamicScanRequestTemplate.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(parameters); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequestTemplate {\n"); + + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestsSummary.java b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestsSummary.java new file mode 100644 index 0000000..1fe79b0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/DynamicScanRequestsSummary.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Dynamic Scan Requests Summary object + */ +@ApiModel(description = "Dynamic Scan Requests Summary object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class DynamicScanRequestsSummary { + @SerializedName("canEditOrCancel") + private Boolean canEditOrCancel = null; + + @SerializedName("canSubmit") + private Boolean canSubmit = null; + + @SerializedName("dynamicScanDisabled") + private Boolean dynamicScanDisabled = null; + + @SerializedName("dynamicScanDisabledMessage") + private String dynamicScanDisabledMessage = null; + + @SerializedName("lastScanId") + private Long lastScanId = null; + + @SerializedName("lastScanSummary") + private String lastScanSummary = null; + + public DynamicScanRequestsSummary canEditOrCancel(Boolean canEditOrCancel) { + this.canEditOrCancel = canEditOrCancel; + return this; + } + + /** + * Flag that indicates whether the user may edit or cancel the dynamic scan request + * @return canEditOrCancel + **/ + @ApiModelProperty(example = "false", value = "Flag that indicates whether the user may edit or cancel the dynamic scan request") + public Boolean isCanEditOrCancel() { + return canEditOrCancel; + } + + public void setCanEditOrCancel(Boolean canEditOrCancel) { + this.canEditOrCancel = canEditOrCancel; + } + + public DynamicScanRequestsSummary canSubmit(Boolean canSubmit) { + this.canSubmit = canSubmit; + return this; + } + + /** + * Flag that indicates whether the user can submit dynamic scan requests + * @return canSubmit + **/ + @ApiModelProperty(example = "false", value = "Flag that indicates whether the user can submit dynamic scan requests") + public Boolean isCanSubmit() { + return canSubmit; + } + + public void setCanSubmit(Boolean canSubmit) { + this.canSubmit = canSubmit; + } + + public DynamicScanRequestsSummary dynamicScanDisabled(Boolean dynamicScanDisabled) { + this.dynamicScanDisabled = dynamicScanDisabled; + return this; + } + + /** + * Flag that indicates whether dynamic scan request is disabled + * @return dynamicScanDisabled + **/ + @ApiModelProperty(example = "false", value = "Flag that indicates whether dynamic scan request is disabled") + public Boolean isDynamicScanDisabled() { + return dynamicScanDisabled; + } + + public void setDynamicScanDisabled(Boolean dynamicScanDisabled) { + this.dynamicScanDisabled = dynamicScanDisabled; + } + + public DynamicScanRequestsSummary dynamicScanDisabledMessage(String dynamicScanDisabledMessage) { + this.dynamicScanDisabledMessage = dynamicScanDisabledMessage; + return this; + } + + /** + * A message indicating the reason for why dynamic scan is disabled + * @return dynamicScanDisabledMessage + **/ + @ApiModelProperty(value = "A message indicating the reason for why dynamic scan is disabled") + public String getDynamicScanDisabledMessage() { + return dynamicScanDisabledMessage; + } + + public void setDynamicScanDisabledMessage(String dynamicScanDisabledMessage) { + this.dynamicScanDisabledMessage = dynamicScanDisabledMessage; + } + + public DynamicScanRequestsSummary lastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + return this; + } + + /** + * The id of the last dynamic scan request + * @return lastScanId + **/ + @ApiModelProperty(value = "The id of the last dynamic scan request") + public Long getLastScanId() { + return lastScanId; + } + + public void setLastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + } + + public DynamicScanRequestsSummary lastScanSummary(String lastScanSummary) { + this.lastScanSummary = lastScanSummary; + return this; + } + + /** + * Holds information about the last dynamic scan request + * @return lastScanSummary + **/ + @ApiModelProperty(value = "Holds information about the last dynamic scan request") + public String getLastScanSummary() { + return lastScanSummary; + } + + public void setLastScanSummary(String lastScanSummary) { + this.lastScanSummary = lastScanSummary; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicScanRequestsSummary dynamicScanRequestsSummary = (DynamicScanRequestsSummary) o; + return Objects.equals(this.canEditOrCancel, dynamicScanRequestsSummary.canEditOrCancel) && + Objects.equals(this.canSubmit, dynamicScanRequestsSummary.canSubmit) && + Objects.equals(this.dynamicScanDisabled, dynamicScanRequestsSummary.dynamicScanDisabled) && + Objects.equals(this.dynamicScanDisabledMessage, dynamicScanRequestsSummary.dynamicScanDisabledMessage) && + Objects.equals(this.lastScanId, dynamicScanRequestsSummary.lastScanId) && + Objects.equals(this.lastScanSummary, dynamicScanRequestsSummary.lastScanSummary); + } + + @Override + public int hashCode() { + return Objects.hash(canEditOrCancel, canSubmit, dynamicScanDisabled, dynamicScanDisabledMessage, lastScanId, lastScanSummary); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicScanRequestsSummary {\n"); + + sb.append(" canEditOrCancel: ").append(toIndentedString(canEditOrCancel)).append("\n"); + sb.append(" canSubmit: ").append(toIndentedString(canSubmit)).append("\n"); + sb.append(" dynamicScanDisabled: ").append(toIndentedString(dynamicScanDisabled)).append("\n"); + sb.append(" dynamicScanDisabledMessage: ").append(toIndentedString(dynamicScanDisabledMessage)).append("\n"); + sb.append(" lastScanId: ").append(toIndentedString(lastScanId)).append("\n"); + sb.append(" lastScanSummary: ").append(toIndentedString(lastScanSummary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EmbeddedReportDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedReportDefinition.java new file mode 100644 index 0000000..f702d8e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedReportDefinition.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportDefinition; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * EmbeddedReportDefinition + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EmbeddedReportDefinition { + @SerializedName("fieldsToNullWithExclusions") + private List fieldsToNullWithExclusions = null; + + @SerializedName("reportDefinition") + private ReportDefinition reportDefinition = null; + + public EmbeddedReportDefinition fieldsToNullWithExclusions(List fieldsToNullWithExclusions) { + this.fieldsToNullWithExclusions = fieldsToNullWithExclusions; + return this; + } + + public EmbeddedReportDefinition addFieldsToNullWithExclusionsItem(String fieldsToNullWithExclusionsItem) { + if (this.fieldsToNullWithExclusions == null) { + this.fieldsToNullWithExclusions = new ArrayList(); + } + this.fieldsToNullWithExclusions.add(fieldsToNullWithExclusionsItem); + return this; + } + + /** + * Get fieldsToNullWithExclusions + * @return fieldsToNullWithExclusions + **/ + @ApiModelProperty(value = "") + public List getFieldsToNullWithExclusions() { + return fieldsToNullWithExclusions; + } + + public void setFieldsToNullWithExclusions(List fieldsToNullWithExclusions) { + this.fieldsToNullWithExclusions = fieldsToNullWithExclusions; + } + + public EmbeddedReportDefinition reportDefinition(ReportDefinition reportDefinition) { + this.reportDefinition = reportDefinition; + return this; + } + + /** + * Get reportDefinition + * @return reportDefinition + **/ + @ApiModelProperty(value = "") + public ReportDefinition getReportDefinition() { + return reportDefinition; + } + + public void setReportDefinition(ReportDefinition reportDefinition) { + this.reportDefinition = reportDefinition; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedReportDefinition embeddedReportDefinition = (EmbeddedReportDefinition) o; + return Objects.equals(this.fieldsToNullWithExclusions, embeddedReportDefinition.fieldsToNullWithExclusions) && + Objects.equals(this.reportDefinition, embeddedReportDefinition.reportDefinition); + } + + @Override + public int hashCode() { + return Objects.hash(fieldsToNullWithExclusions, reportDefinition); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedReportDefinition {\n"); + + sb.append(" fieldsToNullWithExclusions: ").append(toIndentedString(fieldsToNullWithExclusions)).append("\n"); + sb.append(" reportDefinition: ").append(toIndentedString(reportDefinition)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EmbeddedRoles.java b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedRoles.java new file mode 100644 index 0000000..439b911 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedRoles.java @@ -0,0 +1,104 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Role; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * EmbeddedRoles + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EmbeddedRoles { + @SerializedName("roles") + private List roles = null; + + public EmbeddedRoles roles(List roles) { + this.roles = roles; + return this; + } + + public EmbeddedRoles addRolesItem(Role rolesItem) { + if (this.roles == null) { + this.roles = new ArrayList(); + } + this.roles.add(rolesItem); + return this; + } + + /** + * Get roles + * @return roles + **/ + @ApiModelProperty(value = "") + public List getRoles() { + return roles; + } + + public void setRoles(List roles) { + this.roles = roles; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedRoles embeddedRoles = (EmbeddedRoles) o; + return Objects.equals(this.roles, embeddedRoles.roles); + } + + @Override + public int hashCode() { + return Objects.hash(roles); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedRoles {\n"); + + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EmbeddedScans.java b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedScans.java new file mode 100644 index 0000000..3ea1f45 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EmbeddedScans.java @@ -0,0 +1,104 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Scan; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * EmbeddedScans + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EmbeddedScans { + @SerializedName("scans") + private List scans = null; + + public EmbeddedScans scans(List scans) { + this.scans = scans; + return this; + } + + public EmbeddedScans addScansItem(Scan scansItem) { + if (this.scans == null) { + this.scans = new ArrayList(); + } + this.scans.add(scansItem); + return this; + } + + /** + * Get scans + * @return scans + **/ + @ApiModelProperty(value = "") + public List getScans() { + return scans; + } + + public void setScans(List scans) { + this.scans = scans; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedScans embeddedScans = (EmbeddedScans) o; + return Objects.equals(this.scans, embeddedScans.scans); + } + + @Override + public int hashCode() { + return Objects.hash(scans); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedScans {\n"); + + sb.append(" scans: ").append(toIndentedString(scans)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EngineType.java b/src/main/java/com/fortify/ssc/restclient/model/EngineType.java new file mode 100644 index 0000000..87ec52a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EngineType.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Types of the analyzers (engines) that produces issues + */ +@ApiModel(description = "Types of the analyzers (engines) that produces issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EngineType { + @SerializedName("name") + private String name = null; + + @SerializedName("servedByPlugin") + private Boolean servedByPlugin = null; + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + /** + * Get servedByPlugin + * @return servedByPlugin + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isServedByPlugin() { + return servedByPlugin; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EngineType engineType = (EngineType) o; + return Objects.equals(this.name, engineType.name) && + Objects.equals(this.servedByPlugin, engineType.servedByPlugin); + } + + @Override + public int hashCode() { + return Objects.hash(name, servedByPlugin); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineType {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" servedByPlugin: ").append(toIndentedString(servedByPlugin)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EntityStateIdentifier.java b/src/main/java/com/fortify/ssc/restclient/model/EntityStateIdentifier.java new file mode 100644 index 0000000..45e54d5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EntityStateIdentifier.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Simple API entity that contains only ID and revision. + */ +@ApiModel(description = "Simple API entity that contains only ID and revision.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EntityStateIdentifier { + @SerializedName("id") + private Long id = null; + + @SerializedName("revision") + private Integer revision = null; + + /** + * API entity identifier. + * @return id + **/ + @ApiModelProperty(required = true, value = "API entity identifier.") + public Long getId() { + return id; + } + + /** + * API entity revision. + * @return revision + **/ + @ApiModelProperty(required = true, value = "API entity revision.") + public Integer getRevision() { + return revision; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EntityStateIdentifier entityStateIdentifier = (EntityStateIdentifier) o; + return Objects.equals(this.id, entityStateIdentifier.id) && + Objects.equals(this.revision, entityStateIdentifier.revision); + } + + @Override + public int hashCode() { + return Objects.hash(id, revision); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EntityStateIdentifier {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/EventLog.java b/src/main/java/com/fortify/ssc/restclient/model/EventLog.java new file mode 100644 index 0000000..032389d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/EventLog.java @@ -0,0 +1,623 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Event Log DTO object + */ +@ApiModel(description = "Event Log DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class EventLog { + @SerializedName("detailedNote") + private String detailedNote = null; + + @SerializedName("entityId") + private Long entityId = null; + + @SerializedName("eventDate") + private OffsetDateTime eventDate = null; + + /** + * Gets or Sets eventType + */ + @JsonAdapter(EventTypeEnum.Adapter.class) + public enum EventTypeEnum { + WEBUI_LOGIN_SUCCESS("WEBUI_LOGIN_SUCCESS"), + + WEBUI_LOGIN_FAILED("WEBUI_LOGIN_FAILED"), + + WEBUI_LOGOUT("WEBUI_LOGOUT"), + + WS_LOGIN_SUCCESS("WS_LOGIN_SUCCESS"), + + WS_LOGIN_FAILED("WS_LOGIN_FAILED"), + + LOCAL_USER_CREATED("LOCAL_USER_CREATED"), + + LOCAL_USER_UPDATED("LOCAL_USER_UPDATED"), + + LOCAL_USER_DELETED("LOCAL_USER_DELETED"), + + AGENT_CREDENTIAL_CREATED("AGENT_CREDENTIAL_CREATED"), + + AGENT_CREDENTIAL_UPDATED("AGENT_CREDENTIAL_UPDATED"), + + AGENT_CREDENTIAL_DELETED("AGENT_CREDENTIAL_DELETED"), + + LDAP_ENTITY_CREATED("LDAP_ENTITY_CREATED"), + + LDAP_ENTITY_UPDATED("LDAP_ENTITY_UPDATED"), + + LDAP_ENTITY_DELETED("LDAP_ENTITY_DELETED"), + + LDAP_CACHE_REFRESH_REQUESTED("LDAP_CACHE_REFRESH_REQUESTED"), + + LDAP_CACHE_REFRESH_STARTED("LDAP_CACHE_REFRESH_STARTED"), + + LDAP_CACHE_REFRESH_COMPLETED("LDAP_CACHE_REFRESH_COMPLETED"), + + PROJECT_VERSION_CREATED("PROJECT_VERSION_CREATED"), + + PROJECT_VERSION_CREATED_FROM_PREVIOUS("PROJECT_VERSION_CREATED_FROM_PREVIOUS"), + + PROJECT_VERSION_UPDATED("PROJECT_VERSION_UPDATED"), + + PROJECT_VERSION_DELETED("PROJECT_VERSION_DELETED"), + + PROJECT_VERSION_METADATA_UPDATED("PROJECT_VERSION_METADATA_UPDATED"), + + PROJECT_VERSION_ACCESS_ADDED("PROJECT_VERSION_ACCESS_ADDED"), + + PROJECT_VERSION_ACCESS_REMOVED("PROJECT_VERSION_ACCESS_REMOVED"), + + PROJECT_VERSION_BUG_TRACKER_UPDATED("PROJECT_VERSION_BUG_TRACKER_UPDATED"), + + SCA_RESULT_PROCESSED("SCA_RESULT_PROCESSED"), + + RUNTIME_RESULT_PROCESSED("RUNTIME_RESULT_PROCESSED"), + + EXTERNAL_RESULT_PROCESSED("EXTERNAL_RESULT_PROCESSED"), + + PTA_RESULT_PROCESSED("PTA_RESULT_PROCESSED"), + + RTA_RESULT_PROCESSED("RTA_RESULT_PROCESSED"), + + ARTIFACT_UPLOAD_REQUESTED("ARTIFACT_UPLOAD_REQUESTED"), + + ARTIFACT_UPLOAD_STARTED("ARTIFACT_UPLOAD_STARTED"), + + ARTIFACT_UPLOAD_COMPLETED("ARTIFACT_UPLOAD_COMPLETED"), + + ARTIFACT_UPLOAD_FAILED("ARTIFACT_UPLOAD_FAILED"), + + ARTIFACT_UPLOAD_CANCELLED("ARTIFACT_UPLOAD_CANCELLED"), + + ARTIFACT_DELETE_REQUESTED("ARTIFACT_DELETE_REQUESTED"), + + ARTIFACT_DELETE_STARTED("ARTIFACT_DELETE_STARTED"), + + ARTIFACT_DELETE_COMPLETED("ARTIFACT_DELETE_COMPLETED"), + + ARTIFACT_DELETE_FAILED("ARTIFACT_DELETE_FAILED"), + + ARTIFACT_DELETE_CANCELLED("ARTIFACT_DELETE_CANCELLED"), + + JOB_CANCELLED("JOB_CANCELLED"), + + ARTIFACT_PURGE_REQUESTED("ARTIFACT_PURGE_REQUESTED"), + + ARTIFACT_PURGE_REQUEST_STARTED("ARTIFACT_PURGE_REQUEST_STARTED"), + + ARTIFACT_PURGE_COMPLETED("ARTIFACT_PURGE_COMPLETED"), + + ARTIFACT_PURGE_FAILED("ARTIFACT_PURGE_FAILED"), + + ARTIFACT_PURGE_REQUEST_FINISHED("ARTIFACT_PURGE_REQUEST_FINISHED"), + + ARTIFACT_PURGE_CANCELLED("ARTIFACT_PURGE_CANCELLED"), + + HISTORICAL_SNAPSHOT_COLLECTION_STARTED("HISTORICAL_SNAPSHOT_COLLECTION_STARTED"), + + HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED("HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_COMPLETED"), + + HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED("HISTORICAL_SNAPSHOT_COLLECTION_ITERATION_FAILED"), + + HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES("HISTORICAL_SNAPSHOT_COLLECTION_NO_UPDATES"), + + AUDIT_PERFORMED("AUDIT_PERFORMED"), + + ARTIFACT_UPLOAD_REQUIRES_AUTH("ARTIFACT_UPLOAD_REQUIRES_AUTH"), + + SOURCE_CODE_UPLOADED("SOURCE_CODE_UPLOADED"), + + FILTERSET_FOLDER_REFRESH_REQUESTED("FILTERSET_FOLDER_REFRESH_REQUESTED"), + + FILTERSET_FOLDER_REFRESH_COMPLETED("FILTERSET_FOLDER_REFRESH_COMPLETED"), + + FILTERSET_FOLDER_REFRESH_FAILED("FILTERSET_FOLDER_REFRESH_FAILED"), + + DYNAMIC_SCAN_CREATED("DYNAMIC_SCAN_CREATED"), + + DYNAMIC_SCAN_EDITED("DYNAMIC_SCAN_EDITED"), + + DYNAMIC_SCAN_CANCELED("DYNAMIC_SCAN_CANCELED"), + + DYNAMIC_SCAN_COMPLETED("DYNAMIC_SCAN_COMPLETED"), + + DYNAMIC_SCAN_PICKED_UP("DYNAMIC_SCAN_PICKED_UP"), + + BATCH_BUG_FILING_REQUESTED("BATCH_BUG_FILING_REQUESTED"), + + BATCH_BUG_FILING_REQUEST_FAILED("BATCH_BUG_FILING_REQUEST_FAILED"), + + BATCH_BUG_FILING_STARTED("BATCH_BUG_FILING_STARTED"), + + BATCH_BUG_FILING_ENDED("BATCH_BUG_FILING_ENDED"), + + BATCH_BUG_FILING_FAILED("BATCH_BUG_FILING_FAILED"), + + BUG_FILED("BUG_FILED"), + + BUG_FAILED_TO_FILE("BUG_FAILED_TO_FILE"), + + BUG_STATE_MANAGEMENT_STARTED("BUG_STATE_MANAGEMENT_STARTED"), + + BUG_STATE_MANAGEMENT_ENDED("BUG_STATE_MANAGEMENT_ENDED"), + + BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS("BUG_STATE_MANAGEMENT_ENDED_WITH_ERRORS"), + + BUG_UPDATED("BUG_UPDATED"), + + BUG_FAILED_TO_UPDATE("BUG_FAILED_TO_UPDATE"), + + COMMENT_ADDED_TO_ISSUE("COMMENT_ADDED_TO_ISSUE"), + + AUDIT_ASSISTANT_ISSUES_SUBMITTED("AUDIT_ASSISTANT_ISSUES_SUBMITTED"), + + AUDIT_ASSISTANT_ISSUES_RETRIEVED("AUDIT_ASSISTANT_ISSUES_RETRIEVED"), + + AUDIT_ASSISTANT_FPR_UPLOAD_STARTED("AUDIT_ASSISTANT_FPR_UPLOAD_STARTED"), + + AUDIT_ASSISTANT_TRAINING_SENT("AUDIT_ASSISTANT_TRAINING_SENT"), + + AUDIT_ASSISTANT_TEST_CONNECTION_FAILED("AUDIT_ASSISTANT_TEST_CONNECTION_FAILED"), + + AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED("AUDIT_ASSISTANT_ISSUES_SUBMIT_FAILED"), + + AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED("AUDIT_ASSISTANT_ISSUES_RETRIEVE_FAILED"), + + AUDIT_ASSISTANT_FPR_UPLOAD_FAILED("AUDIT_ASSISTANT_FPR_UPLOAD_FAILED"), + + AUDIT_ASSISTANT_TRAINING_SENT_FAILED("AUDIT_ASSISTANT_TRAINING_SENT_FAILED"), + + REPORT_GENERATION_REQUESTED("REPORT_GENERATION_REQUESTED"), + + REPORT_GENERATION_COMPLETED("REPORT_GENERATION_COMPLETED"), + + REPORT_GENERATION_FAILED("REPORT_GENERATION_FAILED"), + + REPORT_GENERATION_CANCELLED("REPORT_GENERATION_CANCELLED"), + + REPORT_DELETED("REPORT_DELETED"), + + RULEPACK_SERVER_UPDATE("RULEPACK_SERVER_UPDATE"), + + RULEPACK_USER_UPLOAD("RULEPACK_USER_UPLOAD"), + + RULEPACK_DELETED("RULEPACK_DELETED"), + + RULEPACK_DOWNLOAD("RULEPACK_DOWNLOAD"), + + RULEPACK_CLIENT_UPDATE("RULEPACK_CLIENT_UPDATE"), + + DOCUMENT_ARTIFACT_CREATED("DOCUMENT_ARTIFACT_CREATED"), + + DOCUMENT_ARTIFACT_UPDATED("DOCUMENT_ARTIFACT_UPDATED"), + + DOCUMENT_ARTIFACT_DELETED("DOCUMENT_ARTIFACT_DELETED"), + + TASK_INSTANCE_CREATED("TASK_INSTANCE_CREATED"), + + TASK_INSTANCE_UPDATED("TASK_INSTANCE_UPDATED"), + + TASK_INSTANCE_DELETED("TASK_INSTANCE_DELETED"), + + TASK_INSTANCE_SIGNOFF_UPDATED("TASK_INSTANCE_SIGNOFF_UPDATED"), + + ACTIVITY_INSTANCE_SIGNOFF_UPDATED("ACTIVITY_INSTANCE_SIGNOFF_UPDATED"), + + REQUIREMENT_INSTANCE_SIGNOFF_UPDATED("REQUIREMENT_INSTANCE_SIGNOFF_UPDATED"), + + REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED("REQUIREMENT_TEMPLATE_INSTANCE_SIGNOFF_UPDATED"), + + TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("TASK_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("ACTIVITY_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF("REQUIREMENT_INSTANCE_DUE_DATE_PASSED_NO_SIGNOFF"), + + REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF("REQUIREMENT_TEMPLATE_DUE_DATE_PASSED_NO_SIGNOFF"), + + SDL_COMMENT_CREATED("SDL_COMMENT_CREATED"), + + PROJECT_PERSONA_ASSIGNMENT_UPDATED("PROJECT_PERSONA_ASSIGNMENT_UPDATED"), + + PERSONA_ASSIGNMENT_UPDATED("PERSONA_ASSIGNMENT_UPDATED"), + + WORK_OWNER_UPDATED("WORK_OWNER_UPDATED"), + + DUE_DATE_UPDATED("DUE_DATE_UPDATED"), + + SESSION_TIMEOUT("SESSION_TIMEOUT"), + + REQ_TEMPLATE_CREATED("REQ_TEMPLATE_CREATED"), + + REQ_TEMPLATE_UPDATED("REQ_TEMPLATE_UPDATED"), + + ACTIVITY_CREATED("ACTIVITY_CREATED"), + + ACTIVITY_UPDATED("ACTIVITY_UPDATED"), + + VARIABLE_CREATED("VARIABLE_CREATED"), + + VARIABLE_UPDATED("VARIABLE_UPDATED"), + + VARIABLE_DELETED("VARIABLE_DELETED"), + + MEASUREMENT_AGENT_CREATED("MEASUREMENT_AGENT_CREATED"), + + MEASUREMENT_AGENT_UPDATED("MEASUREMENT_AGENT_UPDATED"), + + MEASUREMENT_AGENT_DELETED("MEASUREMENT_AGENT_DELETED"), + + DOCUMENT_DEF_CREATED("DOCUMENT_DEF_CREATED"), + + DOCUMENT_DEF_UPDATED("DOCUMENT_DEF_UPDATED"), + + PROJECT_TEMPLATE_CREATED("PROJECT_TEMPLATE_CREATED"), + + PROJECT_TEMPLATE_UPDATED("PROJECT_TEMPLATE_UPDATED"), + + PROJECT_TEMPLATE_DELETED("PROJECT_TEMPLATE_DELETED"), + + ASSIGNMENT_RULES_UPDATED("ASSIGNMENT_RULES_UPDATED"), + + PERSONA_CREATED("PERSONA_CREATED"), + + PERSONA_UPDATED("PERSONA_UPDATED"), + + PERSONA_DELETED("PERSONA_DELETED"), + + ATTR_CREATED("ATTR_CREATED"), + + ATTR_UPDATED("ATTR_UPDATED"), + + ATTR_DELETED("ATTR_DELETED"), + + PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT("PROJECT_VERSION_CUSTOM_TAG_ASSIGNMENT"), + + PROJECT_VERSION_PRIMARY_TAG_UPDATE("PROJECT_VERSION_PRIMARY_TAG_UPDATE"), + + REPORT_DEFINITION_CREATED("REPORT_DEFINITION_CREATED"), + + REPORT_DEFINITION_UPDATED("REPORT_DEFINITION_UPDATED"), + + REPORT_DEFINITION_DELETED("REPORT_DEFINITION_DELETED"), + + REPORT_LIBRARY_CREATED("REPORT_LIBRARY_CREATED"), + + REPORT_LIBRARY_UPDATED("REPORT_LIBRARY_UPDATED"), + + REPORT_LIBRARY_DELETED("REPORT_LIBRARY_DELETED"), + + RUNTIME_HOST_CONNECTED("RUNTIME_HOST_CONNECTED"), + + RUNTIME_HOST_DISCONNECTED("RUNTIME_HOST_DISCONNECTED"), + + RUNTIME_HOST_CREATED("RUNTIME_HOST_CREATED"), + + RUNTIME_HOST_DELETED("RUNTIME_HOST_DELETED"), + + RUNTIME_HOST_DISCOVERED("RUNTIME_HOST_DISCOVERED"), + + RUNTIME_HOST_ENABLED("RUNTIME_HOST_ENABLED"), + + RUNTIME_HOST_DISABLED("RUNTIME_HOST_DISABLED"), + + RUNTIME_HOST_AUTH_RESET("RUNTIME_HOST_AUTH_RESET"), + + ACCEPT_NEW_HOSTS_ENABLED("ACCEPT_NEW_HOSTS_ENABLED"), + + ACCEPT_NEW_HOSTS_DISABLED("ACCEPT_NEW_HOSTS_DISABLED"), + + DISABLED_HOST_CONNECTION("DISABLED_HOST_CONNECTION"), + + RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED("RUNTIME_APPLICATION_ASSIGNMENT_RULES_UPDATED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_REQUESTED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_COMPLETED"), + + REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED("REAPPLY_APPLICATION_ASSIGNMENT_RULES_FAILED"), + + RUNTIME_CONFIGURATION_CREATED("RUNTIME_CONFIGURATION_CREATED"), + + RUNTIME_CONFIGURATION_UPDATED("RUNTIME_CONFIGURATION_UPDATED"), + + RUNTIME_CONFIGURATION_DELETED("RUNTIME_CONFIGURATION_DELETED"), + + RUNTIME_CONFIGURATION_TEMPLATE_UPDATED("RUNTIME_CONFIGURATION_TEMPLATE_UPDATED"), + + RUNTIME_EH_CREATED("RUNTIME_EH_CREATED"), + + RUNTIME_EH_UPDATED("RUNTIME_EH_UPDATED"), + + RUNTIME_EH_DELETED("RUNTIME_EH_DELETED"), + + RUNTIME_SETTINGS_UPDATED("RUNTIME_SETTINGS_UPDATED"), + + RUNTIME_RULEPACK_CONFIG_UPDATED("RUNTIME_RULEPACK_CONFIG_UPDATED"), + + RUNTIME_EVENT_RECEIVED("RUNTIME_EVENT_RECEIVED"), + + RUNTIME_ALERT_RECEIVED("RUNTIME_ALERT_RECEIVED"), + + FEDERATION_CREATED("FEDERATION_CREATED"), + + FEDERATION_UPDATED("FEDERATION_UPDATED"), + + FEDERATION_DELETED("FEDERATION_DELETED"), + + RTAPP_CREATED("RTAPP_CREATED"), + + RTAPP_UPDATED("RTAPP_UPDATED"), + + RTAPP_DELETED("RTAPP_DELETED"), + + RTAPP_ACCESS_ADDED("RTAPP_ACCESS_ADDED"), + + RTAPP_ACCESS_REMOVED("RTAPP_ACCESS_REMOVED"), + + USERROLE_CREATED("USERROLE_CREATED"), + + USERROLE_UPDATED("USERROLE_UPDATED"), + + USERROLE_DELETED("USERROLE_DELETED"), + + CLOUD_SCAN_POLLED("CLOUD_SCAN_POLLED"), + + CLOUD_POOL_CREATED("CLOUD_POOL_CREATED"), + + CLOUD_POOL_UPDATED("CLOUD_POOL_UPDATED"), + + CLOUD_POOL_DELETED("CLOUD_POOL_DELETED"), + + CLOUD_POOL_AVS_UPDATED("CLOUD_POOL_AVS_UPDATED"), + + CLOUD_POOL_SENSORS_UPDATED("CLOUD_POOL_SENSORS_UPDATED"), + + CLOUD_JOB_CANCELED("CLOUD_JOB_CANCELED"), + + CLOUD_JOB_FPR_DOWNLOADED("CLOUD_JOB_FPR_DOWNLOADED"), + + CLOUD_JOB_LOG_DOWNLOADED("CLOUD_JOB_LOG_DOWNLOADED"), + + INDEX_MAINTENANCE_STARTED("INDEX_MAINTENANCE_STARTED"), + + INDEX_MAINTENANCE_COMPLETED("INDEX_MAINTENANCE_COMPLETED"), + + FULL_REINDEX_STARTED("FULL_REINDEX_STARTED"), + + FULL_REINDEX_COMPLETED("FULL_REINDEX_COMPLETED"), + + INDEX_NEW_ISSUES_STARTED("INDEX_NEW_ISSUES_STARTED"), + + INDEX_NEW_ISSUES_COMPLETED("INDEX_NEW_ISSUES_COMPLETED"), + + SSC_CONFIGURATION_UPDATED("SSC_CONFIGURATION_UPDATED"), + + LDAP_CONFIG_CREATED("LDAP_CONFIG_CREATED"), + + LDAP_CONFIG_UPDATED("LDAP_CONFIG_UPDATED"), + + LDAP_CONFIG_DELETED("LDAP_CONFIG_DELETED"), + + LDAP_CONFIG_DEFAULT_CHANGED("LDAP_CONFIG_DEFAULT_CHANGED"), + + SEED_BUNDLE_UPLOAD_COMPLETED("SEED_BUNDLE_UPLOAD_COMPLETED"), + + SEED_BUNDLE_UPLOAD_FAILED("SEED_BUNDLE_UPLOAD_FAILED"), + + SEED_BUNDLE_COMPLETED("SEED_BUNDLE_COMPLETED"), + + SEED_BUNDLE_FAILED("SEED_BUNDLE_FAILED"); + + private String value; + + EventTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EventTypeEnum fromValue(String text) { + for (EventTypeEnum b : EventTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EventTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EventTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EventTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("eventType") + private EventTypeEnum eventType = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("userName") + private String userName = null; + + /** + * Get detailedNote + * @return detailedNote + **/ + @ApiModelProperty(value = "") + public String getDetailedNote() { + return detailedNote; + } + + /** + * Get entityId + * @return entityId + **/ + @ApiModelProperty(value = "") + public Long getEntityId() { + return entityId; + } + + /** + * Get eventDate + * @return eventDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getEventDate() { + return eventDate; + } + + /** + * Get eventType + * @return eventType + **/ + @ApiModelProperty(value = "") + public EventTypeEnum getEventType() { + return eventType; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventLog eventLog = (EventLog) o; + return Objects.equals(this.detailedNote, eventLog.detailedNote) && + Objects.equals(this.entityId, eventLog.entityId) && + Objects.equals(this.eventDate, eventLog.eventDate) && + Objects.equals(this.eventType, eventLog.eventType) && + Objects.equals(this.id, eventLog.id) && + Objects.equals(this.projectVersionId, eventLog.projectVersionId) && + Objects.equals(this.userName, eventLog.userName); + } + + @Override + public int hashCode() { + return Objects.hash(detailedNote, entityId, eventDate, eventType, id, projectVersionId, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventLog {\n"); + + sb.append(" detailedNote: ").append(toIndentedString(detailedNote)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" eventDate: ").append(toIndentedString(eventDate)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ExportAuditToCSVRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ExportAuditToCSVRequest.java new file mode 100644 index 0000000..79bb82d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ExportAuditToCSVRequest.java @@ -0,0 +1,508 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of exporting audit information to CSV file + */ +@ApiModel(description = "Request of exporting audit information to CSV file") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ExportAuditToCSVRequest { + @SerializedName("aggregateBy") + private String aggregateBy = null; + + @SerializedName("collapseIssues") + private Boolean collapseIssues = null; + + @SerializedName("datasetName") + private String datasetName = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("filter") + private String filter = null; + + @SerializedName("filterBy") + private String filterBy = null; + + @SerializedName("filterSet") + private String filterSet = null; + + @SerializedName("includeCommentsInHistory") + private Boolean includeCommentsInHistory = null; + + @SerializedName("includeHidden") + private Boolean includeHidden = null; + + @SerializedName("includeRemoved") + private Boolean includeRemoved = null; + + @SerializedName("includeSuppressed") + private Boolean includeSuppressed = null; + + @SerializedName("issueSearch") + private String issueSearch = null; + + @SerializedName("limit") + private Integer limit = null; + + @SerializedName("note") + private String note = null; + + @SerializedName("orderBy") + private String orderBy = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("restrictToUsersIssues") + private Boolean restrictToUsersIssues = null; + + @SerializedName("start") + private Integer start = null; + + @SerializedName("useShortFileNames") + private Boolean useShortFileNames = null; + + public ExportAuditToCSVRequest aggregateBy(String aggregateBy) { + this.aggregateBy = aggregateBy; + return this; + } + + /** + * Aggregateby + * @return aggregateBy + **/ + @ApiModelProperty(value = "Aggregateby") + public String getAggregateBy() { + return aggregateBy; + } + + public void setAggregateBy(String aggregateBy) { + this.aggregateBy = aggregateBy; + } + + public ExportAuditToCSVRequest collapseIssues(Boolean collapseIssues) { + this.collapseIssues = collapseIssues; + return this; + } + + /** + * Will collapse issues in exported files + * @return collapseIssues + **/ + @ApiModelProperty(example = "false", value = "Will collapse issues in exported files") + public Boolean isCollapseIssues() { + return collapseIssues; + } + + public void setCollapseIssues(Boolean collapseIssues) { + this.collapseIssues = collapseIssues; + } + + public ExportAuditToCSVRequest datasetName(String datasetName) { + this.datasetName = datasetName; + return this; + } + + /** + * Dataset name (Audit) + * @return datasetName + **/ + @ApiModelProperty(required = true, value = "Dataset name (Audit)") + public String getDatasetName() { + return datasetName; + } + + public void setDatasetName(String datasetName) { + this.datasetName = datasetName; + } + + public ExportAuditToCSVRequest fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * File name to save + * @return fileName + **/ + @ApiModelProperty(required = true, value = "File name to save") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public ExportAuditToCSVRequest filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Filter + * @return filter + **/ + @ApiModelProperty(value = "Filter") + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public ExportAuditToCSVRequest filterBy(String filterBy) { + this.filterBy = filterBy; + return this; + } + + /** + * Filterby + * @return filterBy + **/ + @ApiModelProperty(value = "Filterby") + public String getFilterBy() { + return filterBy; + } + + public void setFilterBy(String filterBy) { + this.filterBy = filterBy; + } + + public ExportAuditToCSVRequest filterSet(String filterSet) { + this.filterSet = filterSet; + return this; + } + + /** + * Filterset + * @return filterSet + **/ + @ApiModelProperty(required = true, value = "Filterset") + public String getFilterSet() { + return filterSet; + } + + public void setFilterSet(String filterSet) { + this.filterSet = filterSet; + } + + public ExportAuditToCSVRequest includeCommentsInHistory(Boolean includeCommentsInHistory) { + this.includeCommentsInHistory = includeCommentsInHistory; + return this; + } + + /** + * Will include comments in history + * @return includeCommentsInHistory + **/ + @ApiModelProperty(example = "false", value = "Will include comments in history") + public Boolean isIncludeCommentsInHistory() { + return includeCommentsInHistory; + } + + public void setIncludeCommentsInHistory(Boolean includeCommentsInHistory) { + this.includeCommentsInHistory = includeCommentsInHistory; + } + + public ExportAuditToCSVRequest includeHidden(Boolean includeHidden) { + this.includeHidden = includeHidden; + return this; + } + + /** + * Will include hidden issues + * @return includeHidden + **/ + @ApiModelProperty(example = "false", value = "Will include hidden issues") + public Boolean isIncludeHidden() { + return includeHidden; + } + + public void setIncludeHidden(Boolean includeHidden) { + this.includeHidden = includeHidden; + } + + public ExportAuditToCSVRequest includeRemoved(Boolean includeRemoved) { + this.includeRemoved = includeRemoved; + return this; + } + + /** + * Will include removed issues + * @return includeRemoved + **/ + @ApiModelProperty(example = "false", value = "Will include removed issues") + public Boolean isIncludeRemoved() { + return includeRemoved; + } + + public void setIncludeRemoved(Boolean includeRemoved) { + this.includeRemoved = includeRemoved; + } + + public ExportAuditToCSVRequest includeSuppressed(Boolean includeSuppressed) { + this.includeSuppressed = includeSuppressed; + return this; + } + + /** + * Will include suppressed issues + * @return includeSuppressed + **/ + @ApiModelProperty(example = "false", value = "Will include suppressed issues") + public Boolean isIncludeSuppressed() { + return includeSuppressed; + } + + public void setIncludeSuppressed(Boolean includeSuppressed) { + this.includeSuppressed = includeSuppressed; + } + + public ExportAuditToCSVRequest issueSearch(String issueSearch) { + this.issueSearch = issueSearch; + return this; + } + + /** + * Search issue query + * @return issueSearch + **/ + @ApiModelProperty(value = "Search issue query") + public String getIssueSearch() { + return issueSearch; + } + + public void setIssueSearch(String issueSearch) { + this.issueSearch = issueSearch; + } + + public ExportAuditToCSVRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Limit + * @return limit + **/ + @ApiModelProperty(value = "Limit") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ExportAuditToCSVRequest note(String note) { + this.note = note; + return this; + } + + /** + * Note + * @return note + **/ + @ApiModelProperty(value = "Note") + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public ExportAuditToCSVRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Orderby + * @return orderBy + **/ + @ApiModelProperty(required = true, value = "Orderby") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ExportAuditToCSVRequest projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * ProjectVersion id to export audit data + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "ProjectVersion id to export audit data") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public ExportAuditToCSVRequest restrictToUsersIssues(Boolean restrictToUsersIssues) { + this.restrictToUsersIssues = restrictToUsersIssues; + return this; + } + + /** + * will restrict to user issues + * @return restrictToUsersIssues + **/ + @ApiModelProperty(example = "false", value = "will restrict to user issues") + public Boolean isRestrictToUsersIssues() { + return restrictToUsersIssues; + } + + public void setRestrictToUsersIssues(Boolean restrictToUsersIssues) { + this.restrictToUsersIssues = restrictToUsersIssues; + } + + public ExportAuditToCSVRequest start(Integer start) { + this.start = start; + return this; + } + + /** + * Start + * @return start + **/ + @ApiModelProperty(value = "Start") + public Integer getStart() { + return start; + } + + public void setStart(Integer start) { + this.start = start; + } + + public ExportAuditToCSVRequest useShortFileNames(Boolean useShortFileNames) { + this.useShortFileNames = useShortFileNames; + return this; + } + + /** + * Will use short file names + * @return useShortFileNames + **/ + @ApiModelProperty(example = "false", value = "Will use short file names") + public Boolean isUseShortFileNames() { + return useShortFileNames; + } + + public void setUseShortFileNames(Boolean useShortFileNames) { + this.useShortFileNames = useShortFileNames; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportAuditToCSVRequest exportAuditToCSVRequest = (ExportAuditToCSVRequest) o; + return Objects.equals(this.aggregateBy, exportAuditToCSVRequest.aggregateBy) && + Objects.equals(this.collapseIssues, exportAuditToCSVRequest.collapseIssues) && + Objects.equals(this.datasetName, exportAuditToCSVRequest.datasetName) && + Objects.equals(this.fileName, exportAuditToCSVRequest.fileName) && + Objects.equals(this.filter, exportAuditToCSVRequest.filter) && + Objects.equals(this.filterBy, exportAuditToCSVRequest.filterBy) && + Objects.equals(this.filterSet, exportAuditToCSVRequest.filterSet) && + Objects.equals(this.includeCommentsInHistory, exportAuditToCSVRequest.includeCommentsInHistory) && + Objects.equals(this.includeHidden, exportAuditToCSVRequest.includeHidden) && + Objects.equals(this.includeRemoved, exportAuditToCSVRequest.includeRemoved) && + Objects.equals(this.includeSuppressed, exportAuditToCSVRequest.includeSuppressed) && + Objects.equals(this.issueSearch, exportAuditToCSVRequest.issueSearch) && + Objects.equals(this.limit, exportAuditToCSVRequest.limit) && + Objects.equals(this.note, exportAuditToCSVRequest.note) && + Objects.equals(this.orderBy, exportAuditToCSVRequest.orderBy) && + Objects.equals(this.projectVersionId, exportAuditToCSVRequest.projectVersionId) && + Objects.equals(this.restrictToUsersIssues, exportAuditToCSVRequest.restrictToUsersIssues) && + Objects.equals(this.start, exportAuditToCSVRequest.start) && + Objects.equals(this.useShortFileNames, exportAuditToCSVRequest.useShortFileNames); + } + + @Override + public int hashCode() { + return Objects.hash(aggregateBy, collapseIssues, datasetName, fileName, filter, filterBy, filterSet, includeCommentsInHistory, includeHidden, includeRemoved, includeSuppressed, issueSearch, limit, note, orderBy, projectVersionId, restrictToUsersIssues, start, useShortFileNames); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportAuditToCSVRequest {\n"); + + sb.append(" aggregateBy: ").append(toIndentedString(aggregateBy)).append("\n"); + sb.append(" collapseIssues: ").append(toIndentedString(collapseIssues)).append("\n"); + sb.append(" datasetName: ").append(toIndentedString(datasetName)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" filterBy: ").append(toIndentedString(filterBy)).append("\n"); + sb.append(" filterSet: ").append(toIndentedString(filterSet)).append("\n"); + sb.append(" includeCommentsInHistory: ").append(toIndentedString(includeCommentsInHistory)).append("\n"); + sb.append(" includeHidden: ").append(toIndentedString(includeHidden)).append("\n"); + sb.append(" includeRemoved: ").append(toIndentedString(includeRemoved)).append("\n"); + sb.append(" includeSuppressed: ").append(toIndentedString(includeSuppressed)).append("\n"); + sb.append(" issueSearch: ").append(toIndentedString(issueSearch)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" restrictToUsersIssues: ").append(toIndentedString(restrictToUsersIssues)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" useShortFileNames: ").append(toIndentedString(useShortFileNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ExportIssueStatsToCSVRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ExportIssueStatsToCSVRequest.java new file mode 100644 index 0000000..8c7d5c5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ExportIssueStatsToCSVRequest.java @@ -0,0 +1,186 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of exporting issue stats to CSV file + */ +@ApiModel(description = "Request of exporting issue stats to CSV file") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ExportIssueStatsToCSVRequest { + @SerializedName("datasetName") + private String datasetName = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("limit") + private Integer limit = null; + + @SerializedName("note") + private String note = null; + + @SerializedName("start") + private Integer start = null; + + public ExportIssueStatsToCSVRequest datasetName(String datasetName) { + this.datasetName = datasetName; + return this; + } + + /** + * Dataset name (Issue Stat) + * @return datasetName + **/ + @ApiModelProperty(required = true, value = "Dataset name (Issue Stat)") + public String getDatasetName() { + return datasetName; + } + + public void setDatasetName(String datasetName) { + this.datasetName = datasetName; + } + + public ExportIssueStatsToCSVRequest fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Csv file name + * @return fileName + **/ + @ApiModelProperty(required = true, value = "Csv file name") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public ExportIssueStatsToCSVRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Limit + * @return limit + **/ + @ApiModelProperty(value = "Limit") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ExportIssueStatsToCSVRequest note(String note) { + this.note = note; + return this; + } + + /** + * Note for csv export + * @return note + **/ + @ApiModelProperty(value = "Note for csv export") + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public ExportIssueStatsToCSVRequest start(Integer start) { + this.start = start; + return this; + } + + /** + * Start + * @return start + **/ + @ApiModelProperty(value = "Start") + public Integer getStart() { + return start; + } + + public void setStart(Integer start) { + this.start = start; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportIssueStatsToCSVRequest exportIssueStatsToCSVRequest = (ExportIssueStatsToCSVRequest) o; + return Objects.equals(this.datasetName, exportIssueStatsToCSVRequest.datasetName) && + Objects.equals(this.fileName, exportIssueStatsToCSVRequest.fileName) && + Objects.equals(this.limit, exportIssueStatsToCSVRequest.limit) && + Objects.equals(this.note, exportIssueStatsToCSVRequest.note) && + Objects.equals(this.start, exportIssueStatsToCSVRequest.start); + } + + @Override + public int hashCode() { + return Objects.hash(datasetName, fileName, limit, note, start); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportIssueStatsToCSVRequest {\n"); + + sb.append(" datasetName: ").append(toIndentedString(datasetName)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ExternalBugInfo.java b/src/main/java/com/fortify/ssc/restclient/model/ExternalBugInfo.java new file mode 100644 index 0000000..a2b3374 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ExternalBugInfo.java @@ -0,0 +1,193 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * External Bug Info DTO object + */ +@ApiModel(description = "External Bug Info DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ExternalBugInfo { + @SerializedName("externalBugDeepLink") + private String externalBugDeepLink = null; + + @SerializedName("externalBugId") + private String externalBugId = null; + + @SerializedName("fileBugForSelectAll") + private Boolean fileBugForSelectAll = null; + + @SerializedName("issueCount") + private Long issueCount = null; + + @SerializedName("issueInstanceIds") + private List issueInstanceIds = new ArrayList(); + + public ExternalBugInfo externalBugDeepLink(String externalBugDeepLink) { + this.externalBugDeepLink = externalBugDeepLink; + return this; + } + + /** + * Link to a bug the user can navigate to by clicking the link + * @return externalBugDeepLink + **/ + @ApiModelProperty(required = true, value = "Link to a bug the user can navigate to by clicking the link") + public String getExternalBugDeepLink() { + return externalBugDeepLink; + } + + public void setExternalBugDeepLink(String externalBugDeepLink) { + this.externalBugDeepLink = externalBugDeepLink; + } + + public ExternalBugInfo externalBugId(String externalBugId) { + this.externalBugId = externalBugId; + return this; + } + + /** + * ID of the bug + * @return externalBugId + **/ + @ApiModelProperty(required = true, value = "ID of the bug") + public String getExternalBugId() { + return externalBugId; + } + + public void setExternalBugId(String externalBugId) { + this.externalBugId = externalBugId; + } + + public ExternalBugInfo fileBugForSelectAll(Boolean fileBugForSelectAll) { + this.fileBugForSelectAll = fileBugForSelectAll; + return this; + } + + /** + * True if user wants to file a bug for all selected issues in UI + * @return fileBugForSelectAll + **/ + @ApiModelProperty(example = "false", required = true, value = "True if user wants to file a bug for all selected issues in UI") + public Boolean isFileBugForSelectAll() { + return fileBugForSelectAll; + } + + public void setFileBugForSelectAll(Boolean fileBugForSelectAll) { + this.fileBugForSelectAll = fileBugForSelectAll; + } + + public ExternalBugInfo issueCount(Long issueCount) { + this.issueCount = issueCount; + return this; + } + + /** + * Count of issues for which a bug is filed + * @return issueCount + **/ + @ApiModelProperty(required = true, value = "Count of issues for which a bug is filed") + public Long getIssueCount() { + return issueCount; + } + + public void setIssueCount(Long issueCount) { + this.issueCount = issueCount; + } + + public ExternalBugInfo issueInstanceIds(List issueInstanceIds) { + this.issueInstanceIds = issueInstanceIds; + return this; + } + + public ExternalBugInfo addIssueInstanceIdsItem(String issueInstanceIdsItem) { + this.issueInstanceIds.add(issueInstanceIdsItem); + return this; + } + + /** + * List of Issue Instance IDs + * @return issueInstanceIds + **/ + @ApiModelProperty(required = true, value = "List of Issue Instance IDs") + public List getIssueInstanceIds() { + return issueInstanceIds; + } + + public void setIssueInstanceIds(List issueInstanceIds) { + this.issueInstanceIds = issueInstanceIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalBugInfo externalBugInfo = (ExternalBugInfo) o; + return Objects.equals(this.externalBugDeepLink, externalBugInfo.externalBugDeepLink) && + Objects.equals(this.externalBugId, externalBugInfo.externalBugId) && + Objects.equals(this.fileBugForSelectAll, externalBugInfo.fileBugForSelectAll) && + Objects.equals(this.issueCount, externalBugInfo.issueCount) && + Objects.equals(this.issueInstanceIds, externalBugInfo.issueInstanceIds); + } + + @Override + public int hashCode() { + return Objects.hash(externalBugDeepLink, externalBugId, fileBugForSelectAll, issueCount, issueInstanceIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalBugInfo {\n"); + + sb.append(" externalBugDeepLink: ").append(toIndentedString(externalBugDeepLink)).append("\n"); + sb.append(" externalBugId: ").append(toIndentedString(externalBugId)).append("\n"); + sb.append(" fileBugForSelectAll: ").append(toIndentedString(fileBugForSelectAll)).append("\n"); + sb.append(" issueCount: ").append(toIndentedString(issueCount)).append("\n"); + sb.append(" issueInstanceIds: ").append(toIndentedString(issueInstanceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Feature.java b/src/main/java/com/fortify/ssc/restclient/model/Feature.java new file mode 100644 index 0000000..e7a6eb7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Feature.java @@ -0,0 +1,113 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * A feature that is available on the server instance + */ +@ApiModel(description = "A feature that is available on the server instance") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Feature { + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + /** + * Feature description + * @return description + **/ + @ApiModelProperty(required = true, value = "Feature description") + public String getDescription() { + return description; + } + + /** + * Feature id + * @return id + **/ + @ApiModelProperty(required = true, value = "Feature id") + public String getId() { + return id; + } + + /** + * Feature name + * @return name + **/ + @ApiModelProperty(required = true, value = "Feature name") + public String getName() { + return name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Feature feature = (Feature) o; + return Objects.equals(this.description, feature.description) && + Objects.equals(this.id, feature.id) && + Objects.equals(this.name, feature.name); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Feature {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/FileToken.java b/src/main/java/com/fortify/ssc/restclient/model/FileToken.java new file mode 100644 index 0000000..5cd1bd0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/FileToken.java @@ -0,0 +1,159 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Token to upload or download files + */ +@ApiModel(description = "Token to upload or download files") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class FileToken { + /** + * Type of single-use file token + */ + @JsonAdapter(FileTokenTypeEnum.Adapter.class) + public enum FileTokenTypeEnum { + UPLOAD("UPLOAD"), + + DOWNLOAD("DOWNLOAD"), + + PREVIEW_FILE("PREVIEW_FILE"), + + REPORT_FILE("REPORT_FILE"); + + private String value; + + FileTokenTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FileTokenTypeEnum fromValue(String text) { + for (FileTokenTypeEnum b : FileTokenTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FileTokenTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FileTokenTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FileTokenTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("fileTokenType") + private FileTokenTypeEnum fileTokenType = null; + + @SerializedName("token") + private String token = null; + + public FileToken fileTokenType(FileTokenTypeEnum fileTokenType) { + this.fileTokenType = fileTokenType; + return this; + } + + /** + * Type of single-use file token + * @return fileTokenType + **/ + @ApiModelProperty(example = "DOWNLOAD", required = true, value = "Type of single-use file token") + public FileTokenTypeEnum getFileTokenType() { + return fileTokenType; + } + + public void setFileTokenType(FileTokenTypeEnum fileTokenType) { + this.fileTokenType = fileTokenType; + } + + /** + * Value of single-use token to be used as the 'mat' URL parameter during a file operation + * @return token + **/ + @ApiModelProperty(value = "Value of single-use token to be used as the 'mat' URL parameter during a file operation") + public String getToken() { + return token; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileToken fileToken = (FileToken) o; + return Objects.equals(this.fileTokenType, fileToken.fileTokenType) && + Objects.equals(this.token, fileToken.token); + } + + @Override + public int hashCode() { + return Objects.hash(fileTokenType, token); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileToken {\n"); + + sb.append(" fileTokenType: ").append(toIndentedString(fileTokenType)).append("\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/FilterSet.java b/src/main/java/com/fortify/ssc/restclient/model/FilterSet.java new file mode 100644 index 0000000..a97c0a6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/FilterSet.java @@ -0,0 +1,158 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.FolderDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * basic info on a filter set (does not include filters) + */ +@ApiModel(description = "basic info on a filter set (does not include filters)") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class FilterSet { + @SerializedName("defaultFilterSet") + private Boolean defaultFilterSet = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("folders") + private List folders = new ArrayList(); + + @SerializedName("guid") + private String guid = null; + + @SerializedName("title") + private String title = null; + + /** + * whether this filter set is the default within its issue template + * @return defaultFilterSet + **/ + @ApiModelProperty(example = "false", required = true, value = "whether this filter set is the default within its issue template") + public Boolean isDefaultFilterSet() { + return defaultFilterSet; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(required = true, value = "") + public String getDescription() { + return description; + } + + public FilterSet folders(List folders) { + this.folders = folders; + return this; + } + + public FilterSet addFoldersItem(FolderDto foldersItem) { + this.folders.add(foldersItem); + return this; + } + + /** + * List of folders defined in filter set + * @return folders + **/ + @ApiModelProperty(required = true, value = "List of folders defined in filter set") + public List getFolders() { + return folders; + } + + public void setFolders(List folders) { + this.folders = folders; + } + + /** + * GUID of filter set + * @return guid + **/ + @ApiModelProperty(required = true, value = "GUID of filter set") + public String getGuid() { + return guid; + } + + /** + * name of filter set + * @return title + **/ + @ApiModelProperty(required = true, value = "name of filter set") + public String getTitle() { + return title; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FilterSet filterSet = (FilterSet) o; + return Objects.equals(this.defaultFilterSet, filterSet.defaultFilterSet) && + Objects.equals(this.description, filterSet.description) && + Objects.equals(this.folders, filterSet.folders) && + Objects.equals(this.guid, filterSet.guid) && + Objects.equals(this.title, filterSet.title); + } + + @Override + public int hashCode() { + return Objects.hash(defaultFilterSet, description, folders, guid, title); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FilterSet {\n"); + + sb.append(" defaultFilterSet: ").append(toIndentedString(defaultFilterSet)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" folders: ").append(toIndentedString(folders)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Folder.java b/src/main/java/com/fortify/ssc/restclient/model/Folder.java new file mode 100644 index 0000000..7624688 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Folder.java @@ -0,0 +1,182 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Folder + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Folder { + @SerializedName("color") + private String color = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("editable") + private Boolean editable = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("orderIndex") + private Integer orderIndex = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + /** + * Color that should be used to represent folder on UI + * @return color + **/ + @ApiModelProperty(value = "Color that should be used to represent folder on UI") + public String getColor() { + return color; + } + + /** + * Folder description + * @return description + **/ + @ApiModelProperty(value = "Folder description") + public String getDescription() { + return description; + } + + /** + * Is folder editable + * @return editable + **/ + @ApiModelProperty(example = "false", value = "Is folder editable") + public Boolean isEditable() { + return editable; + } + + /** + * Folder GUID. Guid is unique across all the folders defined for a project version + * @return guid + **/ + @ApiModelProperty(value = "Folder GUID. Guid is unique across all the folders defined for a project version") + public String getGuid() { + return guid; + } + + /** + * Folder id + * @return id + **/ + @ApiModelProperty(value = "Folder id") + public Long getId() { + return id; + } + + /** + * Folder name + * @return name + **/ + @ApiModelProperty(value = "Folder name") + public String getName() { + return name; + } + + /** + * Numeric value used for ordering folder from the most important to the least important + * @return orderIndex + **/ + @ApiModelProperty(value = "Numeric value used for ordering folder from the most important to the least important") + public Integer getOrderIndex() { + return orderIndex; + } + + /** + * ID of the project version for which folder is defined + * @return projectVersionId + **/ + @ApiModelProperty(value = "ID of the project version for which folder is defined") + public Long getProjectVersionId() { + return projectVersionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Folder folder = (Folder) o; + return Objects.equals(this.color, folder.color) && + Objects.equals(this.description, folder.description) && + Objects.equals(this.editable, folder.editable) && + Objects.equals(this.guid, folder.guid) && + Objects.equals(this.id, folder.id) && + Objects.equals(this.name, folder.name) && + Objects.equals(this.orderIndex, folder.orderIndex) && + Objects.equals(this.projectVersionId, folder.projectVersionId); + } + + @Override + public int hashCode() { + return Objects.hash(color, description, editable, guid, id, name, orderIndex, projectVersionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Folder {\n"); + + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" editable: ").append(toIndentedString(editable)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" orderIndex: ").append(toIndentedString(orderIndex)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/FolderDto.java b/src/main/java/com/fortify/ssc/restclient/model/FolderDto.java new file mode 100644 index 0000000..2ff1e54 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/FolderDto.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Issues folder. This is a readonly object, it cannot be created using SSC API. + */ +@ApiModel(description = "Issues folder. This is a readonly object, it cannot be created using SSC API.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class FolderDto { + @SerializedName("color") + private String color = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + /** + * Folder color. Folder will be marked by this color on UI + * @return color + **/ + @ApiModelProperty(value = "Folder color. Folder will be marked by this color on UI") + public String getColor() { + return color; + } + + /** + * Folder GUID. + * @return guid + **/ + @ApiModelProperty(value = "Folder GUID.") + public String getGuid() { + return guid; + } + + /** + * Unique identifier of the folder. + * @return id + **/ + @ApiModelProperty(value = "Unique identifier of the folder.") + public Long getId() { + return id; + } + + /** + * Folder unique name. + * @return name + **/ + @ApiModelProperty(value = "Folder unique name.") + public String getName() { + return name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FolderDto folderDto = (FolderDto) o; + return Objects.equals(this.color, folderDto.color) && + Objects.equals(this.guid, folderDto.guid) && + Objects.equals(this.id, folderDto.id) && + Objects.equals(this.name, folderDto.name); + } + + @Override + public int hashCode() { + return Objects.hash(color, guid, id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FolderDto {\n"); + + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/FortifyJob.java b/src/main/java/com/fortify/ssc/restclient/model/FortifyJob.java new file mode 100644 index 0000000..cf92806 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/FortifyJob.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Fortify job DTO object, carries less information than the main Job DTO. Used primarily for the snapshot refresh which be initiated by a non-admin user + */ +@ApiModel(description = "Fortify job DTO object, carries less information than the main Job DTO. Used primarily for the snapshot refresh which be initiated by a non-admin user") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class FortifyJob { + @SerializedName("id") + private String id = null; + + @SerializedName("invokingUserName") + private String invokingUserName = null; + + @SerializedName("jobState") + private Integer jobState = null; + + @SerializedName("jobType") + private Integer jobType = null; + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + public String getId() { + return id; + } + + /** + * SSC username which initiated the job + * @return invokingUserName + **/ + @ApiModelProperty(required = true, value = "SSC username which initiated the job") + public String getInvokingUserName() { + return invokingUserName; + } + + /** + * Get jobState + * @return jobState + **/ + @ApiModelProperty(example = "0=normal, 2=complete, 3=error", required = true, value = "") + public Integer getJobState() { + return jobState; + } + + /** + * Get jobType + * @return jobType + **/ + @ApiModelProperty(example = "20 represents HISTORICAL_SNAPSHOT job", required = true, value = "") + public Integer getJobType() { + return jobType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FortifyJob fortifyJob = (FortifyJob) o; + return Objects.equals(this.id, fortifyJob.id) && + Objects.equals(this.invokingUserName, fortifyJob.invokingUserName) && + Objects.equals(this.jobState, fortifyJob.jobState) && + Objects.equals(this.jobType, fortifyJob.jobType); + } + + @Override + public int hashCode() { + return Objects.hash(id, invokingUserName, jobState, jobType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FortifyJob {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" invokingUserName: ").append(toIndentedString(invokingUserName)).append("\n"); + sb.append(" jobState: ").append(toIndentedString(jobState)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IIDMigration.java b/src/main/java/com/fortify/ssc/restclient/model/IIDMigration.java new file mode 100644 index 0000000..3edc32e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IIDMigration.java @@ -0,0 +1,298 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IidMapping; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * IIDMigration + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IIDMigration { + @SerializedName("artifactId") + private Long artifactId = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("mappings") + private List mappings = null; + + @SerializedName("processingDate") + private OffsetDateTime processingDate = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + NONE("NONE"), + + SCHED_PROCESSING("SCHED_PROCESSING"), + + PROCESSING("PROCESSING"), + + PROCESS_COMPLETE("PROCESS_COMPLETE"), + + ERROR_PROCESSING("ERROR_PROCESSING"), + + REQUIRE_AUTH("REQUIRE_AUTH"), + + DELETING("DELETING"), + + ERROR_DELETING("ERROR_DELETING"), + + DELETED("DELETED"), + + PURGING("PURGING"), + + PURGED("PURGED"), + + ERROR_PURGING("ERROR_PURGING"), + + DISPATCH_ANALYSIS("DISPATCH_ANALYSIS"), + + DISPATCH_REAUDIT("DISPATCH_REAUDIT"), + + ERROR_DISPATCH("ERROR_DISPATCH"), + + QUEUED_ANALYSIS("QUEUED_ANALYSIS"), + + REQUEUED_ANALYSIS("REQUEUED_ANALYSIS"), + + ANALYZING("ANALYZING"), + + ANALYSIS_COMPLETE("ANALYSIS_COMPLETE"), + + ERROR_ANALYZING("ERROR_ANALYZING"), + + UNKNOWN("UNKNOWN"), + + AUDIT_FAILED("AUDIT_FAILED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + public IIDMigration artifactId(Long artifactId) { + this.artifactId = artifactId; + return this; + } + + /** + * Get artifactId + * @return artifactId + **/ + @ApiModelProperty(value = "") + public Long getArtifactId() { + return artifactId; + } + + public void setArtifactId(Long artifactId) { + this.artifactId = artifactId; + } + + /** + * IID migration id + * @return id + **/ + @ApiModelProperty(value = "IID migration id") + public Long getId() { + return id; + } + + public IIDMigration mappings(List mappings) { + this.mappings = mappings; + return this; + } + + public IIDMigration addMappingsItem(IidMapping mappingsItem) { + if (this.mappings == null) { + this.mappings = new ArrayList(); + } + this.mappings.add(mappingsItem); + return this; + } + + /** + * Get mappings + * @return mappings + **/ + @ApiModelProperty(value = "") + public List getMappings() { + return mappings; + } + + public void setMappings(List mappings) { + this.mappings = mappings; + } + + public IIDMigration processingDate(OffsetDateTime processingDate) { + this.processingDate = processingDate; + return this; + } + + /** + * Get processingDate + * @return processingDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getProcessingDate() { + return processingDate; + } + + public void setProcessingDate(OffsetDateTime processingDate) { + this.processingDate = processingDate; + } + + public IIDMigration projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public IIDMigration status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IIDMigration iiDMigration = (IIDMigration) o; + return Objects.equals(this.artifactId, iiDMigration.artifactId) && + Objects.equals(this.id, iiDMigration.id) && + Objects.equals(this.mappings, iiDMigration.mappings) && + Objects.equals(this.processingDate, iiDMigration.processingDate) && + Objects.equals(this.projectVersionId, iiDMigration.projectVersionId) && + Objects.equals(this.status, iiDMigration.status); + } + + @Override + public int hashCode() { + return Objects.hash(artifactId, id, mappings, processingDate, projectVersionId, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IIDMigration {\n"); + + sb.append(" artifactId: ").append(toIndentedString(artifactId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n"); + sb.append(" processingDate: ").append(toIndentedString(processingDate)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IidMapping.java b/src/main/java/com/fortify/ssc/restclient/model/IidMapping.java new file mode 100644 index 0000000..342efab --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IidMapping.java @@ -0,0 +1,116 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * IidMapping + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IidMapping { + @SerializedName("fromIid") + private String fromIid = null; + + @SerializedName("toIid") + private String toIid = null; + + public IidMapping fromIid(String fromIid) { + this.fromIid = fromIid; + return this; + } + + /** + * Get fromIid + * @return fromIid + **/ + @ApiModelProperty(value = "") + public String getFromIid() { + return fromIid; + } + + public void setFromIid(String fromIid) { + this.fromIid = fromIid; + } + + public IidMapping toIid(String toIid) { + this.toIid = toIid; + return this; + } + + /** + * Get toIid + * @return toIid + **/ + @ApiModelProperty(value = "") + public String getToIid() { + return toIid; + } + + public void setToIid(String toIid) { + this.toIid = toIid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IidMapping iidMapping = (IidMapping) o; + return Objects.equals(this.fromIid, iidMapping.fromIid) && + Objects.equals(this.toIid, iidMapping.toIid); + } + + @Override + public int hashCode() { + return Objects.hash(fromIid, toIid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IidMapping {\n"); + + sb.append(" fromIid: ").append(toIndentedString(fromIid)).append("\n"); + sb.append(" toIid: ").append(toIndentedString(toIid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/InputReportParameter.java b/src/main/java/com/fortify/ssc/restclient/model/InputReportParameter.java new file mode 100644 index 0000000..1b7bf92 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/InputReportParameter.java @@ -0,0 +1,230 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * InputReportParameter DTO object + */ +@ApiModel(description = "InputReportParameter DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class InputReportParameter { + @SerializedName("identifier") + private String identifier = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("paramValue") + private Object paramValue = null; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + SINGLE_PROJECT("SINGLE_PROJECT"), + + SINGLE_RUNTIME_APP("SINGLE_RUNTIME_APP"), + + SINGLE_SSA_PROJECT("SINGLE_SSA_PROJECT"), + + MULTI_PROJECT("MULTI_PROJECT"), + + MULTI_RUNTIME_APP("MULTI_RUNTIME_APP"), + + MULTI_SSA_PROJECT("MULTI_SSA_PROJECT"), + + PROJECT_ATTRIBUTE("PROJECT_ATTRIBUTE"), + + STRING("STRING"), + + BOOLEAN("BOOLEAN"), + + DATE("DATE"), + + SINGLE_SELECT_DEFAULT("SINGLE_SELECT_DEFAULT"), + + METADEF_GUID("METADEF_GUID"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + public InputReportParameter identifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Get identifier + * @return identifier + **/ + @ApiModelProperty(required = true, value = "") + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public InputReportParameter name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InputReportParameter paramValue(Object paramValue) { + this.paramValue = paramValue; + return this; + } + + /** + * Value of this parameter + * @return paramValue + **/ + @ApiModelProperty(required = true, value = "Value of this parameter") + public Object getParamValue() { + return paramValue; + } + + public void setParamValue(Object paramValue) { + this.paramValue = paramValue; + } + + public InputReportParameter type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InputReportParameter inputReportParameter = (InputReportParameter) o; + return Objects.equals(this.identifier, inputReportParameter.identifier) && + Objects.equals(this.name, inputReportParameter.name) && + Objects.equals(this.paramValue, inputReportParameter.paramValue) && + Objects.equals(this.type, inputReportParameter.type); + } + + @Override + public int hashCode() { + return Objects.hash(identifier, name, paramValue, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InputReportParameter {\n"); + + sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" paramValue: ").append(toIndentedString(paramValue)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/InputStream.java b/src/main/java/com/fortify/ssc/restclient/model/InputStream.java new file mode 100644 index 0000000..95d168a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/InputStream.java @@ -0,0 +1,62 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; + +/** + * InputStream + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class InputStream { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InputStream {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueActionResponse.java b/src/main/java/com/fortify/ssc/restclient/model/IssueActionResponse.java new file mode 100644 index 0000000..f069fa4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueActionResponse.java @@ -0,0 +1,105 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueAuditResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Result of issue audit action + */ +@ApiModel(description = "Result of issue audit action") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueActionResponse { + @SerializedName("data") + private List data = null; + + public IssueActionResponse data(List data) { + this.data = data; + return this; + } + + public IssueActionResponse addDataItem(IssueAuditResult dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Result of issue audit + * @return data + **/ + @ApiModelProperty(value = "Result of issue audit") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueActionResponse issueActionResponse = (IssueActionResponse) o; + return Objects.equals(this.data, issueActionResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueActionResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAgingDto.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingDto.java new file mode 100644 index 0000000..6a30141 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingDto.java @@ -0,0 +1,240 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Issue aging object contains application metrics. + */ +@ApiModel(description = "Issue aging object contains application metrics.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAgingDto { + @SerializedName("averageDaysToRemediate") + private Integer averageDaysToRemediate = null; + + @SerializedName("averageDaysToReview") + private Integer averageDaysToReview = null; + + @SerializedName("bugDensity") + private Double bugDensity = null; + + @SerializedName("filesScanned") + private Long filesScanned = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("issuesPendingReview") + private Long issuesPendingReview = null; + + @SerializedName("linesOfCode") + private Long linesOfCode = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("numberOfApplicationVersions") + private Integer numberOfApplicationVersions = null; + + @SerializedName("oldestScanDate") + private OffsetDateTime oldestScanDate = null; + + @SerializedName("openIssues") + private Long openIssues = null; + + @SerializedName("snapshotOutOfDate") + private Boolean snapshotOutOfDate = null; + + /** + * Average number of days to fix issues in application versions. + * @return averageDaysToRemediate + **/ + @ApiModelProperty(value = "Average number of days to fix issues in application versions.") + public Integer getAverageDaysToRemediate() { + return averageDaysToRemediate; + } + + /** + * Average number of days to review issues in application versions. + * @return averageDaysToReview + **/ + @ApiModelProperty(value = "Average number of days to review issues in application versions.") + public Integer getAverageDaysToReview() { + return averageDaysToReview; + } + + /** + * Bug density per 10 000 of scanned lines of code. + * @return bugDensity + **/ + @ApiModelProperty(value = "Bug density per 10 000 of scanned lines of code.") + public Double getBugDensity() { + return bugDensity; + } + + /** + * Number of files that were scanned in all application versions. + * @return filesScanned + **/ + @ApiModelProperty(value = "Number of files that were scanned in all application versions.") + public Long getFilesScanned() { + return filesScanned; + } + + /** + * This is dynamic attribute which value depend of the aggregation attribute. It can be application ID, application version ID or application version attribute GUID. + * @return id + **/ + @ApiModelProperty(value = "This is dynamic attribute which value depend of the aggregation attribute. It can be application ID, application version ID or application version attribute GUID.") + public String getId() { + return id; + } + + /** + * Number of issues that are pending review in all application versions. + * @return issuesPendingReview + **/ + @ApiModelProperty(value = "Number of issues that are pending review in all application versions.") + public Long getIssuesPendingReview() { + return issuesPendingReview; + } + + /** + * Number of lines of code that were scanned by scans which results are stored in the application versions. + * @return linesOfCode + **/ + @ApiModelProperty(value = "Number of lines of code that were scanned by scans which results are stored in the application versions.") + public Long getLinesOfCode() { + return linesOfCode; + } + + /** + * This is dynamic attribute which value depend of the aggregation attribute. It can be application name, application version name or application version attribute name. + * @return name + **/ + @ApiModelProperty(value = "This is dynamic attribute which value depend of the aggregation attribute. It can be application name, application version name or application version attribute name.") + public String getName() { + return name; + } + + /** + * Number of application versions in the application. + * @return numberOfApplicationVersions + **/ + @ApiModelProperty(value = "Number of application versions in the application.") + public Integer getNumberOfApplicationVersions() { + return numberOfApplicationVersions; + } + + /** + * Issue audites that have been done after this date have been taken into account for average days to review calculation. + * @return oldestScanDate + **/ + @ApiModelProperty(value = "Issue audites that have been done after this date have been taken into account for average days to review calculation.") + public OffsetDateTime getOldestScanDate() { + return oldestScanDate; + } + + /** + * Number of not remediated issues in all application versions. + * @return openIssues + **/ + @ApiModelProperty(value = "Number of not remediated issues in all application versions.") + public Long getOpenIssues() { + return openIssues; + } + + /** + * Flag that indicates that application metrics state was changed and it metrics are going to be recalculated. + * @return snapshotOutOfDate + **/ + @ApiModelProperty(example = "false", value = "Flag that indicates that application metrics state was changed and it metrics are going to be recalculated.") + public Boolean isSnapshotOutOfDate() { + return snapshotOutOfDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAgingDto issueAgingDto = (IssueAgingDto) o; + return Objects.equals(this.averageDaysToRemediate, issueAgingDto.averageDaysToRemediate) && + Objects.equals(this.averageDaysToReview, issueAgingDto.averageDaysToReview) && + Objects.equals(this.bugDensity, issueAgingDto.bugDensity) && + Objects.equals(this.filesScanned, issueAgingDto.filesScanned) && + Objects.equals(this.id, issueAgingDto.id) && + Objects.equals(this.issuesPendingReview, issueAgingDto.issuesPendingReview) && + Objects.equals(this.linesOfCode, issueAgingDto.linesOfCode) && + Objects.equals(this.name, issueAgingDto.name) && + Objects.equals(this.numberOfApplicationVersions, issueAgingDto.numberOfApplicationVersions) && + Objects.equals(this.oldestScanDate, issueAgingDto.oldestScanDate) && + Objects.equals(this.openIssues, issueAgingDto.openIssues) && + Objects.equals(this.snapshotOutOfDate, issueAgingDto.snapshotOutOfDate); + } + + @Override + public int hashCode() { + return Objects.hash(averageDaysToRemediate, averageDaysToReview, bugDensity, filesScanned, id, issuesPendingReview, linesOfCode, name, numberOfApplicationVersions, oldestScanDate, openIssues, snapshotOutOfDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAgingDto {\n"); + + sb.append(" averageDaysToRemediate: ").append(toIndentedString(averageDaysToRemediate)).append("\n"); + sb.append(" averageDaysToReview: ").append(toIndentedString(averageDaysToReview)).append("\n"); + sb.append(" bugDensity: ").append(toIndentedString(bugDensity)).append("\n"); + sb.append(" filesScanned: ").append(toIndentedString(filesScanned)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issuesPendingReview: ").append(toIndentedString(issuesPendingReview)).append("\n"); + sb.append(" linesOfCode: ").append(toIndentedString(linesOfCode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" numberOfApplicationVersions: ").append(toIndentedString(numberOfApplicationVersions)).append("\n"); + sb.append(" oldestScanDate: ").append(toIndentedString(oldestScanDate)).append("\n"); + sb.append(" openIssues: ").append(toIndentedString(openIssues)).append("\n"); + sb.append(" snapshotOutOfDate: ").append(toIndentedString(snapshotOutOfDate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAgingGroupDto.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingGroupDto.java new file mode 100644 index 0000000..7fcd920 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingGroupDto.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Issue aging group object contains definition of project version attribute that can be used for issue aging table grouping. + */ +@ApiModel(description = "Issue aging group object contains definition of project version attribute that can be used for issue aging table grouping.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAgingGroupDto { + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + /** + * ID of issue aging table grouping attribute. This ID should be passed to issue aging endpoint to return issue aging items that belongs only to this group + * @return id + **/ + @ApiModelProperty(required = true, value = "ID of issue aging table grouping attribute. This ID should be passed to issue aging endpoint to return issue aging items that belongs only to this group") + public String getId() { + return id; + } + + /** + * Name of the group to display it on UI. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the group to display it on UI.") + public String getName() { + return name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAgingGroupDto issueAgingGroupDto = (IssueAgingGroupDto) o; + return Objects.equals(this.id, issueAgingGroupDto.id) && + Objects.equals(this.name, issueAgingGroupDto.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAgingGroupDto {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAgingPortlet.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingPortlet.java new file mode 100644 index 0000000..e79f81c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAgingPortlet.java @@ -0,0 +1,278 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Issue aging portlet object contains application and issue metrics. + */ +@ApiModel(description = "Issue aging portlet object contains application and issue metrics.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAgingPortlet { + @SerializedName("applicationVersions") + private Integer applicationVersions = null; + + @SerializedName("averageDaysToRemediate") + private Integer averageDaysToRemediate = null; + + @SerializedName("averageDaysToReview") + private Integer averageDaysToReview = null; + + @SerializedName("filesScanned") + private Long filesScanned = null; + + @SerializedName("issuesPendingReview") + private Long issuesPendingReview = null; + + @SerializedName("issuesRemediated") + private Long issuesRemediated = null; + + @SerializedName("linesOfCode") + private Long linesOfCode = null; + + @SerializedName("openIssues") + private Long openIssues = null; + + @SerializedName("openIssuesReviewed") + private Long openIssuesReviewed = null; + + public IssueAgingPortlet applicationVersions(Integer applicationVersions) { + this.applicationVersions = applicationVersions; + return this; + } + + /** + * Get applicationVersions + * @return applicationVersions + **/ + @ApiModelProperty(value = "") + public Integer getApplicationVersions() { + return applicationVersions; + } + + public void setApplicationVersions(Integer applicationVersions) { + this.applicationVersions = applicationVersions; + } + + public IssueAgingPortlet averageDaysToRemediate(Integer averageDaysToRemediate) { + this.averageDaysToRemediate = averageDaysToRemediate; + return this; + } + + /** + * Get averageDaysToRemediate + * @return averageDaysToRemediate + **/ + @ApiModelProperty(value = "") + public Integer getAverageDaysToRemediate() { + return averageDaysToRemediate; + } + + public void setAverageDaysToRemediate(Integer averageDaysToRemediate) { + this.averageDaysToRemediate = averageDaysToRemediate; + } + + public IssueAgingPortlet averageDaysToReview(Integer averageDaysToReview) { + this.averageDaysToReview = averageDaysToReview; + return this; + } + + /** + * Get averageDaysToReview + * @return averageDaysToReview + **/ + @ApiModelProperty(value = "") + public Integer getAverageDaysToReview() { + return averageDaysToReview; + } + + public void setAverageDaysToReview(Integer averageDaysToReview) { + this.averageDaysToReview = averageDaysToReview; + } + + public IssueAgingPortlet filesScanned(Long filesScanned) { + this.filesScanned = filesScanned; + return this; + } + + /** + * Get filesScanned + * @return filesScanned + **/ + @ApiModelProperty(value = "") + public Long getFilesScanned() { + return filesScanned; + } + + public void setFilesScanned(Long filesScanned) { + this.filesScanned = filesScanned; + } + + public IssueAgingPortlet issuesPendingReview(Long issuesPendingReview) { + this.issuesPendingReview = issuesPendingReview; + return this; + } + + /** + * Get issuesPendingReview + * @return issuesPendingReview + **/ + @ApiModelProperty(value = "") + public Long getIssuesPendingReview() { + return issuesPendingReview; + } + + public void setIssuesPendingReview(Long issuesPendingReview) { + this.issuesPendingReview = issuesPendingReview; + } + + public IssueAgingPortlet issuesRemediated(Long issuesRemediated) { + this.issuesRemediated = issuesRemediated; + return this; + } + + /** + * Get issuesRemediated + * @return issuesRemediated + **/ + @ApiModelProperty(value = "") + public Long getIssuesRemediated() { + return issuesRemediated; + } + + public void setIssuesRemediated(Long issuesRemediated) { + this.issuesRemediated = issuesRemediated; + } + + public IssueAgingPortlet linesOfCode(Long linesOfCode) { + this.linesOfCode = linesOfCode; + return this; + } + + /** + * Get linesOfCode + * @return linesOfCode + **/ + @ApiModelProperty(value = "") + public Long getLinesOfCode() { + return linesOfCode; + } + + public void setLinesOfCode(Long linesOfCode) { + this.linesOfCode = linesOfCode; + } + + public IssueAgingPortlet openIssues(Long openIssues) { + this.openIssues = openIssues; + return this; + } + + /** + * Get openIssues + * @return openIssues + **/ + @ApiModelProperty(value = "") + public Long getOpenIssues() { + return openIssues; + } + + public void setOpenIssues(Long openIssues) { + this.openIssues = openIssues; + } + + public IssueAgingPortlet openIssuesReviewed(Long openIssuesReviewed) { + this.openIssuesReviewed = openIssuesReviewed; + return this; + } + + /** + * Get openIssuesReviewed + * @return openIssuesReviewed + **/ + @ApiModelProperty(value = "") + public Long getOpenIssuesReviewed() { + return openIssuesReviewed; + } + + public void setOpenIssuesReviewed(Long openIssuesReviewed) { + this.openIssuesReviewed = openIssuesReviewed; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAgingPortlet issueAgingPortlet = (IssueAgingPortlet) o; + return Objects.equals(this.applicationVersions, issueAgingPortlet.applicationVersions) && + Objects.equals(this.averageDaysToRemediate, issueAgingPortlet.averageDaysToRemediate) && + Objects.equals(this.averageDaysToReview, issueAgingPortlet.averageDaysToReview) && + Objects.equals(this.filesScanned, issueAgingPortlet.filesScanned) && + Objects.equals(this.issuesPendingReview, issueAgingPortlet.issuesPendingReview) && + Objects.equals(this.issuesRemediated, issueAgingPortlet.issuesRemediated) && + Objects.equals(this.linesOfCode, issueAgingPortlet.linesOfCode) && + Objects.equals(this.openIssues, issueAgingPortlet.openIssues) && + Objects.equals(this.openIssuesReviewed, issueAgingPortlet.openIssuesReviewed); + } + + @Override + public int hashCode() { + return Objects.hash(applicationVersions, averageDaysToRemediate, averageDaysToReview, filesScanned, issuesPendingReview, issuesRemediated, linesOfCode, openIssues, openIssuesReviewed); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAgingPortlet {\n"); + + sb.append(" applicationVersions: ").append(toIndentedString(applicationVersions)).append("\n"); + sb.append(" averageDaysToRemediate: ").append(toIndentedString(averageDaysToRemediate)).append("\n"); + sb.append(" averageDaysToReview: ").append(toIndentedString(averageDaysToReview)).append("\n"); + sb.append(" filesScanned: ").append(toIndentedString(filesScanned)).append("\n"); + sb.append(" issuesPendingReview: ").append(toIndentedString(issuesPendingReview)).append("\n"); + sb.append(" issuesRemediated: ").append(toIndentedString(issuesRemediated)).append("\n"); + sb.append(" linesOfCode: ").append(toIndentedString(linesOfCode)).append("\n"); + sb.append(" openIssues: ").append(toIndentedString(openIssues)).append("\n"); + sb.append(" openIssuesReviewed: ").append(toIndentedString(openIssuesReviewed)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAssignUserRequest.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAssignUserRequest.java new file mode 100644 index 0000000..401ba72 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAssignUserRequest.java @@ -0,0 +1,125 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EntityStateIdentifier; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of assigning user to the issues + */ +@ApiModel(description = "Request of assigning user to the issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAssignUserRequest { + @SerializedName("issues") + private List issues = new ArrayList(); + + @SerializedName("user") + private String user = null; + + public IssueAssignUserRequest issues(List issues) { + this.issues = issues; + return this; + } + + public IssueAssignUserRequest addIssuesItem(EntityStateIdentifier issuesItem) { + this.issues.add(issuesItem); + return this; + } + + /** + * Issues to audit + * @return issues + **/ + @ApiModelProperty(required = true, value = "Issues to audit") + public List getIssues() { + return issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + public IssueAssignUserRequest user(String user) { + this.user = user; + return this; + } + + /** + * Username to assign + * @return user + **/ + @ApiModelProperty(required = true, value = "Username to assign") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAssignUserRequest issueAssignUserRequest = (IssueAssignUserRequest) o; + return Objects.equals(this.issues, issueAssignUserRequest.issues) && + Objects.equals(this.user, issueAssignUserRequest.user); + } + + @Override + public int hashCode() { + return Objects.hash(issues, user); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAssignUserRequest {\n"); + + sb.append(" issues: ").append(toIndentedString(issues)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAssignment.java new file mode 100644 index 0000000..eabbbd7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAssignment.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * counts of issues assigned to user + */ +@ApiModel(description = "counts of issues assigned to user") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAssignment { + @SerializedName("issueCountAllProjectVer") + private Integer issueCountAllProjectVer = null; + + @SerializedName("issueCountCertainProjectVer") + private Integer issueCountCertainProjectVer = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("userName") + private String userName = null; + + /** + * total number of issues assigned to user across all project versions + * @return issueCountAllProjectVer + **/ + @ApiModelProperty(required = true, value = "total number of issues assigned to user across all project versions") + public Integer getIssueCountAllProjectVer() { + return issueCountAllProjectVer; + } + + /** + * number of issues assigned to user in current project version + * @return issueCountCertainProjectVer + **/ + @ApiModelProperty(required = true, value = "number of issues assigned to user in current project version") + public Integer getIssueCountCertainProjectVer() { + return issueCountCertainProjectVer; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(required = true, value = "") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAssignment issueAssignment = (IssueAssignment) o; + return Objects.equals(this.issueCountAllProjectVer, issueAssignment.issueCountAllProjectVer) && + Objects.equals(this.issueCountCertainProjectVer, issueAssignment.issueCountCertainProjectVer) && + Objects.equals(this.projectVersionId, issueAssignment.projectVersionId) && + Objects.equals(this.userName, issueAssignment.userName); + } + + @Override + public int hashCode() { + return Objects.hash(issueCountAllProjectVer, issueCountCertainProjectVer, projectVersionId, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAssignment {\n"); + + sb.append(" issueCountAllProjectVer: ").append(toIndentedString(issueCountAllProjectVer)).append("\n"); + sb.append(" issueCountCertainProjectVer: ").append(toIndentedString(issueCountCertainProjectVer)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAttachment.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAttachment.java new file mode 100644 index 0000000..581fe1f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAttachment.java @@ -0,0 +1,174 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * attachment (such as screenshot) associated with issue + */ +@ApiModel(description = "attachment (such as screenshot) associated with issue") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAttachment { + @SerializedName("description") + private String description = null; + + @SerializedName("fileDocId") + private Long fileDocId = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("image") + private byte[] image = null; + + @SerializedName("originalFileName") + private String originalFileName = null; + + @SerializedName("updateTime") + private OffsetDateTime updateTime = null; + + /** + * Get description + * @return description + **/ + @ApiModelProperty(required = true, value = "") + public String getDescription() { + return description; + } + + /** + * document ID referencing the attachment + * @return fileDocId + **/ + @ApiModelProperty(required = true, value = "document ID referencing the attachment") + public Long getFileDocId() { + return fileDocId; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + public Long getId() { + return id; + } + + public IssueAttachment image(byte[] image) { + this.image = image; + return this; + } + + /** + * Get image + * @return image + **/ + @ApiModelProperty(value = "") + public byte[] getImage() { + return image; + } + + public void setImage(byte[] image) { + this.image = image; + } + + public IssueAttachment originalFileName(String originalFileName) { + this.originalFileName = originalFileName; + return this; + } + + /** + * Get originalFileName + * @return originalFileName + **/ + @ApiModelProperty(value = "") + public String getOriginalFileName() { + return originalFileName; + } + + public void setOriginalFileName(String originalFileName) { + this.originalFileName = originalFileName; + } + + /** + * Get updateTime + * @return updateTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAttachment issueAttachment = (IssueAttachment) o; + return Objects.equals(this.description, issueAttachment.description) && + Objects.equals(this.fileDocId, issueAttachment.fileDocId) && + Objects.equals(this.id, issueAttachment.id) && + Objects.equals(this.image, issueAttachment.image) && + Objects.equals(this.originalFileName, issueAttachment.originalFileName) && + Objects.equals(this.updateTime, issueAttachment.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(description, fileDocId, id, image, originalFileName, updateTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAttachment {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" fileDocId: ").append(toIndentedString(fileDocId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" originalFileName: ").append(toIndentedString(originalFileName)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAuditComment.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditComment.java new file mode 100644 index 0000000..015340c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditComment.java @@ -0,0 +1,212 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * An audit comment associated with an issue + */ +@ApiModel(description = "An audit comment associated with an issue") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAuditComment { + @SerializedName("auditTime") + private OffsetDateTime auditTime = null; + + @SerializedName("comment") + private String comment = null; + + @SerializedName("issueId") + private Long issueId = null; + + @SerializedName("issueInstanceId") + private String issueInstanceId = null; + + @SerializedName("issueName") + private String issueName = null; + + @SerializedName("projectName") + private String projectName = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("projectVersionName") + private String projectVersionName = null; + + @SerializedName("seqNumber") + private Integer seqNumber = null; + + @SerializedName("userName") + private String userName = null; + + /** + * Get auditTime + * @return auditTime + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getAuditTime() { + return auditTime; + } + + /** + * Get comment + * @return comment + **/ + @ApiModelProperty(required = true, value = "") + public String getComment() { + return comment; + } + + /** + * Get issueId + * @return issueId + **/ + @ApiModelProperty(required = true, value = "") + public Long getIssueId() { + return issueId; + } + + /** + * Get issueInstanceId + * @return issueInstanceId + **/ + @ApiModelProperty(value = "") + public String getIssueInstanceId() { + return issueInstanceId; + } + + /** + * Get issueName + * @return issueName + **/ + @ApiModelProperty(value = "") + public String getIssueName() { + return issueName; + } + + /** + * Get projectName + * @return projectName + **/ + @ApiModelProperty(value = "") + public String getProjectName() { + return projectName; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + /** + * Get projectVersionName + * @return projectVersionName + **/ + @ApiModelProperty(value = "") + public String getProjectVersionName() { + return projectVersionName; + } + + /** + * Get seqNumber + * @return seqNumber + **/ + @ApiModelProperty(required = true, value = "") + public Integer getSeqNumber() { + return seqNumber; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(required = true, value = "") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAuditComment issueAuditComment = (IssueAuditComment) o; + return Objects.equals(this.auditTime, issueAuditComment.auditTime) && + Objects.equals(this.comment, issueAuditComment.comment) && + Objects.equals(this.issueId, issueAuditComment.issueId) && + Objects.equals(this.issueInstanceId, issueAuditComment.issueInstanceId) && + Objects.equals(this.issueName, issueAuditComment.issueName) && + Objects.equals(this.projectName, issueAuditComment.projectName) && + Objects.equals(this.projectVersionId, issueAuditComment.projectVersionId) && + Objects.equals(this.projectVersionName, issueAuditComment.projectVersionName) && + Objects.equals(this.seqNumber, issueAuditComment.seqNumber) && + Objects.equals(this.userName, issueAuditComment.userName); + } + + @Override + public int hashCode() { + return Objects.hash(auditTime, comment, issueId, issueInstanceId, issueName, projectName, projectVersionId, projectVersionName, seqNumber, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAuditComment {\n"); + + sb.append(" auditTime: ").append(toIndentedString(auditTime)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" issueId: ").append(toIndentedString(issueId)).append("\n"); + sb.append(" issueInstanceId: ").append(toIndentedString(issueInstanceId)).append("\n"); + sb.append(" issueName: ").append(toIndentedString(issueName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" projectVersionName: ").append(toIndentedString(projectVersionName)).append("\n"); + sb.append(" seqNumber: ").append(toIndentedString(seqNumber)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAuditHistoryDto.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditHistoryDto.java new file mode 100644 index 0000000..5d52e02 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditHistoryDto.java @@ -0,0 +1,184 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Issue audit history record. + */ +@ApiModel(description = "Issue audit history record.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAuditHistoryDto { + @SerializedName("attributeName") + private String attributeName = null; + + @SerializedName("auditDateTime") + private OffsetDateTime auditDateTime = null; + + @SerializedName("conflict") + private Boolean conflict = null; + + @SerializedName("issueId") + private Long issueId = null; + + @SerializedName("newValue") + private String newValue = null; + + @SerializedName("oldValue") + private String oldValue = null; + + @SerializedName("sequenceNumber") + private Integer sequenceNumber = null; + + @SerializedName("userName") + private String userName = null; + + /** + * Changed attribute name. + * @return attributeName + **/ + @ApiModelProperty(required = true, value = "Changed attribute name.") + public String getAttributeName() { + return attributeName; + } + + /** + * Date and time when audit was performed. + * @return auditDateTime + **/ + @ApiModelProperty(required = true, value = "Date and time when audit was performed.") + public OffsetDateTime getAuditDateTime() { + return auditDateTime; + } + + /** + * Flag that indicates if there were any conflicts when audit information was merged. + * @return conflict + **/ + @ApiModelProperty(example = "false", required = true, value = "Flag that indicates if there were any conflicts when audit information was merged.") + public Boolean isConflict() { + return conflict; + } + + /** + * ID of the issue the history record belongs to + * @return issueId + **/ + @ApiModelProperty(required = true, value = "ID of the issue the history record belongs to") + public Long getIssueId() { + return issueId; + } + + /** + * Attribute value after audit. + * @return newValue + **/ + @ApiModelProperty(required = true, value = "Attribute value after audit.") + public String getNewValue() { + return newValue; + } + + /** + * Attribute value before audit. + * @return oldValue + **/ + @ApiModelProperty(required = true, value = "Attribute value before audit.") + public String getOldValue() { + return oldValue; + } + + /** + * Sequence number of the history record in the list of all audit history records for the issue. + * @return sequenceNumber + **/ + @ApiModelProperty(required = true, value = "Sequence number of the history record in the list of all audit history records for the issue.") + public Integer getSequenceNumber() { + return sequenceNumber; + } + + /** + * Name of the user who performed the audit. + * @return userName + **/ + @ApiModelProperty(required = true, value = "Name of the user who performed the audit.") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAuditHistoryDto issueAuditHistoryDto = (IssueAuditHistoryDto) o; + return Objects.equals(this.attributeName, issueAuditHistoryDto.attributeName) && + Objects.equals(this.auditDateTime, issueAuditHistoryDto.auditDateTime) && + Objects.equals(this.conflict, issueAuditHistoryDto.conflict) && + Objects.equals(this.issueId, issueAuditHistoryDto.issueId) && + Objects.equals(this.newValue, issueAuditHistoryDto.newValue) && + Objects.equals(this.oldValue, issueAuditHistoryDto.oldValue) && + Objects.equals(this.sequenceNumber, issueAuditHistoryDto.sequenceNumber) && + Objects.equals(this.userName, issueAuditHistoryDto.userName); + } + + @Override + public int hashCode() { + return Objects.hash(attributeName, auditDateTime, conflict, issueId, newValue, oldValue, sequenceNumber, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAuditHistoryDto {\n"); + + sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n"); + sb.append(" auditDateTime: ").append(toIndentedString(auditDateTime)).append("\n"); + sb.append(" conflict: ").append(toIndentedString(conflict)).append("\n"); + sb.append(" issueId: ").append(toIndentedString(issueId)).append("\n"); + sb.append(" newValue: ").append(toIndentedString(newValue)).append("\n"); + sb.append(" oldValue: ").append(toIndentedString(oldValue)).append("\n"); + sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAuditRequest.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditRequest.java new file mode 100644 index 0000000..1dbecef --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditRequest.java @@ -0,0 +1,203 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTag; +import com.fortify.ssc.restclient.model.EntityStateIdentifier; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of auditing issues + */ +@ApiModel(description = "Request of auditing issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAuditRequest { + @SerializedName("comment") + private String comment = null; + + @SerializedName("customTagAudit") + private List customTagAudit = null; + + @SerializedName("issues") + private List issues = new ArrayList(); + + @SerializedName("suppressed") + private Boolean suppressed = null; + + @SerializedName("user") + private String user = null; + + public IssueAuditRequest comment(String comment) { + this.comment = comment; + return this; + } + + /** + * Comment + * @return comment + **/ + @ApiModelProperty(value = "Comment") + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public IssueAuditRequest customTagAudit(List customTagAudit) { + this.customTagAudit = customTagAudit; + return this; + } + + public IssueAuditRequest addCustomTagAuditItem(CustomTag customTagAuditItem) { + if (this.customTagAudit == null) { + this.customTagAudit = new ArrayList(); + } + this.customTagAudit.add(customTagAuditItem); + return this; + } + + /** + * Custom tag values that are set for the issue. + * @return customTagAudit + **/ + @ApiModelProperty(value = "Custom tag values that are set for the issue.") + public List getCustomTagAudit() { + return customTagAudit; + } + + public void setCustomTagAudit(List customTagAudit) { + this.customTagAudit = customTagAudit; + } + + public IssueAuditRequest issues(List issues) { + this.issues = issues; + return this; + } + + public IssueAuditRequest addIssuesItem(EntityStateIdentifier issuesItem) { + this.issues.add(issuesItem); + return this; + } + + /** + * Issues to audit + * @return issues + **/ + @ApiModelProperty(required = true, value = "Issues to audit") + public List getIssues() { + return issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + public IssueAuditRequest suppressed(Boolean suppressed) { + this.suppressed = suppressed; + return this; + } + + /** + * Will suppress the issue + * @return suppressed + **/ + @ApiModelProperty(example = "false", value = "Will suppress the issue") + public Boolean isSuppressed() { + return suppressed; + } + + public void setSuppressed(Boolean suppressed) { + this.suppressed = suppressed; + } + + public IssueAuditRequest user(String user) { + this.user = user; + return this; + } + + /** + * Username to assign + * @return user + **/ + @ApiModelProperty(value = "Username to assign") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAuditRequest issueAuditRequest = (IssueAuditRequest) o; + return Objects.equals(this.comment, issueAuditRequest.comment) && + Objects.equals(this.customTagAudit, issueAuditRequest.customTagAudit) && + Objects.equals(this.issues, issueAuditRequest.issues) && + Objects.equals(this.suppressed, issueAuditRequest.suppressed) && + Objects.equals(this.user, issueAuditRequest.user); + } + + @Override + public int hashCode() { + return Objects.hash(comment, customTagAudit, issues, suppressed, user); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAuditRequest {\n"); + + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" customTagAudit: ").append(toIndentedString(customTagAudit)).append("\n"); + sb.append(" issues: ").append(toIndentedString(issues)).append("\n"); + sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueAuditResult.java b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditResult.java new file mode 100644 index 0000000..416b024 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueAuditResult.java @@ -0,0 +1,186 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTag; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Issue audit result contains the most rescent issue audit information after performing issue audit. + */ +@ApiModel(description = "Issue audit result contains the most rescent issue audit information after performing issue audit.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueAuditResult { + @SerializedName("customTagValues") + private List customTagValues = new ArrayList(); + + @SerializedName("id") + private Long id = null; + + @SerializedName("issueInstanceId") + private String issueInstanceId = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("revision") + private Integer revision = null; + + @SerializedName("suppressed") + private Boolean suppressed = null; + + @SerializedName("userName") + private String userName = null; + + public IssueAuditResult customTagValues(List customTagValues) { + this.customTagValues = customTagValues; + return this; + } + + public IssueAuditResult addCustomTagValuesItem(CustomTag customTagValuesItem) { + this.customTagValues.add(customTagValuesItem); + return this; + } + + /** + * Custom tag values that are set for the issue. + * @return customTagValues + **/ + @ApiModelProperty(required = true, value = "Custom tag values that are set for the issue.") + public List getCustomTagValues() { + return customTagValues; + } + + public void setCustomTagValues(List customTagValues) { + this.customTagValues = customTagValues; + } + + /** + * Audited issue ID. + * @return id + **/ + @ApiModelProperty(required = true, value = "Audited issue ID.") + public Long getId() { + return id; + } + + /** + * Issue instance ID. + * @return issueInstanceId + **/ + @ApiModelProperty(required = true, value = "Issue instance ID.") + public String getIssueInstanceId() { + return issueInstanceId; + } + + /** + * ID of the project version the audited issue belongs to. + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "ID of the project version the audited issue belongs to.") + public Long getProjectVersionId() { + return projectVersionId; + } + + /** + * Audited issue revision. + * @return revision + **/ + @ApiModelProperty(required = true, value = "Audited issue revision.") + public Integer getRevision() { + return revision; + } + + /** + * Is issue suppressed. + * @return suppressed + **/ + @ApiModelProperty(example = "false", required = true, value = "Is issue suppressed.") + public Boolean isSuppressed() { + return suppressed; + } + + /** + * User assigned to the audited issue. + * @return userName + **/ + @ApiModelProperty(required = true, value = "User assigned to the audited issue.") + public String getUserName() { + return userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueAuditResult issueAuditResult = (IssueAuditResult) o; + return Objects.equals(this.customTagValues, issueAuditResult.customTagValues) && + Objects.equals(this.id, issueAuditResult.id) && + Objects.equals(this.issueInstanceId, issueAuditResult.issueInstanceId) && + Objects.equals(this.projectVersionId, issueAuditResult.projectVersionId) && + Objects.equals(this.revision, issueAuditResult.revision) && + Objects.equals(this.suppressed, issueAuditResult.suppressed) && + Objects.equals(this.userName, issueAuditResult.userName); + } + + @Override + public int hashCode() { + return Objects.hash(customTagValues, id, issueInstanceId, projectVersionId, revision, suppressed, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueAuditResult {\n"); + + sb.append(" customTagValues: ").append(toIndentedString(customTagValues)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issueInstanceId: ").append(toIndentedString(issueInstanceId)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugRequest.java b/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugRequest.java new file mode 100644 index 0000000..cea7d4d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugRequest.java @@ -0,0 +1,181 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugParam; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of filing the bug from the issues + */ +@ApiModel(description = "Request of filing the bug from the issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueFileBugRequest { + @SerializedName("bugParams") + private List bugParams = new ArrayList(); + + @SerializedName("filterBy") + private List filterBy = new ArrayList(); + + @SerializedName("filterSet") + private String filterSet = null; + + @SerializedName("issueInstanceIds") + private List issueInstanceIds = new ArrayList(); + + public IssueFileBugRequest bugParams(List bugParams) { + this.bugParams = bugParams; + return this; + } + + public IssueFileBugRequest addBugParamsItem(BugParam bugParamsItem) { + this.bugParams.add(bugParamsItem); + return this; + } + + /** + * Bug param to file the bug + * @return bugParams + **/ + @ApiModelProperty(required = true, value = "Bug param to file the bug") + public List getBugParams() { + return bugParams; + } + + public void setBugParams(List bugParams) { + this.bugParams = bugParams; + } + + public IssueFileBugRequest filterBy(List filterBy) { + this.filterBy = filterBy; + return this; + } + + public IssueFileBugRequest addFilterByItem(String filterByItem) { + this.filterBy.add(filterByItem); + return this; + } + + /** + * Filter by property + * @return filterBy + **/ + @ApiModelProperty(required = true, value = "Filter by property") + public List getFilterBy() { + return filterBy; + } + + public void setFilterBy(List filterBy) { + this.filterBy = filterBy; + } + + public IssueFileBugRequest filterSet(String filterSet) { + this.filterSet = filterSet; + return this; + } + + /** + * Filterset + * @return filterSet + **/ + @ApiModelProperty(required = true, value = "Filterset") + public String getFilterSet() { + return filterSet; + } + + public void setFilterSet(String filterSet) { + this.filterSet = filterSet; + } + + public IssueFileBugRequest issueInstanceIds(List issueInstanceIds) { + this.issueInstanceIds = issueInstanceIds; + return this; + } + + public IssueFileBugRequest addIssueInstanceIdsItem(String issueInstanceIdsItem) { + this.issueInstanceIds.add(issueInstanceIdsItem); + return this; + } + + /** + * Instance id of issues that need to be filed as bugs + * @return issueInstanceIds + **/ + @ApiModelProperty(required = true, value = "Instance id of issues that need to be filed as bugs") + public List getIssueInstanceIds() { + return issueInstanceIds; + } + + public void setIssueInstanceIds(List issueInstanceIds) { + this.issueInstanceIds = issueInstanceIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueFileBugRequest issueFileBugRequest = (IssueFileBugRequest) o; + return Objects.equals(this.bugParams, issueFileBugRequest.bugParams) && + Objects.equals(this.filterBy, issueFileBugRequest.filterBy) && + Objects.equals(this.filterSet, issueFileBugRequest.filterSet) && + Objects.equals(this.issueInstanceIds, issueFileBugRequest.issueInstanceIds); + } + + @Override + public int hashCode() { + return Objects.hash(bugParams, filterBy, filterSet, issueInstanceIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueFileBugRequest {\n"); + + sb.append(" bugParams: ").append(toIndentedString(bugParams)).append("\n"); + sb.append(" filterBy: ").append(toIndentedString(filterBy)).append("\n"); + sb.append(" filterSet: ").append(toIndentedString(filterSet)).append("\n"); + sb.append(" issueInstanceIds: ").append(toIndentedString(issueInstanceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugResponse.java b/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugResponse.java new file mode 100644 index 0000000..91b458d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueFileBugResponse.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ExternalBugInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Result of field bug action + */ +@ApiModel(description = "Result of field bug action") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueFileBugResponse { + @SerializedName("data") + private ExternalBugInfo data = null; + + public IssueFileBugResponse data(ExternalBugInfo data) { + this.data = data; + return this; + } + + /** + * Filed bugs + * @return data + **/ + @ApiModelProperty(value = "Filed bugs") + public ExternalBugInfo getData() { + return data; + } + + public void setData(ExternalBugInfo data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueFileBugResponse issueFileBugResponse = (IssueFileBugResponse) o; + return Objects.equals(this.data, issueFileBugResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueFileBugResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelector.java b/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelector.java new file mode 100644 index 0000000..7b1793f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelector.java @@ -0,0 +1,292 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.SelectorOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * DTO object that holds the information about specific issue attribute that can be used for filtering issues list. + */ +@ApiModel(description = "DTO object that holds the information about specific issue attribute that can be used for filtering issues list.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueFilterSelector { + @SerializedName("description") + private String description = null; + + @SerializedName("displayName") + private String displayName = null; + + /** + * Type of the issue attriute that can be used for ordering or filtering. + */ + @JsonAdapter(EntityTypeEnum.Adapter.class) + public enum EntityTypeEnum { + UNDEFINED("UNDEFINED"), + + ISSUE("ISSUE"), + + EXTERNALLIST("EXTERNALLIST"), + + CUSTOMTAG("CUSTOMTAG"), + + HYBRIDTAG("HYBRIDTAG"), + + FOLDER("FOLDER"); + + private String value; + + EntityTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EntityTypeEnum fromValue(String text) { + for (EntityTypeEnum b : EntityTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EntityTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EntityTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("entityType") + private EntityTypeEnum entityType = null; + + /** + * If value of the selector can be chose from the list of predefined values, or if it can contain any value defined by user. + */ + @JsonAdapter(FilterSelectorTypeEnum.Adapter.class) + public enum FilterSelectorTypeEnum { + LIST("LIST"), + + DECIMAL("DECIMAL"), + + DATE("DATE"), + + TEXT("TEXT"); + + private String value; + + FilterSelectorTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FilterSelectorTypeEnum fromValue(String text) { + for (FilterSelectorTypeEnum b : FilterSelectorTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FilterSelectorTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FilterSelectorTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FilterSelectorTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("filterSelectorType") + private FilterSelectorTypeEnum filterSelectorType = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("selectorOptions") + private List selectorOptions = new ArrayList(); + + @SerializedName("value") + private String value = null; + + /** + * Selector set's description. + * @return description + **/ + @ApiModelProperty(required = true, value = "Selector set's description.") + public String getDescription() { + return description; + } + + /** + * Selector set's display name. + * @return displayName + **/ + @ApiModelProperty(required = true, value = "Selector set's display name.") + public String getDisplayName() { + return displayName; + } + + /** + * Type of the issue attriute that can be used for ordering or filtering. + * @return entityType + **/ + @ApiModelProperty(required = true, value = "Type of the issue attriute that can be used for ordering or filtering.") + public EntityTypeEnum getEntityType() { + return entityType; + } + + /** + * If value of the selector can be chose from the list of predefined values, or if it can contain any value defined by user. + * @return filterSelectorType + **/ + @ApiModelProperty(required = true, value = "If value of the selector can be chose from the list of predefined values, or if it can contain any value defined by user.") + public FilterSelectorTypeEnum getFilterSelectorType() { + return filterSelectorType; + } + + /** + * Selector set's GUID. + * @return guid + **/ + @ApiModelProperty(required = true, value = "Selector set's GUID.") + public String getGuid() { + return guid; + } + + public IssueFilterSelector selectorOptions(List selectorOptions) { + this.selectorOptions = selectorOptions; + return this; + } + + public IssueFilterSelector addSelectorOptionsItem(SelectorOption selectorOptionsItem) { + this.selectorOptions.add(selectorOptionsItem); + return this; + } + + /** + * Selector set's options. + * @return selectorOptions + **/ + @ApiModelProperty(required = true, value = "Selector set's options.") + public List getSelectorOptions() { + return selectorOptions; + } + + public void setSelectorOptions(List selectorOptions) { + this.selectorOptions = selectorOptions; + } + + /** + * Selector set's value that must be sent to backend when this option is selected. + * @return value + **/ + @ApiModelProperty(required = true, value = "Selector set's value that must be sent to backend when this option is selected.") + public String getValue() { + return value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueFilterSelector issueFilterSelector = (IssueFilterSelector) o; + return Objects.equals(this.description, issueFilterSelector.description) && + Objects.equals(this.displayName, issueFilterSelector.displayName) && + Objects.equals(this.entityType, issueFilterSelector.entityType) && + Objects.equals(this.filterSelectorType, issueFilterSelector.filterSelectorType) && + Objects.equals(this.guid, issueFilterSelector.guid) && + Objects.equals(this.selectorOptions, issueFilterSelector.selectorOptions) && + Objects.equals(this.value, issueFilterSelector.value); + } + + @Override + public int hashCode() { + return Objects.hash(description, displayName, entityType, filterSelectorType, guid, selectorOptions, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueFilterSelector {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" filterSelectorType: ").append(toIndentedString(filterSelectorType)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" selectorOptions: ").append(toIndentedString(selectorOptions)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelectorSet.java b/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelectorSet.java new file mode 100644 index 0000000..0ee51b8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueFilterSelectorSet.java @@ -0,0 +1,131 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.IssueFilterSelector; +import com.fortify.ssc.restclient.model.IssueSelector; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Composite object that holds information about issue attributes that can be used for issue list filtering and grouping. + */ +@ApiModel(description = "Composite object that holds information about issue attributes that can be used for issue list filtering and grouping.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueFilterSelectorSet { + @SerializedName("filterBySet") + private List filterBySet = new ArrayList(); + + @SerializedName("groupBySet") + private List groupBySet = new ArrayList(); + + public IssueFilterSelectorSet filterBySet(List filterBySet) { + this.filterBySet = filterBySet; + return this; + } + + public IssueFilterSelectorSet addFilterBySetItem(IssueFilterSelector filterBySetItem) { + this.filterBySet.add(filterBySetItem); + return this; + } + + /** + * List of all possible issues filterring attributes. + * @return filterBySet + **/ + @ApiModelProperty(required = true, value = "List of all possible issues filterring attributes.") + public List getFilterBySet() { + return filterBySet; + } + + public void setFilterBySet(List filterBySet) { + this.filterBySet = filterBySet; + } + + public IssueFilterSelectorSet groupBySet(List groupBySet) { + this.groupBySet = groupBySet; + return this; + } + + public IssueFilterSelectorSet addGroupBySetItem(IssueSelector groupBySetItem) { + this.groupBySet.add(groupBySetItem); + return this; + } + + /** + * List of all possible issues grouping attributes. + * @return groupBySet + **/ + @ApiModelProperty(required = true, value = "List of all possible issues grouping attributes.") + public List getGroupBySet() { + return groupBySet; + } + + public void setGroupBySet(List groupBySet) { + this.groupBySet = groupBySet; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueFilterSelectorSet issueFilterSelectorSet = (IssueFilterSelectorSet) o; + return Objects.equals(this.filterBySet, issueFilterSelectorSet.filterBySet) && + Objects.equals(this.groupBySet, issueFilterSelectorSet.groupBySet); + } + + @Override + public int hashCode() { + return Objects.hash(filterBySet, groupBySet); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueFilterSelectorSet {\n"); + + sb.append(" filterBySet: ").append(toIndentedString(filterBySet)).append("\n"); + sb.append(" groupBySet: ").append(toIndentedString(groupBySet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssuePrimaryTag.java b/src/main/java/com/fortify/ssc/restclient/model/IssuePrimaryTag.java new file mode 100644 index 0000000..1c62809 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssuePrimaryTag.java @@ -0,0 +1,163 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Store the information about issue primary custom tag + */ +@ApiModel(description = "Store the information about issue primary custom tag") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssuePrimaryTag { + @SerializedName("tagGuid") + private String tagGuid = null; + + @SerializedName("tagId") + private Long tagId = null; + + @SerializedName("tagName") + private String tagName = null; + + @SerializedName("tagValue") + private String tagValue = null; + + public IssuePrimaryTag tagGuid(String tagGuid) { + this.tagGuid = tagGuid; + return this; + } + + /** + * Get tagGuid + * @return tagGuid + **/ + @ApiModelProperty(value = "") + public String getTagGuid() { + return tagGuid; + } + + public void setTagGuid(String tagGuid) { + this.tagGuid = tagGuid; + } + + public IssuePrimaryTag tagId(Long tagId) { + this.tagId = tagId; + return this; + } + + /** + * Get tagId + * @return tagId + **/ + @ApiModelProperty(value = "") + public Long getTagId() { + return tagId; + } + + public void setTagId(Long tagId) { + this.tagId = tagId; + } + + public IssuePrimaryTag tagName(String tagName) { + this.tagName = tagName; + return this; + } + + /** + * Get tagName + * @return tagName + **/ + @ApiModelProperty(value = "") + public String getTagName() { + return tagName; + } + + public void setTagName(String tagName) { + this.tagName = tagName; + } + + public IssuePrimaryTag tagValue(String tagValue) { + this.tagValue = tagValue; + return this; + } + + /** + * Get tagValue + * @return tagValue + **/ + @ApiModelProperty(value = "") + public String getTagValue() { + return tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssuePrimaryTag issuePrimaryTag = (IssuePrimaryTag) o; + return Objects.equals(this.tagGuid, issuePrimaryTag.tagGuid) && + Objects.equals(this.tagId, issuePrimaryTag.tagId) && + Objects.equals(this.tagName, issuePrimaryTag.tagName) && + Objects.equals(this.tagValue, issuePrimaryTag.tagValue); + } + + @Override + public int hashCode() { + return Objects.hash(tagGuid, tagId, tagName, tagValue); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssuePrimaryTag {\n"); + + sb.append(" tagGuid: ").append(toIndentedString(tagGuid)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" tagValue: ").append(toIndentedString(tagValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueSearchOption.java b/src/main/java/com/fortify/ssc/restclient/model/IssueSearchOption.java new file mode 100644 index 0000000..94f4e44 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueSearchOption.java @@ -0,0 +1,152 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Options that can be used for customizing issue search result. + */ +@ApiModel(description = "Options that can be used for customizing issue search result.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueSearchOption { + /** + * Option type. + */ + @JsonAdapter(OptionTypeEnum.Adapter.class) + public enum OptionTypeEnum { + INCLUDE_COMMENTS_IN_HISTORY("INCLUDE_COMMENTS_IN_HISTORY"), + + HIDDEN("HIDDEN"), + + REMOVED("REMOVED"), + + SUPPRESSED("SUPPRESSED"), + + SHORT_FILE_NAMES("SHORT_FILE_NAMES"); + + private String value; + + OptionTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static OptionTypeEnum fromValue(String text) { + for (OptionTypeEnum b : OptionTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final OptionTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public OptionTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return OptionTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("optionType") + private OptionTypeEnum optionType = null; + + @SerializedName("optionValue") + private Boolean optionValue = null; + + /** + * Option type. + * @return optionType + **/ + @ApiModelProperty(value = "Option type.") + public OptionTypeEnum getOptionType() { + return optionType; + } + + /** + * If this option is enabled. + * @return optionValue + **/ + @ApiModelProperty(example = "false", required = true, value = "If this option is enabled.") + public Boolean isOptionValue() { + return optionValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueSearchOption issueSearchOption = (IssueSearchOption) o; + return Objects.equals(this.optionType, issueSearchOption.optionType) && + Objects.equals(this.optionValue, issueSearchOption.optionValue); + } + + @Override + public int hashCode() { + return Objects.hash(optionType, optionValue); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueSearchOption {\n"); + + sb.append(" optionType: ").append(toIndentedString(optionType)).append("\n"); + sb.append(" optionValue: ").append(toIndentedString(optionValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueSelector.java b/src/main/java/com/fortify/ssc/restclient/model/IssueSelector.java new file mode 100644 index 0000000..5cc4b41 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueSelector.java @@ -0,0 +1,241 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Issue selector DTO object + */ +@ApiModel(description = "Issue selector DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueSelector { + @SerializedName("description") + private String description = null; + + @SerializedName("displayName") + private String displayName = null; + + /** + * Issue selector entity type + */ + @JsonAdapter(EntityTypeEnum.Adapter.class) + public enum EntityTypeEnum { + UNDEFINED("UNDEFINED"), + + ISSUE("ISSUE"), + + EXTERNALLIST("EXTERNALLIST"), + + CUSTOMTAG("CUSTOMTAG"), + + HYBRIDTAG("HYBRIDTAG"), + + FOLDER("FOLDER"); + + private String value; + + EntityTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EntityTypeEnum fromValue(String text) { + for (EntityTypeEnum b : EntityTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EntityTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EntityTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("entityType") + private EntityTypeEnum entityType = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("value") + private String value = null; + + public IssueSelector description(String description) { + this.description = description; + return this; + } + + /** + * Description + * @return description + **/ + @ApiModelProperty(required = true, value = "Description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IssueSelector displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Display name for issue selector + * @return displayName + **/ + @ApiModelProperty(required = true, value = "Display name for issue selector") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public IssueSelector entityType(EntityTypeEnum entityType) { + this.entityType = entityType; + return this; + } + + /** + * Issue selector entity type + * @return entityType + **/ + @ApiModelProperty(required = true, value = "Issue selector entity type") + public EntityTypeEnum getEntityType() { + return entityType; + } + + public void setEntityType(EntityTypeEnum entityType) { + this.entityType = entityType; + } + + public IssueSelector guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Issue selector global unique identifier + * @return guid + **/ + @ApiModelProperty(required = true, value = "Issue selector global unique identifier") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public IssueSelector value(String value) { + this.value = value; + return this; + } + + /** + * Issue selector value + * @return value + **/ + @ApiModelProperty(required = true, value = "Issue selector value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueSelector issueSelector = (IssueSelector) o; + return Objects.equals(this.description, issueSelector.description) && + Objects.equals(this.displayName, issueSelector.displayName) && + Objects.equals(this.entityType, issueSelector.entityType) && + Objects.equals(this.guid, issueSelector.guid) && + Objects.equals(this.value, issueSelector.value); + } + + @Override + public int hashCode() { + return Objects.hash(description, displayName, entityType, guid, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueSelector {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueStatistics.java b/src/main/java/com/fortify/ssc/restclient/model/IssueStatistics.java new file mode 100644 index 0000000..e2d0ec6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueStatistics.java @@ -0,0 +1,228 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Issue Statistics DTO object + */ +@ApiModel(description = "Issue Statistics DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueStatistics { + @SerializedName("filterSetId") + private Long filterSetId = null; + + @SerializedName("hiddenCount") + private Integer hiddenCount = null; + + @SerializedName("hiddenDisplayableCount") + private Integer hiddenDisplayableCount = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("removedCount") + private Integer removedCount = null; + + @SerializedName("removedDisplayableCount") + private Integer removedDisplayableCount = null; + + @SerializedName("suppressedCount") + private Integer suppressedCount = null; + + @SerializedName("suppressedDisplayableCount") + private Integer suppressedDisplayableCount = null; + + public IssueStatistics filterSetId(Long filterSetId) { + this.filterSetId = filterSetId; + return this; + } + + /** + * Filter set identifier + * @return filterSetId + **/ + @ApiModelProperty(required = true, value = "Filter set identifier") + public Long getFilterSetId() { + return filterSetId; + } + + public void setFilterSetId(Long filterSetId) { + this.filterSetId = filterSetId; + } + + public IssueStatistics hiddenCount(Integer hiddenCount) { + this.hiddenCount = hiddenCount; + return this; + } + + /** + * Total number of hidden issues in the project version + * @return hiddenCount + **/ + @ApiModelProperty(required = true, value = "Total number of hidden issues in the project version") + public Integer getHiddenCount() { + return hiddenCount; + } + + public void setHiddenCount(Integer hiddenCount) { + this.hiddenCount = hiddenCount; + } + + /** + * Number of displayable hidden issues in the project version + * @return hiddenDisplayableCount + **/ + @ApiModelProperty(required = true, value = "Number of displayable hidden issues in the project version") + public Integer getHiddenDisplayableCount() { + return hiddenDisplayableCount; + } + + public IssueStatistics projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version identifier + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version identifier") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public IssueStatistics removedCount(Integer removedCount) { + this.removedCount = removedCount; + return this; + } + + /** + * Total number of removed issues + * @return removedCount + **/ + @ApiModelProperty(required = true, value = "Total number of removed issues ") + public Integer getRemovedCount() { + return removedCount; + } + + public void setRemovedCount(Integer removedCount) { + this.removedCount = removedCount; + } + + /** + * Number of displayable removed issues in the project version + * @return removedDisplayableCount + **/ + @ApiModelProperty(value = "Number of displayable removed issues in the project version") + public Integer getRemovedDisplayableCount() { + return removedDisplayableCount; + } + + public IssueStatistics suppressedCount(Integer suppressedCount) { + this.suppressedCount = suppressedCount; + return this; + } + + /** + * Total number of suppressed issues in the project version + * @return suppressedCount + **/ + @ApiModelProperty(required = true, value = "Total number of suppressed issues in the project version") + public Integer getSuppressedCount() { + return suppressedCount; + } + + public void setSuppressedCount(Integer suppressedCount) { + this.suppressedCount = suppressedCount; + } + + /** + * Number of displayable suppressed issues in the project version + * @return suppressedDisplayableCount + **/ + @ApiModelProperty(value = "Number of displayable suppressed issues in the project version") + public Integer getSuppressedDisplayableCount() { + return suppressedDisplayableCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueStatistics issueStatistics = (IssueStatistics) o; + return Objects.equals(this.filterSetId, issueStatistics.filterSetId) && + Objects.equals(this.hiddenCount, issueStatistics.hiddenCount) && + Objects.equals(this.hiddenDisplayableCount, issueStatistics.hiddenDisplayableCount) && + Objects.equals(this.projectVersionId, issueStatistics.projectVersionId) && + Objects.equals(this.removedCount, issueStatistics.removedCount) && + Objects.equals(this.removedDisplayableCount, issueStatistics.removedDisplayableCount) && + Objects.equals(this.suppressedCount, issueStatistics.suppressedCount) && + Objects.equals(this.suppressedDisplayableCount, issueStatistics.suppressedDisplayableCount); + } + + @Override + public int hashCode() { + return Objects.hash(filterSetId, hiddenCount, hiddenDisplayableCount, projectVersionId, removedCount, removedDisplayableCount, suppressedCount, suppressedDisplayableCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueStatistics {\n"); + + sb.append(" filterSetId: ").append(toIndentedString(filterSetId)).append("\n"); + sb.append(" hiddenCount: ").append(toIndentedString(hiddenCount)).append("\n"); + sb.append(" hiddenDisplayableCount: ").append(toIndentedString(hiddenDisplayableCount)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" removedCount: ").append(toIndentedString(removedCount)).append("\n"); + sb.append(" removedDisplayableCount: ").append(toIndentedString(removedDisplayableCount)).append("\n"); + sb.append(" suppressedCount: ").append(toIndentedString(suppressedCount)).append("\n"); + sb.append(" suppressedDisplayableCount: ").append(toIndentedString(suppressedDisplayableCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueSummary.java b/src/main/java/com/fortify/ssc/restclient/model/IssueSummary.java new file mode 100644 index 0000000..6b57f3f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueSummary.java @@ -0,0 +1,132 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Used to chart variable and performance indicators of project version's issues. + */ +@ApiModel(description = "Used to chart variable and performance indicators of project version's issues.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueSummary { + @SerializedName("name") + private String name = null; + + @SerializedName("series") + private List series = null; + + @SerializedName("totalIssueCount") + private Long totalIssueCount = null; + + /** + * Name + * @return name + **/ + @ApiModelProperty(value = "Name") + public String getName() { + return name; + } + + public IssueSummary series(List series) { + this.series = series; + return this; + } + + public IssueSummary addSeriesItem(Object seriesItem) { + if (this.series == null) { + this.series = new ArrayList(); + } + this.series.add(seriesItem); + return this; + } + + /** + * Get series + * @return series + **/ + @ApiModelProperty(value = "") + public List getSeries() { + return series; + } + + public void setSeries(List series) { + this.series = series; + } + + /** + * Get totalIssueCount + * @return totalIssueCount + **/ + @ApiModelProperty(value = "") + public Long getTotalIssueCount() { + return totalIssueCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueSummary issueSummary = (IssueSummary) o; + return Objects.equals(this.name, issueSummary.name) && + Objects.equals(this.series, issueSummary.series) && + Objects.equals(this.totalIssueCount, issueSummary.totalIssueCount); + } + + @Override + public int hashCode() { + return Objects.hash(name, series, totalIssueCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueSummary {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" series: ").append(toIndentedString(series)).append("\n"); + sb.append(" totalIssueCount: ").append(toIndentedString(totalIssueCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueSuppressRequest.java b/src/main/java/com/fortify/ssc/restclient/model/IssueSuppressRequest.java new file mode 100644 index 0000000..2bd4d27 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueSuppressRequest.java @@ -0,0 +1,125 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EntityStateIdentifier; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of suppressing issues + */ +@ApiModel(description = "Request of suppressing issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueSuppressRequest { + @SerializedName("issues") + private List issues = new ArrayList(); + + @SerializedName("suppressed") + private Boolean suppressed = null; + + public IssueSuppressRequest issues(List issues) { + this.issues = issues; + return this; + } + + public IssueSuppressRequest addIssuesItem(EntityStateIdentifier issuesItem) { + this.issues.add(issuesItem); + return this; + } + + /** + * Issues to suppress + * @return issues + **/ + @ApiModelProperty(required = true, value = "Issues to suppress") + public List getIssues() { + return issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + public IssueSuppressRequest suppressed(Boolean suppressed) { + this.suppressed = suppressed; + return this; + } + + /** + * Will suppress the issue + * @return suppressed + **/ + @ApiModelProperty(example = "false", required = true, value = "Will suppress the issue") + public Boolean isSuppressed() { + return suppressed; + } + + public void setSuppressed(Boolean suppressed) { + this.suppressed = suppressed; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueSuppressRequest issueSuppressRequest = (IssueSuppressRequest) o; + return Objects.equals(this.issues, issueSuppressRequest.issues) && + Objects.equals(this.suppressed, issueSuppressRequest.suppressed); + } + + @Override + public int hashCode() { + return Objects.hash(issues, suppressed); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueSuppressRequest {\n"); + + sb.append(" issues: ").append(toIndentedString(issues)).append("\n"); + sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/IssueTemplate.java new file mode 100644 index 0000000..a29d6f6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueTemplate.java @@ -0,0 +1,325 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Issue Template DTO object. + */ +@ApiModel(description = "Issue Template DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueTemplate { + @SerializedName("customTagIds") + private List customTagIds = null; + + @SerializedName("defaultTemplate") + private Boolean defaultTemplate = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("masterAttrGuid") + private String masterAttrGuid = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("obsolete") + private Boolean obsolete = null; + + @SerializedName("originalFileName") + private String originalFileName = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + public IssueTemplate customTagIds(List customTagIds) { + this.customTagIds = customTagIds; + return this; + } + + public IssueTemplate addCustomTagIdsItem(Long customTagIdsItem) { + if (this.customTagIds == null) { + this.customTagIds = new ArrayList(); + } + this.customTagIds.add(customTagIdsItem); + return this; + } + + /** + * Get customTagIds + * @return customTagIds + **/ + @ApiModelProperty(value = "") + public List getCustomTagIds() { + return customTagIds; + } + + public void setCustomTagIds(List customTagIds) { + this.customTagIds = customTagIds; + } + + public IssueTemplate defaultTemplate(Boolean defaultTemplate) { + this.defaultTemplate = defaultTemplate; + return this; + } + + /** + * Get defaultTemplate + * @return defaultTemplate + **/ + @ApiModelProperty(value = "") + public Boolean isDefaultTemplate() { + return defaultTemplate; + } + + public void setDefaultTemplate(Boolean defaultTemplate) { + this.defaultTemplate = defaultTemplate; + } + + public IssueTemplate description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Issue template id + * @return id + **/ + @ApiModelProperty(value = "Issue template id") + public String getId() { + return id; + } + + public IssueTemplate inUse(Boolean inUse) { + this.inUse = inUse; + return this; + } + + /** + * Is the template in use + * @return inUse + **/ + @ApiModelProperty(example = "false", value = "Is the template in use") + public Boolean isInUse() { + return inUse; + } + + public void setInUse(Boolean inUse) { + this.inUse = inUse; + } + + public IssueTemplate masterAttrGuid(String masterAttrGuid) { + this.masterAttrGuid = masterAttrGuid; + return this; + } + + /** + * Get masterAttrGuid + * @return masterAttrGuid + **/ + @ApiModelProperty(value = "") + public String getMasterAttrGuid() { + return masterAttrGuid; + } + + public void setMasterAttrGuid(String masterAttrGuid) { + this.masterAttrGuid = masterAttrGuid; + } + + public IssueTemplate name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IssueTemplate objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public IssueTemplate obsolete(Boolean obsolete) { + this.obsolete = obsolete; + return this; + } + + /** + * Get obsolete + * @return obsolete + **/ + @ApiModelProperty(value = "") + public Boolean isObsolete() { + return obsolete; + } + + public void setObsolete(Boolean obsolete) { + this.obsolete = obsolete; + } + + public IssueTemplate originalFileName(String originalFileName) { + this.originalFileName = originalFileName; + return this; + } + + /** + * Get originalFileName + * @return originalFileName + **/ + @ApiModelProperty(required = true, value = "") + public String getOriginalFileName() { + return originalFileName; + } + + public void setOriginalFileName(String originalFileName) { + this.originalFileName = originalFileName; + } + + public IssueTemplate publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueTemplate issueTemplate = (IssueTemplate) o; + return Objects.equals(this.customTagIds, issueTemplate.customTagIds) && + Objects.equals(this.defaultTemplate, issueTemplate.defaultTemplate) && + Objects.equals(this.description, issueTemplate.description) && + Objects.equals(this.id, issueTemplate.id) && + Objects.equals(this.inUse, issueTemplate.inUse) && + Objects.equals(this.masterAttrGuid, issueTemplate.masterAttrGuid) && + Objects.equals(this.name, issueTemplate.name) && + Objects.equals(this.objectVersion, issueTemplate.objectVersion) && + Objects.equals(this.obsolete, issueTemplate.obsolete) && + Objects.equals(this.originalFileName, issueTemplate.originalFileName) && + Objects.equals(this.publishVersion, issueTemplate.publishVersion); + } + + @Override + public int hashCode() { + return Objects.hash(customTagIds, defaultTemplate, description, id, inUse, masterAttrGuid, name, objectVersion, obsolete, originalFileName, publishVersion); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueTemplate {\n"); + + sb.append(" customTagIds: ").append(toIndentedString(customTagIds)).append("\n"); + sb.append(" defaultTemplate: ").append(toIndentedString(defaultTemplate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" masterAttrGuid: ").append(toIndentedString(masterAttrGuid)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" obsolete: ").append(toIndentedString(obsolete)).append("\n"); + sb.append(" originalFileName: ").append(toIndentedString(originalFileName)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueUpdateTagRequest.java b/src/main/java/com/fortify/ssc/restclient/model/IssueUpdateTagRequest.java new file mode 100644 index 0000000..121e9d4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueUpdateTagRequest.java @@ -0,0 +1,126 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CustomTag; +import com.fortify.ssc.restclient.model.EntityStateIdentifier; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of updating custom tag from the issues + */ +@ApiModel(description = "Request of updating custom tag from the issues") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueUpdateTagRequest { + @SerializedName("customTagAudit") + private CustomTag customTagAudit = null; + + @SerializedName("issues") + private List issues = new ArrayList(); + + public IssueUpdateTagRequest customTagAudit(CustomTag customTagAudit) { + this.customTagAudit = customTagAudit; + return this; + } + + /** + * Custom tag values that are set for the issue. + * @return customTagAudit + **/ + @ApiModelProperty(required = true, value = "Custom tag values that are set for the issue.") + public CustomTag getCustomTagAudit() { + return customTagAudit; + } + + public void setCustomTagAudit(CustomTag customTagAudit) { + this.customTagAudit = customTagAudit; + } + + public IssueUpdateTagRequest issues(List issues) { + this.issues = issues; + return this; + } + + public IssueUpdateTagRequest addIssuesItem(EntityStateIdentifier issuesItem) { + this.issues.add(issuesItem); + return this; + } + + /** + * Issues to audit + * @return issues + **/ + @ApiModelProperty(required = true, value = "Issues to audit") + public List getIssues() { + return issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueUpdateTagRequest issueUpdateTagRequest = (IssueUpdateTagRequest) o; + return Objects.equals(this.customTagAudit, issueUpdateTagRequest.customTagAudit) && + Objects.equals(this.issues, issueUpdateTagRequest.issues); + } + + @Override + public int hashCode() { + return Objects.hash(customTagAudit, issues); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueUpdateTagRequest {\n"); + + sb.append(" customTagAudit: ").append(toIndentedString(customTagAudit)).append("\n"); + sb.append(" issues: ").append(toIndentedString(issues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/IssueViewTemplate.java b/src/main/java/com/fortify/ssc/restclient/model/IssueViewTemplate.java new file mode 100644 index 0000000..f45ba75 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/IssueViewTemplate.java @@ -0,0 +1,234 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.TemplateItem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Issue view template DTO object. + */ +@ApiModel(description = "Issue view template DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class IssueViewTemplate { + @SerializedName("dataVersion") + private Long dataVersion = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("engineType") + private String engineType = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("metadataId") + private Long metadataId = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("templateData") + private List> templateData = null; + + public IssueViewTemplate dataVersion(Long dataVersion) { + this.dataVersion = dataVersion; + return this; + } + + /** + * Issue data version for which template is created. + * @return dataVersion + **/ + @ApiModelProperty(value = "Issue data version for which template is created.") + public Long getDataVersion() { + return dataVersion; + } + + public void setDataVersion(Long dataVersion) { + this.dataVersion = dataVersion; + } + + public IssueViewTemplate description(String description) { + this.description = description; + return this; + } + + /** + * Template description. + * @return description + **/ + @ApiModelProperty(value = "Template description.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IssueViewTemplate engineType(String engineType) { + this.engineType = engineType; + return this; + } + + /** + * Engine type for which template is created. + * @return engineType + **/ + @ApiModelProperty(value = "Engine type for which template is created.") + public String getEngineType() { + return engineType; + } + + public void setEngineType(String engineType) { + this.engineType = engineType; + } + + /** + * Unique identifier of the issue view template. + * @return id + **/ + @ApiModelProperty(value = "Unique identifier of the issue view template.") + public Long getId() { + return id; + } + + public IssueViewTemplate metadataId(Long metadataId) { + this.metadataId = metadataId; + return this; + } + + /** + * Id of the plugin meta data for which template is created. + * @return metadataId + **/ + @ApiModelProperty(value = "Id of the plugin meta data for which template is created.") + public Long getMetadataId() { + return metadataId; + } + + public void setMetadataId(Long metadataId) { + this.metadataId = metadataId; + } + + public IssueViewTemplate objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Object version. + * @return objectVersion + **/ + @ApiModelProperty(required = true, value = "Object version.") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public IssueViewTemplate templateData(List> templateData) { + this.templateData = templateData; + return this; + } + + public IssueViewTemplate addTemplateDataItem(List templateDataItem) { + if (this.templateData == null) { + this.templateData = new ArrayList>(); + } + this.templateData.add(templateDataItem); + return this; + } + + /** + * Actual template JSON data. + * @return templateData + **/ + @ApiModelProperty(value = "Actual template JSON data.") + public List> getTemplateData() { + return templateData; + } + + public void setTemplateData(List> templateData) { + this.templateData = templateData; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueViewTemplate issueViewTemplate = (IssueViewTemplate) o; + return Objects.equals(this.dataVersion, issueViewTemplate.dataVersion) && + Objects.equals(this.description, issueViewTemplate.description) && + Objects.equals(this.engineType, issueViewTemplate.engineType) && + Objects.equals(this.id, issueViewTemplate.id) && + Objects.equals(this.metadataId, issueViewTemplate.metadataId) && + Objects.equals(this.objectVersion, issueViewTemplate.objectVersion) && + Objects.equals(this.templateData, issueViewTemplate.templateData); + } + + @Override + public int hashCode() { + return Objects.hash(dataVersion, description, engineType, id, metadataId, objectVersion, templateData); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueViewTemplate {\n"); + + sb.append(" dataVersion: ").append(toIndentedString(dataVersion)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" engineType: ").append(toIndentedString(engineType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" metadataId: ").append(toIndentedString(metadataId)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" templateData: ").append(toIndentedString(templateData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Job.java b/src/main/java/com/fortify/ssc/restclient/model/Job.java new file mode 100644 index 0000000..5f4f29f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Job.java @@ -0,0 +1,463 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Job DTO object + */ +@ApiModel(description = "Job DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Job { + @SerializedName("artifactName") + private String artifactName = null; + + @SerializedName("cancellable") + private Boolean cancellable = null; + + @SerializedName("executionOrder") + private Double executionOrder = null; + + @SerializedName("finishTime") + private OffsetDateTime finishTime = null; + + @SerializedName("jobClass") + private String jobClass = null; + + @SerializedName("jobData") + private Object jobData = null; + + @SerializedName("jobGroup") + private String jobGroup = null; + + @SerializedName("jobName") + private String jobName = null; + + @SerializedName("priority") + private Integer priority = null; + + @SerializedName("projectName") + private String projectName = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("projectVersionName") + private String projectVersionName = null; + + @SerializedName("startTime") + private OffsetDateTime startTime = null; + + /** + * Job State + */ + @JsonAdapter(StateEnum.Adapter.class) + public enum StateEnum { + PREPARED("PREPARED"), + + FINISHED("FINISHED"), + + RUNNING("RUNNING"), + + WAITING_FOR_WORKER("WAITING_FOR_WORKER"), + + FAILED("FAILED"), + + CANCELLED("CANCELLED"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StateEnum fromValue(String text) { + for (StateEnum b : StateEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StateEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("state") + private StateEnum state = null; + + @SerializedName("userName") + private String userName = null; + + public Job artifactName(String artifactName) { + this.artifactName = artifactName; + return this; + } + + /** + * Artifact name related to this job + * @return artifactName + **/ + @ApiModelProperty(required = true, value = "Artifact name related to this job") + public String getArtifactName() { + return artifactName; + } + + public void setArtifactName(String artifactName) { + this.artifactName = artifactName; + } + + public Job cancellable(Boolean cancellable) { + this.cancellable = cancellable; + return this; + } + + /** + * Set to true if job is cancelable + * @return cancellable + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if job is cancelable") + public Boolean isCancellable() { + return cancellable; + } + + public void setCancellable(Boolean cancellable) { + this.cancellable = cancellable; + } + + public Job executionOrder(Double executionOrder) { + this.executionOrder = executionOrder; + return this; + } + + /** + * Job execution order + * @return executionOrder + **/ + @ApiModelProperty(required = true, value = "Job execution order") + public Double getExecutionOrder() { + return executionOrder; + } + + public void setExecutionOrder(Double executionOrder) { + this.executionOrder = executionOrder; + } + + public Job finishTime(OffsetDateTime finishTime) { + this.finishTime = finishTime; + return this; + } + + /** + * End time of job + * @return finishTime + **/ + @ApiModelProperty(required = true, value = "End time of job") + public OffsetDateTime getFinishTime() { + return finishTime; + } + + public void setFinishTime(OffsetDateTime finishTime) { + this.finishTime = finishTime; + } + + public Job jobClass(String jobClass) { + this.jobClass = jobClass; + return this; + } + + /** + * Job class + * @return jobClass + **/ + @ApiModelProperty(required = true, value = "Job class") + public String getJobClass() { + return jobClass; + } + + public void setJobClass(String jobClass) { + this.jobClass = jobClass; + } + + public Job jobData(Object jobData) { + this.jobData = jobData; + return this; + } + + /** + * Job data + * @return jobData + **/ + @ApiModelProperty(required = true, value = "Job data") + public Object getJobData() { + return jobData; + } + + public void setJobData(Object jobData) { + this.jobData = jobData; + } + + public Job jobGroup(String jobGroup) { + this.jobGroup = jobGroup; + return this; + } + + /** + * Job group + * @return jobGroup + **/ + @ApiModelProperty(required = true, value = "Job group") + public String getJobGroup() { + return jobGroup; + } + + public void setJobGroup(String jobGroup) { + this.jobGroup = jobGroup; + } + + /** + * identifier of job + * @return jobName + **/ + @ApiModelProperty(value = "identifier of job") + public String getJobName() { + return jobName; + } + + public Job priority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Job priority + * @return priority + **/ + @ApiModelProperty(required = true, value = "Job priority") + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public Job projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Project name related to this job + * @return projectName + **/ + @ApiModelProperty(required = true, value = "Project name related to this job") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public Job projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version identifier related to this job + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version identifier related to this job") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public Job projectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + return this; + } + + /** + * Project version name related to this job + * @return projectVersionName + **/ + @ApiModelProperty(required = true, value = "Project version name related to this job") + public String getProjectVersionName() { + return projectVersionName; + } + + public void setProjectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + } + + public Job startTime(OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Start time of job + * @return startTime + **/ + @ApiModelProperty(required = true, value = "Start time of job") + public OffsetDateTime getStartTime() { + return startTime; + } + + public void setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + } + + public Job state(StateEnum state) { + this.state = state; + return this; + } + + /** + * Job State + * @return state + **/ + @ApiModelProperty(required = true, value = "Job State") + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + public Job userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Name of user this job was created by + * @return userName + **/ + @ApiModelProperty(required = true, value = "Name of user this job was created by") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Job job = (Job) o; + return Objects.equals(this.artifactName, job.artifactName) && + Objects.equals(this.cancellable, job.cancellable) && + Objects.equals(this.executionOrder, job.executionOrder) && + Objects.equals(this.finishTime, job.finishTime) && + Objects.equals(this.jobClass, job.jobClass) && + Objects.equals(this.jobData, job.jobData) && + Objects.equals(this.jobGroup, job.jobGroup) && + Objects.equals(this.jobName, job.jobName) && + Objects.equals(this.priority, job.priority) && + Objects.equals(this.projectName, job.projectName) && + Objects.equals(this.projectVersionId, job.projectVersionId) && + Objects.equals(this.projectVersionName, job.projectVersionName) && + Objects.equals(this.startTime, job.startTime) && + Objects.equals(this.state, job.state) && + Objects.equals(this.userName, job.userName); + } + + @Override + public int hashCode() { + return Objects.hash(artifactName, cancellable, executionOrder, finishTime, jobClass, jobData, jobGroup, jobName, priority, projectName, projectVersionId, projectVersionName, startTime, state, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Job {\n"); + + sb.append(" artifactName: ").append(toIndentedString(artifactName)).append("\n"); + sb.append(" cancellable: ").append(toIndentedString(cancellable)).append("\n"); + sb.append(" executionOrder: ").append(toIndentedString(executionOrder)).append("\n"); + sb.append(" finishTime: ").append(toIndentedString(finishTime)).append("\n"); + sb.append(" jobClass: ").append(toIndentedString(jobClass)).append("\n"); + sb.append(" jobData: ").append(toIndentedString(jobData)).append("\n"); + sb.append(" jobGroup: ").append(toIndentedString(jobGroup)).append("\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" projectVersionName: ").append(toIndentedString(projectVersionName)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/JobCancelRequest.java b/src/main/java/com/fortify/ssc/restclient/model/JobCancelRequest.java new file mode 100644 index 0000000..6edd462 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/JobCancelRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of cancelling jobs + */ +@ApiModel(description = "Request of cancelling jobs") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class JobCancelRequest { + @SerializedName("jobIds") + private List jobIds = new ArrayList(); + + public JobCancelRequest jobIds(List jobIds) { + this.jobIds = jobIds; + return this; + } + + public JobCancelRequest addJobIdsItem(String jobIdsItem) { + this.jobIds.add(jobIdsItem); + return this; + } + + /** + * List containing single job ID to cancel + * @return jobIds + **/ + @ApiModelProperty(required = true, value = "List containing single job ID to cancel") + public List getJobIds() { + return jobIds; + } + + public void setJobIds(List jobIds) { + this.jobIds = jobIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + JobCancelRequest jobCancelRequest = (JobCancelRequest) o; + return Objects.equals(this.jobIds, jobCancelRequest.jobIds); + } + + @Override + public int hashCode() { + return Objects.hash(jobIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class JobCancelRequest {\n"); + + sb.append(" jobIds: ").append(toIndentedString(jobIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeCategoryWarning.java b/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeCategoryWarning.java new file mode 100644 index 0000000..ea8ae4d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeCategoryWarning.java @@ -0,0 +1,116 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.JobPriorityChangeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Job priority change warning + */ +@ApiModel(description = "Job priority change warning") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class JobPriorityChangeCategoryWarning { + @SerializedName("warningCategory") + private String warningCategory = null; + + @SerializedName("warningList") + private List warningList = new ArrayList(); + + /** + * Job priority change warning category. + * @return warningCategory + **/ + @ApiModelProperty(required = true, value = "Job priority change warning category.") + public String getWarningCategory() { + return warningCategory; + } + + public JobPriorityChangeCategoryWarning warningList(List warningList) { + this.warningList = warningList; + return this; + } + + public JobPriorityChangeCategoryWarning addWarningListItem(JobPriorityChangeInfo warningListItem) { + this.warningList.add(warningListItem); + return this; + } + + /** + * Detailed information about job priority change. + * @return warningList + **/ + @ApiModelProperty(required = true, value = "Detailed information about job priority change.") + public List getWarningList() { + return warningList; + } + + public void setWarningList(List warningList) { + this.warningList = warningList; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + JobPriorityChangeCategoryWarning jobPriorityChangeCategoryWarning = (JobPriorityChangeCategoryWarning) o; + return Objects.equals(this.warningCategory, jobPriorityChangeCategoryWarning.warningCategory) && + Objects.equals(this.warningList, jobPriorityChangeCategoryWarning.warningList); + } + + @Override + public int hashCode() { + return Objects.hash(warningCategory, warningList); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class JobPriorityChangeCategoryWarning {\n"); + + sb.append(" warningCategory: ").append(toIndentedString(warningCategory)).append("\n"); + sb.append(" warningList: ").append(toIndentedString(warningList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeInfo.java b/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeInfo.java new file mode 100644 index 0000000..a688a6f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/JobPriorityChangeInfo.java @@ -0,0 +1,99 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Job priority change information + */ +@ApiModel(description = "Job priority change information") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class JobPriorityChangeInfo { + @SerializedName("count") + private Integer count = null; + + @SerializedName("jobClassName") + private String jobClassName = null; + + /** + * Number of the warnings of for the specific job class. + * @return count + **/ + @ApiModelProperty(required = true, value = "Number of the warnings of for the specific job class.") + public Integer getCount() { + return count; + } + + /** + * Job class name. + * @return jobClassName + **/ + @ApiModelProperty(required = true, value = "Job class name.") + public String getJobClassName() { + return jobClassName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + JobPriorityChangeInfo jobPriorityChangeInfo = (JobPriorityChangeInfo) o; + return Objects.equals(this.count, jobPriorityChangeInfo.count) && + Objects.equals(this.jobClassName, jobPriorityChangeInfo.jobClassName); + } + + @Override + public int hashCode() { + return Objects.hash(count, jobClassName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class JobPriorityChangeInfo {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" jobClassName: ").append(toIndentedString(jobClassName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LDAPEntity.java b/src/main/java/com/fortify/ssc/restclient/model/LDAPEntity.java new file mode 100644 index 0000000..2747ca6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LDAPEntity.java @@ -0,0 +1,329 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Role; +import com.fortify.ssc.restclient.model.UserPhoto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * An LDAP entity like user, group or organization + */ +@ApiModel(description = "An LDAP entity like user, group or organization") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LDAPEntity { + @SerializedName("distinguishedName") + private String distinguishedName = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("lastName") + private String lastName = null; + + /** + * Type of LDAP entity. + */ + @JsonAdapter(LdapTypeEnum.Adapter.class) + public enum LdapTypeEnum { + NONE("NONE"), + + GROUP("GROUP"), + + USER("USER"), + + ORG_UNIT("ORG_UNIT"); + + private String value; + + LdapTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LdapTypeEnum fromValue(String text) { + for (LdapTypeEnum b : LdapTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LdapTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LdapTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LdapTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("ldapType") + private LdapTypeEnum ldapType = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("roles") + private List roles = new ArrayList(); + + @SerializedName("userPhoto") + private UserPhoto userPhoto = null; + + public LDAPEntity distinguishedName(String distinguishedName) { + this.distinguishedName = distinguishedName; + return this; + } + + /** + * Distinguished name of LDAP entity + * @return distinguishedName + **/ + @ApiModelProperty(required = true, value = "Distinguished name of LDAP entity") + public String getDistinguishedName() { + return distinguishedName; + } + + public void setDistinguishedName(String distinguishedName) { + this.distinguishedName = distinguishedName; + } + + public LDAPEntity email(String email) { + this.email = email; + return this; + } + + /** + * Email of LDAP entity + * @return email + **/ + @ApiModelProperty(required = true, value = "Email of LDAP entity") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public LDAPEntity firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * First name of LDAP entity + * @return firstName + **/ + @ApiModelProperty(required = true, value = "First name of LDAP entity") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * LDAP entity identifier + * @return id + **/ + @ApiModelProperty(value = "LDAP entity identifier") + public Long getId() { + return id; + } + + public LDAPEntity lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Last name of LDAP entity + * @return lastName + **/ + @ApiModelProperty(required = true, value = "Last name of LDAP entity") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public LDAPEntity ldapType(LdapTypeEnum ldapType) { + this.ldapType = ldapType; + return this; + } + + /** + * Type of LDAP entity. + * @return ldapType + **/ + @ApiModelProperty(required = true, value = "Type of LDAP entity.") + public LdapTypeEnum getLdapType() { + return ldapType; + } + + public void setLdapType(LdapTypeEnum ldapType) { + this.ldapType = ldapType; + } + + public LDAPEntity name(String name) { + this.name = name; + return this; + } + + /** + * LDAP entity name + * @return name + **/ + @ApiModelProperty(required = true, value = "LDAP entity name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LDAPEntity roles(List roles) { + this.roles = roles; + return this; + } + + public LDAPEntity addRolesItem(Role rolesItem) { + this.roles.add(rolesItem); + return this; + } + + /** + * List of roles pertaining to this LDAP entity + * @return roles + **/ + @ApiModelProperty(required = true, value = "List of roles pertaining to this LDAP entity") + public List getRoles() { + return roles; + } + + public void setRoles(List roles) { + this.roles = roles; + } + + public LDAPEntity userPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + return this; + } + + /** + * Photo object if LDAP entity is user + * @return userPhoto + **/ + @ApiModelProperty(value = "Photo object if LDAP entity is user") + public UserPhoto getUserPhoto() { + return userPhoto; + } + + public void setUserPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LDAPEntity ldAPEntity = (LDAPEntity) o; + return Objects.equals(this.distinguishedName, ldAPEntity.distinguishedName) && + Objects.equals(this.email, ldAPEntity.email) && + Objects.equals(this.firstName, ldAPEntity.firstName) && + Objects.equals(this.id, ldAPEntity.id) && + Objects.equals(this.lastName, ldAPEntity.lastName) && + Objects.equals(this.ldapType, ldAPEntity.ldapType) && + Objects.equals(this.name, ldAPEntity.name) && + Objects.equals(this.roles, ldAPEntity.roles) && + Objects.equals(this.userPhoto, ldAPEntity.userPhoto); + } + + @Override + public int hashCode() { + return Objects.hash(distinguishedName, email, firstName, id, lastName, ldapType, name, roles, userPhoto); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LDAPEntity {\n"); + + sb.append(" distinguishedName: ").append(toIndentedString(distinguishedName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" ldapType: ").append(toIndentedString(ldapType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" userPhoto: ").append(toIndentedString(userPhoto)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LdapRefreshResponse.java b/src/main/java/com/fortify/ssc/restclient/model/LdapRefreshResponse.java new file mode 100644 index 0000000..639c323 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LdapRefreshResponse.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Job; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Result of refreshing ldap server + */ +@ApiModel(description = "Result of refreshing ldap server") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LdapRefreshResponse { + @SerializedName("data") + private Job data = null; + + public LdapRefreshResponse data(Job data) { + this.data = data; + return this; + } + + /** + * LDAP refresh job information + * @return data + **/ + @ApiModelProperty(value = "LDAP refresh job information") + public Job getData() { + return data; + } + + public void setData(Job data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapRefreshResponse ldapRefreshResponse = (LdapRefreshResponse) o; + return Objects.equals(this.data, ldapRefreshResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapRefreshResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LdapServerDto.java b/src/main/java/com/fortify/ssc/restclient/model/LdapServerDto.java new file mode 100644 index 0000000..b21e7ae --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LdapServerDto.java @@ -0,0 +1,1257 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * LdapServerDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LdapServerDto { + @SerializedName("attributeDistinguishedName") + private String attributeDistinguishedName = null; + + @SerializedName("attributeEmail") + private String attributeEmail = null; + + @SerializedName("attributeFirstName") + private String attributeFirstName = null; + + @SerializedName("attributeGroupname") + private String attributeGroupname = null; + + @SerializedName("attributeLastName") + private String attributeLastName = null; + + @SerializedName("attributeMember") + private String attributeMember = null; + + @SerializedName("attributeMemberOf") + private String attributeMemberOf = null; + + @SerializedName("attributeObjectClass") + private String attributeObjectClass = null; + + @SerializedName("attributeObjectSid") + private String attributeObjectSid = null; + + @SerializedName("attributeOrgunitName") + private String attributeOrgunitName = null; + + @SerializedName("attributePassword") + private String attributePassword = null; + + @SerializedName("attributeThumbnailMimeDefault") + private String attributeThumbnailMimeDefault = null; + + @SerializedName("attributeThumbnailPhoto") + private String attributeThumbnailPhoto = null; + + @SerializedName("attributeUserName") + private String attributeUserName = null; + + /** + * Gets or Sets authenticatorType + */ + @JsonAdapter(AuthenticatorTypeEnum.Adapter.class) + public enum AuthenticatorTypeEnum { + BIND_AUTHENTICATOR("BIND_AUTHENTICATOR"), + + PASSWORD_COMPARISON_AUTHENTICATOR("PASSWORD_COMPARISON_AUTHENTICATOR"); + + private String value; + + AuthenticatorTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthenticatorTypeEnum fromValue(String text) { + for (AuthenticatorTypeEnum b : AuthenticatorTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthenticatorTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthenticatorTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthenticatorTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("authenticatorType") + private AuthenticatorTypeEnum authenticatorType = null; + + @SerializedName("baseDn") + private String baseDn = null; + + @SerializedName("baseObjectSid") + private String baseObjectSid = null; + + @SerializedName("cacheEnabled") + private Boolean cacheEnabled = null; + + @SerializedName("cacheEvictionTime") + private Integer cacheEvictionTime = null; + + @SerializedName("cacheExecutorPoolSize") + private Integer cacheExecutorPoolSize = null; + + @SerializedName("cacheExecutorPoolSizeMax") + private Integer cacheExecutorPoolSizeMax = null; + + @SerializedName("cacheMaxThreadsPerCache") + private Integer cacheMaxThreadsPerCache = null; + + @SerializedName("checkSslHostname") + private Boolean checkSslHostname = null; + + @SerializedName("checkSslTrust") + private Boolean checkSslTrust = null; + + @SerializedName("classGroup") + private String classGroup = null; + + @SerializedName("classOrgunit") + private String classOrgunit = null; + + @SerializedName("classUser") + private String classUser = null; + + @SerializedName("defaultServer") + private Boolean defaultServer = null; + + @SerializedName("enabled") + private Boolean enabled = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("ignorePartialResultException") + private Boolean ignorePartialResultException = null; + + @SerializedName("nestedGroupsEnabled") + private Boolean nestedGroupsEnabled = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("pagingEnabled") + private Boolean pagingEnabled = null; + + /** + * Gets or Sets passwordEncoderType + */ + @JsonAdapter(PasswordEncoderTypeEnum.Adapter.class) + public enum PasswordEncoderTypeEnum { + NOT_SET("NOT_SET"), + + LDAP_SHA_PASSWORD_ENCODER("LDAP_SHA_PASSWORD_ENCODER"), + + MD4_PASSWORD_ENCODER("MD4_PASSWORD_ENCODER"), + + MD5_PASSWORD_ENCODER("MD5_PASSWORD_ENCODER"), + + SHA_PASSWORD_ENCODER("SHA_PASSWORD_ENCODER"); + + private String value; + + PasswordEncoderTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PasswordEncoderTypeEnum fromValue(String text) { + for (PasswordEncoderTypeEnum b : PasswordEncoderTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PasswordEncoderTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PasswordEncoderTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PasswordEncoderTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("passwordEncoderType") + private PasswordEncoderTypeEnum passwordEncoderType = null; + + /** + * Gets or Sets referralsProcessingStrategy + */ + @JsonAdapter(ReferralsProcessingStrategyEnum.Adapter.class) + public enum ReferralsProcessingStrategyEnum { + IGNORE("ignore"), + + FOLLOW("follow"); + + private String value; + + ReferralsProcessingStrategyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReferralsProcessingStrategyEnum fromValue(String text) { + for (ReferralsProcessingStrategyEnum b : ReferralsProcessingStrategyEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReferralsProcessingStrategyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReferralsProcessingStrategyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReferralsProcessingStrategyEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("referralsProcessingStrategy") + private ReferralsProcessingStrategyEnum referralsProcessingStrategy = null; + + @SerializedName("saveWithoutValidation") + private Boolean saveWithoutValidation = null; + + @SerializedName("searchDns") + private String searchDns = null; + + @SerializedName("serverName") + private String serverName = null; + + @SerializedName("url") + private String url = null; + + @SerializedName("userDn") + private String userDn = null; + + @SerializedName("userPassword") + private String userPassword = null; + + @SerializedName("userPhotoEnabled") + private Boolean userPhotoEnabled = null; + + @SerializedName("validationIdleTime") + private Integer validationIdleTime = null; + + @SerializedName("validationTimeLimit") + private Integer validationTimeLimit = null; + + public LdapServerDto attributeDistinguishedName(String attributeDistinguishedName) { + this.attributeDistinguishedName = attributeDistinguishedName; + return this; + } + + /** + * Get attributeDistinguishedName + * @return attributeDistinguishedName + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeDistinguishedName() { + return attributeDistinguishedName; + } + + public void setAttributeDistinguishedName(String attributeDistinguishedName) { + this.attributeDistinguishedName = attributeDistinguishedName; + } + + public LdapServerDto attributeEmail(String attributeEmail) { + this.attributeEmail = attributeEmail; + return this; + } + + /** + * Get attributeEmail + * @return attributeEmail + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeEmail() { + return attributeEmail; + } + + public void setAttributeEmail(String attributeEmail) { + this.attributeEmail = attributeEmail; + } + + public LdapServerDto attributeFirstName(String attributeFirstName) { + this.attributeFirstName = attributeFirstName; + return this; + } + + /** + * Get attributeFirstName + * @return attributeFirstName + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeFirstName() { + return attributeFirstName; + } + + public void setAttributeFirstName(String attributeFirstName) { + this.attributeFirstName = attributeFirstName; + } + + public LdapServerDto attributeGroupname(String attributeGroupname) { + this.attributeGroupname = attributeGroupname; + return this; + } + + /** + * Get attributeGroupname + * @return attributeGroupname + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeGroupname() { + return attributeGroupname; + } + + public void setAttributeGroupname(String attributeGroupname) { + this.attributeGroupname = attributeGroupname; + } + + public LdapServerDto attributeLastName(String attributeLastName) { + this.attributeLastName = attributeLastName; + return this; + } + + /** + * Get attributeLastName + * @return attributeLastName + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeLastName() { + return attributeLastName; + } + + public void setAttributeLastName(String attributeLastName) { + this.attributeLastName = attributeLastName; + } + + public LdapServerDto attributeMember(String attributeMember) { + this.attributeMember = attributeMember; + return this; + } + + /** + * Get attributeMember + * @return attributeMember + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeMember() { + return attributeMember; + } + + public void setAttributeMember(String attributeMember) { + this.attributeMember = attributeMember; + } + + public LdapServerDto attributeMemberOf(String attributeMemberOf) { + this.attributeMemberOf = attributeMemberOf; + return this; + } + + /** + * Get attributeMemberOf + * @return attributeMemberOf + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeMemberOf() { + return attributeMemberOf; + } + + public void setAttributeMemberOf(String attributeMemberOf) { + this.attributeMemberOf = attributeMemberOf; + } + + public LdapServerDto attributeObjectClass(String attributeObjectClass) { + this.attributeObjectClass = attributeObjectClass; + return this; + } + + /** + * Get attributeObjectClass + * @return attributeObjectClass + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeObjectClass() { + return attributeObjectClass; + } + + public void setAttributeObjectClass(String attributeObjectClass) { + this.attributeObjectClass = attributeObjectClass; + } + + public LdapServerDto attributeObjectSid(String attributeObjectSid) { + this.attributeObjectSid = attributeObjectSid; + return this; + } + + /** + * Get attributeObjectSid + * @return attributeObjectSid + **/ + @ApiModelProperty(value = "") + public String getAttributeObjectSid() { + return attributeObjectSid; + } + + public void setAttributeObjectSid(String attributeObjectSid) { + this.attributeObjectSid = attributeObjectSid; + } + + public LdapServerDto attributeOrgunitName(String attributeOrgunitName) { + this.attributeOrgunitName = attributeOrgunitName; + return this; + } + + /** + * Get attributeOrgunitName + * @return attributeOrgunitName + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeOrgunitName() { + return attributeOrgunitName; + } + + public void setAttributeOrgunitName(String attributeOrgunitName) { + this.attributeOrgunitName = attributeOrgunitName; + } + + public LdapServerDto attributePassword(String attributePassword) { + this.attributePassword = attributePassword; + return this; + } + + /** + * Get attributePassword + * @return attributePassword + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributePassword() { + return attributePassword; + } + + public void setAttributePassword(String attributePassword) { + this.attributePassword = attributePassword; + } + + public LdapServerDto attributeThumbnailMimeDefault(String attributeThumbnailMimeDefault) { + this.attributeThumbnailMimeDefault = attributeThumbnailMimeDefault; + return this; + } + + /** + * Get attributeThumbnailMimeDefault + * @return attributeThumbnailMimeDefault + **/ + @ApiModelProperty(value = "") + public String getAttributeThumbnailMimeDefault() { + return attributeThumbnailMimeDefault; + } + + public void setAttributeThumbnailMimeDefault(String attributeThumbnailMimeDefault) { + this.attributeThumbnailMimeDefault = attributeThumbnailMimeDefault; + } + + public LdapServerDto attributeThumbnailPhoto(String attributeThumbnailPhoto) { + this.attributeThumbnailPhoto = attributeThumbnailPhoto; + return this; + } + + /** + * Get attributeThumbnailPhoto + * @return attributeThumbnailPhoto + **/ + @ApiModelProperty(value = "") + public String getAttributeThumbnailPhoto() { + return attributeThumbnailPhoto; + } + + public void setAttributeThumbnailPhoto(String attributeThumbnailPhoto) { + this.attributeThumbnailPhoto = attributeThumbnailPhoto; + } + + public LdapServerDto attributeUserName(String attributeUserName) { + this.attributeUserName = attributeUserName; + return this; + } + + /** + * Get attributeUserName + * @return attributeUserName + **/ + @ApiModelProperty(required = true, value = "") + public String getAttributeUserName() { + return attributeUserName; + } + + public void setAttributeUserName(String attributeUserName) { + this.attributeUserName = attributeUserName; + } + + public LdapServerDto authenticatorType(AuthenticatorTypeEnum authenticatorType) { + this.authenticatorType = authenticatorType; + return this; + } + + /** + * Get authenticatorType + * @return authenticatorType + **/ + @ApiModelProperty(required = true, value = "") + public AuthenticatorTypeEnum getAuthenticatorType() { + return authenticatorType; + } + + public void setAuthenticatorType(AuthenticatorTypeEnum authenticatorType) { + this.authenticatorType = authenticatorType; + } + + public LdapServerDto baseDn(String baseDn) { + this.baseDn = baseDn; + return this; + } + + /** + * Distinguished name (DN) of root (base) LDAP entity SSC has access to. If value is set to not empty entity's DN, SSC has access only to this entity and all its children. If value of this attribute is an empty string, SSC has access to whole LDAP entities tree + * @return baseDn + **/ + @ApiModelProperty(required = true, value = "Distinguished name (DN) of root (base) LDAP entity SSC has access to. If value is set to not empty entity's DN, SSC has access only to this entity and all its children. If value of this attribute is an empty string, SSC has access to whole LDAP entities tree") + public String getBaseDn() { + return baseDn; + } + + public void setBaseDn(String baseDn) { + this.baseDn = baseDn; + } + + public LdapServerDto baseObjectSid(String baseObjectSid) { + this.baseObjectSid = baseObjectSid; + return this; + } + + /** + * Get baseObjectSid + * @return baseObjectSid + **/ + @ApiModelProperty(value = "") + public String getBaseObjectSid() { + return baseObjectSid; + } + + public void setBaseObjectSid(String baseObjectSid) { + this.baseObjectSid = baseObjectSid; + } + + public LdapServerDto cacheEnabled(Boolean cacheEnabled) { + this.cacheEnabled = cacheEnabled; + return this; + } + + /** + * Get cacheEnabled + * @return cacheEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isCacheEnabled() { + return cacheEnabled; + } + + public void setCacheEnabled(Boolean cacheEnabled) { + this.cacheEnabled = cacheEnabled; + } + + public LdapServerDto cacheEvictionTime(Integer cacheEvictionTime) { + this.cacheEvictionTime = cacheEvictionTime; + return this; + } + + /** + * Get cacheEvictionTime + * @return cacheEvictionTime + **/ + @ApiModelProperty(required = true, value = "") + public Integer getCacheEvictionTime() { + return cacheEvictionTime; + } + + public void setCacheEvictionTime(Integer cacheEvictionTime) { + this.cacheEvictionTime = cacheEvictionTime; + } + + public LdapServerDto cacheExecutorPoolSize(Integer cacheExecutorPoolSize) { + this.cacheExecutorPoolSize = cacheExecutorPoolSize; + return this; + } + + /** + * Get cacheExecutorPoolSize + * @return cacheExecutorPoolSize + **/ + @ApiModelProperty(required = true, value = "") + public Integer getCacheExecutorPoolSize() { + return cacheExecutorPoolSize; + } + + public void setCacheExecutorPoolSize(Integer cacheExecutorPoolSize) { + this.cacheExecutorPoolSize = cacheExecutorPoolSize; + } + + public LdapServerDto cacheExecutorPoolSizeMax(Integer cacheExecutorPoolSizeMax) { + this.cacheExecutorPoolSizeMax = cacheExecutorPoolSizeMax; + return this; + } + + /** + * Get cacheExecutorPoolSizeMax + * @return cacheExecutorPoolSizeMax + **/ + @ApiModelProperty(required = true, value = "") + public Integer getCacheExecutorPoolSizeMax() { + return cacheExecutorPoolSizeMax; + } + + public void setCacheExecutorPoolSizeMax(Integer cacheExecutorPoolSizeMax) { + this.cacheExecutorPoolSizeMax = cacheExecutorPoolSizeMax; + } + + public LdapServerDto cacheMaxThreadsPerCache(Integer cacheMaxThreadsPerCache) { + this.cacheMaxThreadsPerCache = cacheMaxThreadsPerCache; + return this; + } + + /** + * Get cacheMaxThreadsPerCache + * @return cacheMaxThreadsPerCache + **/ + @ApiModelProperty(required = true, value = "") + public Integer getCacheMaxThreadsPerCache() { + return cacheMaxThreadsPerCache; + } + + public void setCacheMaxThreadsPerCache(Integer cacheMaxThreadsPerCache) { + this.cacheMaxThreadsPerCache = cacheMaxThreadsPerCache; + } + + public LdapServerDto checkSslHostname(Boolean checkSslHostname) { + this.checkSslHostname = checkSslHostname; + return this; + } + + /** + * Get checkSslHostname + * @return checkSslHostname + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isCheckSslHostname() { + return checkSslHostname; + } + + public void setCheckSslHostname(Boolean checkSslHostname) { + this.checkSslHostname = checkSslHostname; + } + + public LdapServerDto checkSslTrust(Boolean checkSslTrust) { + this.checkSslTrust = checkSslTrust; + return this; + } + + /** + * Get checkSslTrust + * @return checkSslTrust + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isCheckSslTrust() { + return checkSslTrust; + } + + public void setCheckSslTrust(Boolean checkSslTrust) { + this.checkSslTrust = checkSslTrust; + } + + public LdapServerDto classGroup(String classGroup) { + this.classGroup = classGroup; + return this; + } + + /** + * Get classGroup + * @return classGroup + **/ + @ApiModelProperty(required = true, value = "") + public String getClassGroup() { + return classGroup; + } + + public void setClassGroup(String classGroup) { + this.classGroup = classGroup; + } + + public LdapServerDto classOrgunit(String classOrgunit) { + this.classOrgunit = classOrgunit; + return this; + } + + /** + * Get classOrgunit + * @return classOrgunit + **/ + @ApiModelProperty(required = true, value = "") + public String getClassOrgunit() { + return classOrgunit; + } + + public void setClassOrgunit(String classOrgunit) { + this.classOrgunit = classOrgunit; + } + + public LdapServerDto classUser(String classUser) { + this.classUser = classUser; + return this; + } + + /** + * Get classUser + * @return classUser + **/ + @ApiModelProperty(required = true, value = "") + public String getClassUser() { + return classUser; + } + + public void setClassUser(String classUser) { + this.classUser = classUser; + } + + public LdapServerDto defaultServer(Boolean defaultServer) { + this.defaultServer = defaultServer; + return this; + } + + /** + * Boolean flag that marks LDAP server as default. Default means the server which configuration was imported from ldap.properties legacy configuration file + * @return defaultServer + **/ + @ApiModelProperty(example = "false", required = true, value = "Boolean flag that marks LDAP server as default. Default means the server which configuration was imported from ldap.properties legacy configuration file") + public Boolean isDefaultServer() { + return defaultServer; + } + + public void setDefaultServer(Boolean defaultServer) { + this.defaultServer = defaultServer; + } + + public LdapServerDto enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Flag that marks server as enabled. All enabled servers are used by SSC. Server can be temporary disabled if it is temporary down. + * @return enabled + **/ + @ApiModelProperty(example = "false", required = true, value = "Flag that marks server as enabled. All enabled servers are used by SSC. Server can be temporary disabled if it is temporary down.") + public Boolean isEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + /** + * LDAP Server id + * @return id + **/ + @ApiModelProperty(required = true, value = "LDAP Server id") + public Long getId() { + return id; + } + + public LdapServerDto ignorePartialResultException(Boolean ignorePartialResultException) { + this.ignorePartialResultException = ignorePartialResultException; + return this; + } + + /** + * Get ignorePartialResultException + * @return ignorePartialResultException + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isIgnorePartialResultException() { + return ignorePartialResultException; + } + + public void setIgnorePartialResultException(Boolean ignorePartialResultException) { + this.ignorePartialResultException = ignorePartialResultException; + } + + public LdapServerDto nestedGroupsEnabled(Boolean nestedGroupsEnabled) { + this.nestedGroupsEnabled = nestedGroupsEnabled; + return this; + } + + /** + * Get nestedGroupsEnabled + * @return nestedGroupsEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isNestedGroupsEnabled() { + return nestedGroupsEnabled; + } + + public void setNestedGroupsEnabled(Boolean nestedGroupsEnabled) { + this.nestedGroupsEnabled = nestedGroupsEnabled; + } + + /** + * Version of the LDAP server entity to support editing LDAP server entity by multiply administrators + * @return objectVersion + **/ + @ApiModelProperty(required = true, value = "Version of the LDAP server entity to support editing LDAP server entity by multiply administrators") + public Integer getObjectVersion() { + return objectVersion; + } + + public LdapServerDto pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(required = true, value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public LdapServerDto pagingEnabled(Boolean pagingEnabled) { + this.pagingEnabled = pagingEnabled; + return this; + } + + /** + * Get pagingEnabled + * @return pagingEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isPagingEnabled() { + return pagingEnabled; + } + + public void setPagingEnabled(Boolean pagingEnabled) { + this.pagingEnabled = pagingEnabled; + } + + public LdapServerDto passwordEncoderType(PasswordEncoderTypeEnum passwordEncoderType) { + this.passwordEncoderType = passwordEncoderType; + return this; + } + + /** + * Get passwordEncoderType + * @return passwordEncoderType + **/ + @ApiModelProperty(required = true, value = "") + public PasswordEncoderTypeEnum getPasswordEncoderType() { + return passwordEncoderType; + } + + public void setPasswordEncoderType(PasswordEncoderTypeEnum passwordEncoderType) { + this.passwordEncoderType = passwordEncoderType; + } + + public LdapServerDto referralsProcessingStrategy(ReferralsProcessingStrategyEnum referralsProcessingStrategy) { + this.referralsProcessingStrategy = referralsProcessingStrategy; + return this; + } + + /** + * Get referralsProcessingStrategy + * @return referralsProcessingStrategy + **/ + @ApiModelProperty(required = true, value = "") + public ReferralsProcessingStrategyEnum getReferralsProcessingStrategy() { + return referralsProcessingStrategy; + } + + public void setReferralsProcessingStrategy(ReferralsProcessingStrategyEnum referralsProcessingStrategy) { + this.referralsProcessingStrategy = referralsProcessingStrategy; + } + + public LdapServerDto saveWithoutValidation(Boolean saveWithoutValidation) { + this.saveWithoutValidation = saveWithoutValidation; + return this; + } + + /** + * Get saveWithoutValidation + * @return saveWithoutValidation + **/ + @ApiModelProperty(value = "") + public Boolean isSaveWithoutValidation() { + return saveWithoutValidation; + } + + public void setSaveWithoutValidation(Boolean saveWithoutValidation) { + this.saveWithoutValidation = saveWithoutValidation; + } + + public LdapServerDto searchDns(String searchDns) { + this.searchDns = searchDns; + return this; + } + + /** + * Get searchDns + * @return searchDns + **/ + @ApiModelProperty(value = "") + public String getSearchDns() { + return searchDns; + } + + public void setSearchDns(String searchDns) { + this.searchDns = searchDns; + } + + public LdapServerDto serverName(String serverName) { + this.serverName = serverName; + return this; + } + + /** + * Name of the LDAP server to distinguish it from other servers + * @return serverName + **/ + @ApiModelProperty(required = true, value = "Name of the LDAP server to distinguish it from other servers") + public String getServerName() { + return serverName; + } + + public void setServerName(String serverName) { + this.serverName = serverName; + } + + public LdapServerDto url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @ApiModelProperty(required = true, value = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public LdapServerDto userDn(String userDn) { + this.userDn = userDn; + return this; + } + + /** + * Get userDn + * @return userDn + **/ + @ApiModelProperty(required = true, value = "") + public String getUserDn() { + return userDn; + } + + public void setUserDn(String userDn) { + this.userDn = userDn; + } + + public LdapServerDto userPassword(String userPassword) { + this.userPassword = userPassword; + return this; + } + + /** + * Get userPassword + * @return userPassword + **/ + @ApiModelProperty(required = true, value = "") + public String getUserPassword() { + return userPassword; + } + + public void setUserPassword(String userPassword) { + this.userPassword = userPassword; + } + + public LdapServerDto userPhotoEnabled(Boolean userPhotoEnabled) { + this.userPhotoEnabled = userPhotoEnabled; + return this; + } + + /** + * Get userPhotoEnabled + * @return userPhotoEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isUserPhotoEnabled() { + return userPhotoEnabled; + } + + public void setUserPhotoEnabled(Boolean userPhotoEnabled) { + this.userPhotoEnabled = userPhotoEnabled; + } + + public LdapServerDto validationIdleTime(Integer validationIdleTime) { + this.validationIdleTime = validationIdleTime; + return this; + } + + /** + * Get validationIdleTime + * @return validationIdleTime + **/ + @ApiModelProperty(required = true, value = "") + public Integer getValidationIdleTime() { + return validationIdleTime; + } + + public void setValidationIdleTime(Integer validationIdleTime) { + this.validationIdleTime = validationIdleTime; + } + + public LdapServerDto validationTimeLimit(Integer validationTimeLimit) { + this.validationTimeLimit = validationTimeLimit; + return this; + } + + /** + * Get validationTimeLimit + * @return validationTimeLimit + **/ + @ApiModelProperty(required = true, value = "") + public Integer getValidationTimeLimit() { + return validationTimeLimit; + } + + public void setValidationTimeLimit(Integer validationTimeLimit) { + this.validationTimeLimit = validationTimeLimit; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapServerDto ldapServerDto = (LdapServerDto) o; + return Objects.equals(this.attributeDistinguishedName, ldapServerDto.attributeDistinguishedName) && + Objects.equals(this.attributeEmail, ldapServerDto.attributeEmail) && + Objects.equals(this.attributeFirstName, ldapServerDto.attributeFirstName) && + Objects.equals(this.attributeGroupname, ldapServerDto.attributeGroupname) && + Objects.equals(this.attributeLastName, ldapServerDto.attributeLastName) && + Objects.equals(this.attributeMember, ldapServerDto.attributeMember) && + Objects.equals(this.attributeMemberOf, ldapServerDto.attributeMemberOf) && + Objects.equals(this.attributeObjectClass, ldapServerDto.attributeObjectClass) && + Objects.equals(this.attributeObjectSid, ldapServerDto.attributeObjectSid) && + Objects.equals(this.attributeOrgunitName, ldapServerDto.attributeOrgunitName) && + Objects.equals(this.attributePassword, ldapServerDto.attributePassword) && + Objects.equals(this.attributeThumbnailMimeDefault, ldapServerDto.attributeThumbnailMimeDefault) && + Objects.equals(this.attributeThumbnailPhoto, ldapServerDto.attributeThumbnailPhoto) && + Objects.equals(this.attributeUserName, ldapServerDto.attributeUserName) && + Objects.equals(this.authenticatorType, ldapServerDto.authenticatorType) && + Objects.equals(this.baseDn, ldapServerDto.baseDn) && + Objects.equals(this.baseObjectSid, ldapServerDto.baseObjectSid) && + Objects.equals(this.cacheEnabled, ldapServerDto.cacheEnabled) && + Objects.equals(this.cacheEvictionTime, ldapServerDto.cacheEvictionTime) && + Objects.equals(this.cacheExecutorPoolSize, ldapServerDto.cacheExecutorPoolSize) && + Objects.equals(this.cacheExecutorPoolSizeMax, ldapServerDto.cacheExecutorPoolSizeMax) && + Objects.equals(this.cacheMaxThreadsPerCache, ldapServerDto.cacheMaxThreadsPerCache) && + Objects.equals(this.checkSslHostname, ldapServerDto.checkSslHostname) && + Objects.equals(this.checkSslTrust, ldapServerDto.checkSslTrust) && + Objects.equals(this.classGroup, ldapServerDto.classGroup) && + Objects.equals(this.classOrgunit, ldapServerDto.classOrgunit) && + Objects.equals(this.classUser, ldapServerDto.classUser) && + Objects.equals(this.defaultServer, ldapServerDto.defaultServer) && + Objects.equals(this.enabled, ldapServerDto.enabled) && + Objects.equals(this.id, ldapServerDto.id) && + Objects.equals(this.ignorePartialResultException, ldapServerDto.ignorePartialResultException) && + Objects.equals(this.nestedGroupsEnabled, ldapServerDto.nestedGroupsEnabled) && + Objects.equals(this.objectVersion, ldapServerDto.objectVersion) && + Objects.equals(this.pageSize, ldapServerDto.pageSize) && + Objects.equals(this.pagingEnabled, ldapServerDto.pagingEnabled) && + Objects.equals(this.passwordEncoderType, ldapServerDto.passwordEncoderType) && + Objects.equals(this.referralsProcessingStrategy, ldapServerDto.referralsProcessingStrategy) && + Objects.equals(this.saveWithoutValidation, ldapServerDto.saveWithoutValidation) && + Objects.equals(this.searchDns, ldapServerDto.searchDns) && + Objects.equals(this.serverName, ldapServerDto.serverName) && + Objects.equals(this.url, ldapServerDto.url) && + Objects.equals(this.userDn, ldapServerDto.userDn) && + Objects.equals(this.userPassword, ldapServerDto.userPassword) && + Objects.equals(this.userPhotoEnabled, ldapServerDto.userPhotoEnabled) && + Objects.equals(this.validationIdleTime, ldapServerDto.validationIdleTime) && + Objects.equals(this.validationTimeLimit, ldapServerDto.validationTimeLimit); + } + + @Override + public int hashCode() { + return Objects.hash(attributeDistinguishedName, attributeEmail, attributeFirstName, attributeGroupname, attributeLastName, attributeMember, attributeMemberOf, attributeObjectClass, attributeObjectSid, attributeOrgunitName, attributePassword, attributeThumbnailMimeDefault, attributeThumbnailPhoto, attributeUserName, authenticatorType, baseDn, baseObjectSid, cacheEnabled, cacheEvictionTime, cacheExecutorPoolSize, cacheExecutorPoolSizeMax, cacheMaxThreadsPerCache, checkSslHostname, checkSslTrust, classGroup, classOrgunit, classUser, defaultServer, enabled, id, ignorePartialResultException, nestedGroupsEnabled, objectVersion, pageSize, pagingEnabled, passwordEncoderType, referralsProcessingStrategy, saveWithoutValidation, searchDns, serverName, url, userDn, userPassword, userPhotoEnabled, validationIdleTime, validationTimeLimit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapServerDto {\n"); + + sb.append(" attributeDistinguishedName: ").append(toIndentedString(attributeDistinguishedName)).append("\n"); + sb.append(" attributeEmail: ").append(toIndentedString(attributeEmail)).append("\n"); + sb.append(" attributeFirstName: ").append(toIndentedString(attributeFirstName)).append("\n"); + sb.append(" attributeGroupname: ").append(toIndentedString(attributeGroupname)).append("\n"); + sb.append(" attributeLastName: ").append(toIndentedString(attributeLastName)).append("\n"); + sb.append(" attributeMember: ").append(toIndentedString(attributeMember)).append("\n"); + sb.append(" attributeMemberOf: ").append(toIndentedString(attributeMemberOf)).append("\n"); + sb.append(" attributeObjectClass: ").append(toIndentedString(attributeObjectClass)).append("\n"); + sb.append(" attributeObjectSid: ").append(toIndentedString(attributeObjectSid)).append("\n"); + sb.append(" attributeOrgunitName: ").append(toIndentedString(attributeOrgunitName)).append("\n"); + sb.append(" attributePassword: ").append(toIndentedString(attributePassword)).append("\n"); + sb.append(" attributeThumbnailMimeDefault: ").append(toIndentedString(attributeThumbnailMimeDefault)).append("\n"); + sb.append(" attributeThumbnailPhoto: ").append(toIndentedString(attributeThumbnailPhoto)).append("\n"); + sb.append(" attributeUserName: ").append(toIndentedString(attributeUserName)).append("\n"); + sb.append(" authenticatorType: ").append(toIndentedString(authenticatorType)).append("\n"); + sb.append(" baseDn: ").append(toIndentedString(baseDn)).append("\n"); + sb.append(" baseObjectSid: ").append(toIndentedString(baseObjectSid)).append("\n"); + sb.append(" cacheEnabled: ").append(toIndentedString(cacheEnabled)).append("\n"); + sb.append(" cacheEvictionTime: ").append(toIndentedString(cacheEvictionTime)).append("\n"); + sb.append(" cacheExecutorPoolSize: ").append(toIndentedString(cacheExecutorPoolSize)).append("\n"); + sb.append(" cacheExecutorPoolSizeMax: ").append(toIndentedString(cacheExecutorPoolSizeMax)).append("\n"); + sb.append(" cacheMaxThreadsPerCache: ").append(toIndentedString(cacheMaxThreadsPerCache)).append("\n"); + sb.append(" checkSslHostname: ").append(toIndentedString(checkSslHostname)).append("\n"); + sb.append(" checkSslTrust: ").append(toIndentedString(checkSslTrust)).append("\n"); + sb.append(" classGroup: ").append(toIndentedString(classGroup)).append("\n"); + sb.append(" classOrgunit: ").append(toIndentedString(classOrgunit)).append("\n"); + sb.append(" classUser: ").append(toIndentedString(classUser)).append("\n"); + sb.append(" defaultServer: ").append(toIndentedString(defaultServer)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ignorePartialResultException: ").append(toIndentedString(ignorePartialResultException)).append("\n"); + sb.append(" nestedGroupsEnabled: ").append(toIndentedString(nestedGroupsEnabled)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pagingEnabled: ").append(toIndentedString(pagingEnabled)).append("\n"); + sb.append(" passwordEncoderType: ").append(toIndentedString(passwordEncoderType)).append("\n"); + sb.append(" referralsProcessingStrategy: ").append(toIndentedString(referralsProcessingStrategy)).append("\n"); + sb.append(" saveWithoutValidation: ").append(toIndentedString(saveWithoutValidation)).append("\n"); + sb.append(" searchDns: ").append(toIndentedString(searchDns)).append("\n"); + sb.append(" serverName: ").append(toIndentedString(serverName)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" userDn: ").append(toIndentedString(userDn)).append("\n"); + sb.append(" userPassword: ").append(toIndentedString(userPassword)).append("\n"); + sb.append(" userPhotoEnabled: ").append(toIndentedString(userPhotoEnabled)).append("\n"); + sb.append(" validationIdleTime: ").append(toIndentedString(validationIdleTime)).append("\n"); + sb.append(" validationTimeLimit: ").append(toIndentedString(validationTimeLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LdapServerTestRequest.java b/src/main/java/com/fortify/ssc/restclient/model/LdapServerTestRequest.java new file mode 100644 index 0000000..8d212e4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LdapServerTestRequest.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LdapServerDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of testing ldap server + */ +@ApiModel(description = "Request of testing ldap server") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LdapServerTestRequest { + @SerializedName("ldapConfig") + private LdapServerDto ldapConfig = null; + + public LdapServerTestRequest ldapConfig(LdapServerDto ldapConfig) { + this.ldapConfig = ldapConfig; + return this; + } + + /** + * LDAP server information + * @return ldapConfig + **/ + @ApiModelProperty(required = true, value = "LDAP server information") + public LdapServerDto getLdapConfig() { + return ldapConfig; + } + + public void setLdapConfig(LdapServerDto ldapConfig) { + this.ldapConfig = ldapConfig; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapServerTestRequest ldapServerTestRequest = (LdapServerTestRequest) o; + return Objects.equals(this.ldapConfig, ldapServerTestRequest.ldapConfig); + } + + @Override + public int hashCode() { + return Objects.hash(ldapConfig); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapServerTestRequest {\n"); + + sb.append(" ldapConfig: ").append(toIndentedString(ldapConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/License.java b/src/main/java/com/fortify/ssc/restclient/model/License.java new file mode 100644 index 0000000..2239bab --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/License.java @@ -0,0 +1,161 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.LicenseCapability; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * License + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class License { + @SerializedName("capabilities") + private List capabilities = null; + + @SerializedName("creationDate") + private OffsetDateTime creationDate = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("expirationDate") + private OffsetDateTime expirationDate = null; + + @SerializedName("ownerName") + private String ownerName = null; + + public License capabilities(List capabilities) { + this.capabilities = capabilities; + return this; + } + + public License addCapabilitiesItem(LicenseCapability capabilitiesItem) { + if (this.capabilities == null) { + this.capabilities = new ArrayList(); + } + this.capabilities.add(capabilitiesItem); + return this; + } + + /** + * List of all license capabilities + * @return capabilities + **/ + @ApiModelProperty(value = "List of all license capabilities") + public List getCapabilities() { + return capabilities; + } + + public void setCapabilities(List capabilities) { + this.capabilities = capabilities; + } + + /** + * Date when license was created + * @return creationDate + **/ + @ApiModelProperty(value = "Date when license was created") + public OffsetDateTime getCreationDate() { + return creationDate; + } + + /** + * License description + * @return description + **/ + @ApiModelProperty(value = "License description") + public String getDescription() { + return description; + } + + /** + * Date when license is going to be expired + * @return expirationDate + **/ + @ApiModelProperty(value = "Date when license is going to be expired") + public OffsetDateTime getExpirationDate() { + return expirationDate; + } + + /** + * Name of the license owner + * @return ownerName + **/ + @ApiModelProperty(value = "Name of the license owner") + public String getOwnerName() { + return ownerName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + License license = (License) o; + return Objects.equals(this.capabilities, license.capabilities) && + Objects.equals(this.creationDate, license.creationDate) && + Objects.equals(this.description, license.description) && + Objects.equals(this.expirationDate, license.expirationDate) && + Objects.equals(this.ownerName, license.ownerName); + } + + @Override + public int hashCode() { + return Objects.hash(capabilities, creationDate, description, expirationDate, ownerName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class License {\n"); + + sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); + sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LicenseCapability.java b/src/main/java/com/fortify/ssc/restclient/model/LicenseCapability.java new file mode 100644 index 0000000..1e76d3f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LicenseCapability.java @@ -0,0 +1,141 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * License capability + */ +@ApiModel(description = "License capability") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LicenseCapability { + @SerializedName("expirationDate") + private OffsetDateTime expirationDate = null; + + @SerializedName("key") + private String key = null; + + @SerializedName("value") + private String value = null; + + public LicenseCapability expirationDate(OffsetDateTime expirationDate) { + this.expirationDate = expirationDate; + return this; + } + + /** + * License capability expiration date + * @return expirationDate + **/ + @ApiModelProperty(required = true, value = "License capability expiration date") + public OffsetDateTime getExpirationDate() { + return expirationDate; + } + + public void setExpirationDate(OffsetDateTime expirationDate) { + this.expirationDate = expirationDate; + } + + public LicenseCapability key(String key) { + this.key = key; + return this; + } + + /** + * License capability identifier + * @return key + **/ + @ApiModelProperty(required = true, value = "License capability identifier") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LicenseCapability value(String value) { + this.value = value; + return this; + } + + /** + * License capability value + * @return value + **/ + @ApiModelProperty(required = true, value = "License capability value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseCapability licenseCapability = (LicenseCapability) o; + return Objects.equals(this.expirationDate, licenseCapability.expirationDate) && + Objects.equals(this.key, licenseCapability.key) && + Objects.equals(this.value, licenseCapability.value); + } + + @Override + public int hashCode() { + return Objects.hash(expirationDate, key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseCapability {\n"); + + sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/LocalUser.java b/src/main/java/com/fortify/ssc/restclient/model/LocalUser.java new file mode 100644 index 0000000..3078b20 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/LocalUser.java @@ -0,0 +1,370 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Role; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * Local User DTO object + */ +@ApiModel(description = "Local User DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class LocalUser { + @SerializedName("adminPassword") + private String adminPassword = null; + + @SerializedName("clearPassword") + private String clearPassword = null; + + @SerializedName("dateFrozen") + private OffsetDateTime dateFrozen = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("failedLoginAttempts") + private Integer failedLoginAttempts = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("passwordNeverExpire") + private Boolean passwordNeverExpire = null; + + @SerializedName("requirePasswordChange") + private Boolean requirePasswordChange = null; + + @SerializedName("roles") + private List roles = new ArrayList(); + + @SerializedName("suspended") + private Boolean suspended = null; + + @SerializedName("userName") + private String userName = null; + + public LocalUser adminPassword(String adminPassword) { + this.adminPassword = adminPassword; + return this; + } + + /** + * Get adminPassword + * @return adminPassword + **/ + @ApiModelProperty(value = "") + public String getAdminPassword() { + return adminPassword; + } + + public void setAdminPassword(String adminPassword) { + this.adminPassword = adminPassword; + } + + public LocalUser clearPassword(String clearPassword) { + this.clearPassword = clearPassword; + return this; + } + + /** + * Get clearPassword + * @return clearPassword + **/ + @ApiModelProperty(value = "") + public String getClearPassword() { + return clearPassword; + } + + public void setClearPassword(String clearPassword) { + this.clearPassword = clearPassword; + } + + public LocalUser dateFrozen(OffsetDateTime dateFrozen) { + this.dateFrozen = dateFrozen; + return this; + } + + /** + * Date user's account was frozen + * @return dateFrozen + **/ + @ApiModelProperty(required = true, value = "Date user's account was frozen") + public OffsetDateTime getDateFrozen() { + return dateFrozen; + } + + public void setDateFrozen(OffsetDateTime dateFrozen) { + this.dateFrozen = dateFrozen; + } + + public LocalUser email(String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @ApiModelProperty(required = true, value = "") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public LocalUser failedLoginAttempts(Integer failedLoginAttempts) { + this.failedLoginAttempts = failedLoginAttempts; + return this; + } + + /** + * Number of failed login attempts + * @return failedLoginAttempts + **/ + @ApiModelProperty(required = true, value = "Number of failed login attempts") + public Integer getFailedLoginAttempts() { + return failedLoginAttempts; + } + + public void setFailedLoginAttempts(Integer failedLoginAttempts) { + this.failedLoginAttempts = failedLoginAttempts; + } + + public LocalUser firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @ApiModelProperty(required = true, value = "") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + /** + * ID required when referencing an existing Local User + * @return id + **/ + @ApiModelProperty(value = "ID required when referencing an existing Local User") + public Long getId() { + return id; + } + + public LocalUser lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @ApiModelProperty(required = true, value = "") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public LocalUser passwordNeverExpire(Boolean passwordNeverExpire) { + this.passwordNeverExpire = passwordNeverExpire; + return this; + } + + /** + * True if user's password never expires + * @return passwordNeverExpire + **/ + @ApiModelProperty(example = "false", required = true, value = "True if user's password never expires") + public Boolean isPasswordNeverExpire() { + return passwordNeverExpire; + } + + public void setPasswordNeverExpire(Boolean passwordNeverExpire) { + this.passwordNeverExpire = passwordNeverExpire; + } + + public LocalUser requirePasswordChange(Boolean requirePasswordChange) { + this.requirePasswordChange = requirePasswordChange; + return this; + } + + /** + * Is user required to change password on first login? + * @return requirePasswordChange + **/ + @ApiModelProperty(example = "false", required = true, value = "Is user required to change password on first login?") + public Boolean isRequirePasswordChange() { + return requirePasswordChange; + } + + public void setRequirePasswordChange(Boolean requirePasswordChange) { + this.requirePasswordChange = requirePasswordChange; + } + + public LocalUser roles(List roles) { + this.roles = roles; + return this; + } + + public LocalUser addRolesItem(Role rolesItem) { + this.roles.add(rolesItem); + return this; + } + + /** + * List of Roles assigned to user + * @return roles + **/ + @ApiModelProperty(required = true, value = "List of Roles assigned to user") + public List getRoles() { + return roles; + } + + public void setRoles(List roles) { + this.roles = roles; + } + + public LocalUser suspended(Boolean suspended) { + this.suspended = suspended; + return this; + } + + /** + * True if user's account is locked + * @return suspended + **/ + @ApiModelProperty(example = "false", required = true, value = "True if user's account is locked") + public Boolean isSuspended() { + return suspended; + } + + public void setSuspended(Boolean suspended) { + this.suspended = suspended; + } + + public LocalUser userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(required = true, value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocalUser localUser = (LocalUser) o; + return Objects.equals(this.adminPassword, localUser.adminPassword) && + Objects.equals(this.clearPassword, localUser.clearPassword) && + Objects.equals(this.dateFrozen, localUser.dateFrozen) && + Objects.equals(this.email, localUser.email) && + Objects.equals(this.failedLoginAttempts, localUser.failedLoginAttempts) && + Objects.equals(this.firstName, localUser.firstName) && + Objects.equals(this.id, localUser.id) && + Objects.equals(this.lastName, localUser.lastName) && + Objects.equals(this.passwordNeverExpire, localUser.passwordNeverExpire) && + Objects.equals(this.requirePasswordChange, localUser.requirePasswordChange) && + Objects.equals(this.roles, localUser.roles) && + Objects.equals(this.suspended, localUser.suspended) && + Objects.equals(this.userName, localUser.userName); + } + + @Override + public int hashCode() { + return Objects.hash(adminPassword, clearPassword, dateFrozen, email, failedLoginAttempts, firstName, id, lastName, passwordNeverExpire, requirePasswordChange, roles, suspended, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocalUser {\n"); + + sb.append(" adminPassword: ").append(toIndentedString(adminPassword)).append("\n"); + sb.append(" clearPassword: ").append(toIndentedString(clearPassword)).append("\n"); + sb.append(" dateFrozen: ").append(toIndentedString(dateFrozen)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" failedLoginAttempts: ").append(toIndentedString(failedLoginAttempts)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" passwordNeverExpire: ").append(toIndentedString(passwordNeverExpire)).append("\n"); + sb.append(" requirePasswordChange: ").append(toIndentedString(requirePasswordChange)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" suspended: ").append(toIndentedString(suspended)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckRequest.java b/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckRequest.java new file mode 100644 index 0000000..8a377bf --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckRequest.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Password strength check request + */ +@ApiModel(description = "Password strength check request") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PasswordStrengthCheckRequest { + @SerializedName("extraDictionary") + private List extraDictionary = null; + + @SerializedName("password") + private String password = null; + + public PasswordStrengthCheckRequest extraDictionary(List extraDictionary) { + this.extraDictionary = extraDictionary; + return this; + } + + public PasswordStrengthCheckRequest addExtraDictionaryItem(String extraDictionaryItem) { + if (this.extraDictionary == null) { + this.extraDictionary = new ArrayList(); + } + this.extraDictionary.add(extraDictionaryItem); + return this; + } + + /** + * Get additional words to add to dictionary. If null, current user data will be added (for example: username, first name, last name, email). + * @return extraDictionary + **/ + @ApiModelProperty(value = "Get additional words to add to dictionary. If null, current user data will be added (for example: username, first name, last name, email).") + public List getExtraDictionary() { + return extraDictionary; + } + + public void setExtraDictionary(List extraDictionary) { + this.extraDictionary = extraDictionary; + } + + public PasswordStrengthCheckRequest password(String password) { + this.password = password; + return this; + } + + /** + * Get password or it's part from input + * @return password + **/ + @ApiModelProperty(required = true, value = "Get password or it's part from input") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PasswordStrengthCheckRequest passwordStrengthCheckRequest = (PasswordStrengthCheckRequest) o; + return Objects.equals(this.extraDictionary, passwordStrengthCheckRequest.extraDictionary) && + Objects.equals(this.password, passwordStrengthCheckRequest.password); + } + + @Override + public int hashCode() { + return Objects.hash(extraDictionary, password); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PasswordStrengthCheckRequest {\n"); + + sb.append(" extraDictionary: ").append(toIndentedString(extraDictionary)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckResponse.java b/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckResponse.java new file mode 100644 index 0000000..8b47ff3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PasswordStrengthCheckResponse.java @@ -0,0 +1,85 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Result of checking strength of password + */ +@ApiModel(description = "Result of checking strength of password") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PasswordStrengthCheckResponse { + @SerializedName("score") + private Integer score = null; + + /** + * Password strength score + * @return score + **/ + @ApiModelProperty(value = "Password strength score") + public Integer getScore() { + return score; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PasswordStrengthCheckResponse passwordStrengthCheckResponse = (PasswordStrengthCheckResponse) o; + return Objects.equals(this.score, passwordStrengthCheckResponse.score); + } + + @Override + public int hashCode() { + return Objects.hash(score); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PasswordStrengthCheckResponse {\n"); + + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicator.java b/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicator.java new file mode 100644 index 0000000..774f330 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicator.java @@ -0,0 +1,420 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Variable; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Performance indicators enable you to combine variables into metrics that are normalized across project version boundaries + */ +@ApiModel(description = "Performance indicators enable you to combine variables into metrics that are normalized across project version boundaries") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PerformanceIndicator { + @SerializedName("description") + private String description = null; + + @SerializedName("equation") + private String equation = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + /** + * Gets or Sets range + */ + @JsonAdapter(RangeEnum.Adapter.class) + public enum RangeEnum { + INTEGER("Integer"), + + PERCENT("Percent"); + + private String value; + + RangeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RangeEnum fromValue(String text) { + for (RangeEnum b : RangeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RangeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RangeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RangeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("range") + private RangeEnum range = null; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + SYSTEM_DEFINED("SYSTEM_DEFINED"), + + USER_DEFINED("USER_DEFINED"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("variables") + private List variables = null; + + public PerformanceIndicator description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicator equation(String equation) { + this.equation = equation; + return this; + } + + /** + * Get equation + * @return equation + **/ + @ApiModelProperty(required = true, value = "") + public String getEquation() { + return equation; + } + + public void setEquation(String equation) { + this.equation = equation; + } + + public PerformanceIndicator guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Get guid + * @return guid + **/ + @ApiModelProperty(value = "") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public PerformanceIndicator inUse(Boolean inUse) { + this.inUse = inUse; + return this; + } + + /** + * Get inUse + * @return inUse + **/ + @ApiModelProperty(value = "") + public Boolean isInUse() { + return inUse; + } + + public void setInUse(Boolean inUse) { + this.inUse = inUse; + } + + public PerformanceIndicator name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicator objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public PerformanceIndicator publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public PerformanceIndicator range(RangeEnum range) { + this.range = range; + return this; + } + + /** + * Get range + * @return range + **/ + @ApiModelProperty(required = true, value = "") + public RangeEnum getRange() { + return range; + } + + public void setRange(RangeEnum range) { + this.range = range; + } + + public PerformanceIndicator type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public PerformanceIndicator variables(List variables) { + this.variables = variables; + return this; + } + + public PerformanceIndicator addVariablesItem(Variable variablesItem) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + this.variables.add(variablesItem); + return this; + } + + /** + * Get variables + * @return variables + **/ + @ApiModelProperty(value = "") + public List getVariables() { + return variables; + } + + public void setVariables(List variables) { + this.variables = variables; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicator performanceIndicator = (PerformanceIndicator) o; + return Objects.equals(this.description, performanceIndicator.description) && + Objects.equals(this.equation, performanceIndicator.equation) && + Objects.equals(this.guid, performanceIndicator.guid) && + Objects.equals(this.id, performanceIndicator.id) && + Objects.equals(this.inUse, performanceIndicator.inUse) && + Objects.equals(this.name, performanceIndicator.name) && + Objects.equals(this.objectVersion, performanceIndicator.objectVersion) && + Objects.equals(this.publishVersion, performanceIndicator.publishVersion) && + Objects.equals(this.range, performanceIndicator.range) && + Objects.equals(this.type, performanceIndicator.type) && + Objects.equals(this.variables, performanceIndicator.variables); + } + + @Override + public int hashCode() { + return Objects.hash(description, equation, guid, id, inUse, name, objectVersion, publishVersion, range, type, variables); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicator {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" equation: ").append(toIndentedString(equation)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" range: ").append(toIndentedString(range)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicatorHistory.java b/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicatorHistory.java new file mode 100644 index 0000000..33543a4 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PerformanceIndicatorHistory.java @@ -0,0 +1,201 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Performance Indicator History DTO object. + */ +@ApiModel(description = "Performance Indicator History DTO object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PerformanceIndicatorHistory { + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("range") + private String range = null; + + @SerializedName("timestamp") + private OffsetDateTime timestamp = null; + + @SerializedName("value") + private Float value = null; + + public PerformanceIndicatorHistory description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * ID required when referencing an existing Performance Indicator History object + * @return id + **/ + @ApiModelProperty(value = "ID required when referencing an existing Performance Indicator History object") + public String getId() { + return id; + } + + public PerformanceIndicatorHistory name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorHistory range(String range) { + this.range = range; + return this; + } + + /** + * Range of values + * @return range + **/ + @ApiModelProperty(value = "Range of values") + public String getRange() { + return range; + } + + public void setRange(String range) { + this.range = range; + } + + public PerformanceIndicatorHistory timestamp(OffsetDateTime timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * Get timestamp + * @return timestamp + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getTimestamp() { + return timestamp; + } + + public void setTimestamp(OffsetDateTime timestamp) { + this.timestamp = timestamp; + } + + public PerformanceIndicatorHistory value(Float value) { + this.value = value; + return this; + } + + /** + * Required if referencing an existing Performance Indicator History object + * @return value + **/ + @ApiModelProperty(required = true, value = "Required if referencing an existing Performance Indicator History object") + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorHistory performanceIndicatorHistory = (PerformanceIndicatorHistory) o; + return Objects.equals(this.description, performanceIndicatorHistory.description) && + Objects.equals(this.id, performanceIndicatorHistory.id) && + Objects.equals(this.name, performanceIndicatorHistory.name) && + Objects.equals(this.range, performanceIndicatorHistory.range) && + Objects.equals(this.timestamp, performanceIndicatorHistory.timestamp) && + Objects.equals(this.value, performanceIndicatorHistory.value); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, name, range, timestamp, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorHistory {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" range: ").append(toIndentedString(range)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Permission.java b/src/main/java/com/fortify/ssc/restclient/model/Permission.java new file mode 100644 index 0000000..a3dd3b6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Permission.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Permission; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A permission in the server + */ +@ApiModel(description = "A permission in the server") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Permission { + @SerializedName("assignByDefault") + private Boolean assignByDefault = null; + + @SerializedName("dependsOnPermission") + private List dependsOnPermission = new ArrayList(); + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("permittedActions") + private List permittedActions = new ArrayList(); + + @SerializedName("userOnly") + private Boolean userOnly = null; + + public Permission assignByDefault(Boolean assignByDefault) { + this.assignByDefault = assignByDefault; + return this; + } + + /** + * Get assignByDefault + * @return assignByDefault + **/ + @ApiModelProperty(value = "") + public Boolean isAssignByDefault() { + return assignByDefault; + } + + public void setAssignByDefault(Boolean assignByDefault) { + this.assignByDefault = assignByDefault; + } + + public Permission dependsOnPermission(List dependsOnPermission) { + this.dependsOnPermission = dependsOnPermission; + return this; + } + + public Permission addDependsOnPermissionItem(Permission dependsOnPermissionItem) { + this.dependsOnPermission.add(dependsOnPermissionItem); + return this; + } + + /** + * Set of permissions this permission requires + * @return dependsOnPermission + **/ + @ApiModelProperty(required = true, value = "Set of permissions this permission requires") + public List getDependsOnPermission() { + return dependsOnPermission; + } + + public void setDependsOnPermission(List dependsOnPermission) { + this.dependsOnPermission = dependsOnPermission; + } + + /** + * Permission description + * @return description + **/ + @ApiModelProperty(required = true, value = "Permission description") + public String getDescription() { + return description; + } + + /** + * Permission id + * @return id + **/ + @ApiModelProperty(value = "Permission id") + public String getId() { + return id; + } + + /** + * Permission name + * @return name + **/ + @ApiModelProperty(required = true, value = "Permission name") + public String getName() { + return name; + } + + public Permission permittedActions(List permittedActions) { + this.permittedActions = permittedActions; + return this; + } + + public Permission addPermittedActionsItem(String permittedActionsItem) { + this.permittedActions.add(permittedActionsItem); + return this; + } + + /** + * Actions this permission is allowed to perform + * @return permittedActions + **/ + @ApiModelProperty(required = true, value = "Actions this permission is allowed to perform") + public List getPermittedActions() { + return permittedActions; + } + + public void setPermittedActions(List permittedActions) { + this.permittedActions = permittedActions; + } + + /** + * Flag is true if this permission can only be assigned to users, and not groups or organizations + * @return userOnly + **/ + @ApiModelProperty(example = "false", required = true, value = "Flag is true if this permission can only be assigned to users, and not groups or organizations") + public Boolean isUserOnly() { + return userOnly; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Permission permission = (Permission) o; + return Objects.equals(this.assignByDefault, permission.assignByDefault) && + Objects.equals(this.dependsOnPermission, permission.dependsOnPermission) && + Objects.equals(this.description, permission.description) && + Objects.equals(this.id, permission.id) && + Objects.equals(this.name, permission.name) && + Objects.equals(this.permittedActions, permission.permittedActions) && + Objects.equals(this.userOnly, permission.userOnly); + } + + @Override + public int hashCode() { + return Objects.hash(assignByDefault, dependsOnPermission, description, id, name, permittedActions, userOnly); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Permission {\n"); + + sb.append(" assignByDefault: ").append(toIndentedString(assignByDefault)).append("\n"); + sb.append(" dependsOnPermission: ").append(toIndentedString(dependsOnPermission)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" permittedActions: ").append(toIndentedString(permittedActions)).append("\n"); + sb.append(" userOnly: ").append(toIndentedString(userOnly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Persona.java b/src/main/java/com/fortify/ssc/restclient/model/Persona.java new file mode 100644 index 0000000..b7a29da --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Persona.java @@ -0,0 +1,223 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * A personality like project manager or developer + */ +@ApiModel(description = "A personality like project manager or developer") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Persona { + @SerializedName("description") + private String description = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + @SerializedName("superuser") + private Boolean superuser = null; + + public Persona description(String description) { + this.description = description; + return this; + } + + /** + * Persona description + * @return description + **/ + @ApiModelProperty(required = true, value = "Persona description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Persona guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Persona global unique identifier + * @return guid + **/ + @ApiModelProperty(required = true, value = "Persona global unique identifier") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + /** + * Identifier + * @return id + **/ + @ApiModelProperty(value = "Identifier") + public Long getId() { + return id; + } + + public Persona name(String name) { + this.name = name; + return this; + } + + /** + * Persona name + * @return name + **/ + @ApiModelProperty(required = true, value = "Persona name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Persona objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Object version + * @return objectVersion + **/ + @ApiModelProperty(required = true, value = "Object version") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public Persona publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Publish version + * @return publishVersion + **/ + @ApiModelProperty(required = true, value = "Publish version") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public Persona superuser(Boolean superuser) { + this.superuser = superuser; + return this; + } + + /** + * Set to true if persona is super user + * @return superuser + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if persona is super user") + public Boolean isSuperuser() { + return superuser; + } + + public void setSuperuser(Boolean superuser) { + this.superuser = superuser; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Persona persona = (Persona) o; + return Objects.equals(this.description, persona.description) && + Objects.equals(this.guid, persona.guid) && + Objects.equals(this.id, persona.id) && + Objects.equals(this.name, persona.name) && + Objects.equals(this.objectVersion, persona.objectVersion) && + Objects.equals(this.publishVersion, persona.publishVersion) && + Objects.equals(this.superuser, persona.superuser); + } + + @Override + public int hashCode() { + return Objects.hash(description, guid, id, name, objectVersion, publishVersion, superuser); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Persona {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" superuser: ").append(toIndentedString(superuser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PluginConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/PluginConfiguration.java new file mode 100644 index 0000000..f8ad38d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PluginConfiguration.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * additional configuration needed for a plugin. + */ +@ApiModel(description = "additional configuration needed for a plugin.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PluginConfiguration { + @SerializedName("parameterName") + private String parameterName = null; + + @SerializedName("parameterType") + private String parameterType = null; + + public PluginConfiguration parameterName(String parameterName) { + this.parameterName = parameterName; + return this; + } + + /** + * Get parameterName + * @return parameterName + **/ + @ApiModelProperty(value = "") + public String getParameterName() { + return parameterName; + } + + public void setParameterName(String parameterName) { + this.parameterName = parameterName; + } + + public PluginConfiguration parameterType(String parameterType) { + this.parameterType = parameterType; + return this; + } + + /** + * Get parameterType + * @return parameterType + **/ + @ApiModelProperty(value = "") + public String getParameterType() { + return parameterType; + } + + public void setParameterType(String parameterType) { + this.parameterType = parameterType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PluginConfiguration pluginConfiguration = (PluginConfiguration) o; + return Objects.equals(this.parameterName, pluginConfiguration.parameterName) && + Objects.equals(this.parameterType, pluginConfiguration.parameterType); + } + + @Override + public int hashCode() { + return Objects.hash(parameterName, parameterType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PluginConfiguration {\n"); + + sb.append(" parameterName: ").append(toIndentedString(parameterName)).append("\n"); + sb.append(" parameterType: ").append(toIndentedString(parameterType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PluginDisableRequest.java b/src/main/java/com/fortify/ssc/restclient/model/PluginDisableRequest.java new file mode 100644 index 0000000..bd83d93 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PluginDisableRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of disabling plugin + */ +@ApiModel(description = "Request of disabling plugin") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PluginDisableRequest { + @SerializedName("pluginIds") + private List pluginIds = new ArrayList(); + + public PluginDisableRequest pluginIds(List pluginIds) { + this.pluginIds = pluginIds; + return this; + } + + public PluginDisableRequest addPluginIdsItem(Long pluginIdsItem) { + this.pluginIds.add(pluginIdsItem); + return this; + } + + /** + * List containing single plugin ID to disable + * @return pluginIds + **/ + @ApiModelProperty(required = true, value = "List containing single plugin ID to disable") + public List getPluginIds() { + return pluginIds; + } + + public void setPluginIds(List pluginIds) { + this.pluginIds = pluginIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PluginDisableRequest pluginDisableRequest = (PluginDisableRequest) o; + return Objects.equals(this.pluginIds, pluginDisableRequest.pluginIds); + } + + @Override + public int hashCode() { + return Objects.hash(pluginIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PluginDisableRequest {\n"); + + sb.append(" pluginIds: ").append(toIndentedString(pluginIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PluginEnableRequest.java b/src/main/java/com/fortify/ssc/restclient/model/PluginEnableRequest.java new file mode 100644 index 0000000..6d47bf8 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PluginEnableRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of enabling plugin + */ +@ApiModel(description = "Request of enabling plugin") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PluginEnableRequest { + @SerializedName("pluginIds") + private List pluginIds = new ArrayList(); + + public PluginEnableRequest pluginIds(List pluginIds) { + this.pluginIds = pluginIds; + return this; + } + + public PluginEnableRequest addPluginIdsItem(Long pluginIdsItem) { + this.pluginIds.add(pluginIdsItem); + return this; + } + + /** + * List containing single plugin ID to enable + * @return pluginIds + **/ + @ApiModelProperty(required = true, value = "List containing single plugin ID to enable") + public List getPluginIds() { + return pluginIds; + } + + public void setPluginIds(List pluginIds) { + this.pluginIds = pluginIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PluginEnableRequest pluginEnableRequest = (PluginEnableRequest) o; + return Objects.equals(this.pluginIds, pluginEnableRequest.pluginIds); + } + + @Override + public int hashCode() { + return Objects.hash(pluginIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PluginEnableRequest {\n"); + + sb.append(" pluginIds: ").append(toIndentedString(pluginIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PluginLocalization.java b/src/main/java/com/fortify/ssc/restclient/model/PluginLocalization.java new file mode 100644 index 0000000..93b4963 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PluginLocalization.java @@ -0,0 +1,64 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import java.util.HashMap; +import java.util.Map; + +/** + * PluginLocalization + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PluginLocalization extends HashMap { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PluginLocalization {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/PluginMetaData.java b/src/main/java/com/fortify/ssc/restclient/model/PluginMetaData.java new file mode 100644 index 0000000..a9ca5cf --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/PluginMetaData.java @@ -0,0 +1,499 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.PluginConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * plugin meta data holds attributes of the plugins installed in the application. + */ +@ApiModel(description = "plugin meta data holds attributes of the plugins installed in the application.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class PluginMetaData { + @SerializedName("apiVersion") + private String apiVersion = null; + + @SerializedName("dataVersion") + private Integer dataVersion = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("engineType") + private String engineType = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("lastUsedOfKind") + private Boolean lastUsedOfKind = null; + + @SerializedName("pluginConfiguration") + private List pluginConfiguration = new ArrayList(); + + @SerializedName("pluginId") + private String pluginId = null; + + @SerializedName("pluginName") + private String pluginName = null; + + /** + * State of the plugin instance + */ + @JsonAdapter(PluginStateEnum.Adapter.class) + public enum PluginStateEnum { + STOPPED("STOPPED"), + + STARTING("STARTING"), + + STARTED("STARTED"), + + STOPPING("STOPPING"), + + FAILED_TO_START("FAILED_TO_START"), + + FAILED_TO_STOP("FAILED_TO_STOP"), + + UNKNOWN("UNKNOWN"); + + private String value; + + PluginStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PluginStateEnum fromValue(String text) { + for (PluginStateEnum b : PluginStateEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PluginStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PluginStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PluginStateEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("pluginState") + private PluginStateEnum pluginState = null; + + /** + * Denotes functionality of the plugin instance, such as scan parsing, bugtracker integration. + */ + @JsonAdapter(PluginTypeEnum.Adapter.class) + public enum PluginTypeEnum { + SCAN_PARSER("SCAN_PARSER"), + + BUG_TRACKER("BUG_TRACKER"), + + LEGACY_BUG_TRACKER("LEGACY_BUG_TRACKER"); + + private String value; + + PluginTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PluginTypeEnum fromValue(String text) { + for (PluginTypeEnum b : PluginTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PluginTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PluginTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PluginTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("pluginType") + private PluginTypeEnum pluginType = null; + + @SerializedName("pluginVersion") + private String pluginVersion = null; + + @SerializedName("supportedEngineVersions") + private String supportedEngineVersions = null; + + @SerializedName("systemInstalled") + private Boolean systemInstalled = null; + + @SerializedName("vendorName") + private String vendorName = null; + + @SerializedName("vendorUrl") + private String vendorUrl = null; + + public PluginMetaData apiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Version string of the SSC plugin api used to develop the plugin + * @return apiVersion + **/ + @ApiModelProperty(required = true, value = "Version string of the SSC plugin api used to develop the plugin") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + public PluginMetaData dataVersion(Integer dataVersion) { + this.dataVersion = dataVersion; + return this; + } + + /** + * An integer used to tag the set of issue attributes provided by this plugin. + * @return dataVersion + **/ + @ApiModelProperty(required = true, value = "An integer used to tag the set of issue attributes provided by this plugin.") + public Integer getDataVersion() { + return dataVersion; + } + + public void setDataVersion(Integer dataVersion) { + this.dataVersion = dataVersion; + } + + /** + * Plugin description + * @return description + **/ + @ApiModelProperty(value = "Plugin description") + public String getDescription() { + return description; + } + + /** + * Name of the scan engine supported by the plugin. Value is defined for parser plugins only + * @return engineType + **/ + @ApiModelProperty(value = "Name of the scan engine supported by the plugin. Value is defined for parser plugins only") + public String getEngineType() { + return engineType; + } + + /** + * Plugin unique identifier + * @return id + **/ + @ApiModelProperty(value = "Plugin unique identifier") + public Long getId() { + return id; + } + + public PluginMetaData lastUsedOfKind(Boolean lastUsedOfKind) { + this.lastUsedOfKind = lastUsedOfKind; + return this; + } + + /** + * Tracks whether this plugin instance was the most recently used of its kind + * @return lastUsedOfKind + **/ + @ApiModelProperty(example = "false", required = true, value = "Tracks whether this plugin instance was the most recently used of its kind") + public Boolean isLastUsedOfKind() { + return lastUsedOfKind; + } + + public void setLastUsedOfKind(Boolean lastUsedOfKind) { + this.lastUsedOfKind = lastUsedOfKind; + } + + public PluginMetaData pluginConfiguration(List pluginConfiguration) { + this.pluginConfiguration = pluginConfiguration; + return this; + } + + public PluginMetaData addPluginConfigurationItem(PluginConfiguration pluginConfigurationItem) { + this.pluginConfiguration.add(pluginConfigurationItem); + return this; + } + + /** + * Additional configuration properties used by the plugin + * @return pluginConfiguration + **/ + @ApiModelProperty(required = true, value = "Additional configuration properties used by the plugin") + public List getPluginConfiguration() { + return pluginConfiguration; + } + + public void setPluginConfiguration(List pluginConfiguration) { + this.pluginConfiguration = pluginConfiguration; + } + + public PluginMetaData pluginId(String pluginId) { + this.pluginId = pluginId; + return this; + } + + /** + * Identifier of the plugin, usually a fully-qualified classname. Non-unique when multiple versions of same plugin exist + * @return pluginId + **/ + @ApiModelProperty(required = true, value = "Identifier of the plugin, usually a fully-qualified classname. Non-unique when multiple versions of same plugin exist") + public String getPluginId() { + return pluginId; + } + + public void setPluginId(String pluginId) { + this.pluginId = pluginId; + } + + public PluginMetaData pluginName(String pluginName) { + this.pluginName = pluginName; + return this; + } + + /** + * A string name for the plugin + * @return pluginName + **/ + @ApiModelProperty(required = true, value = "A string name for the plugin") + public String getPluginName() { + return pluginName; + } + + public void setPluginName(String pluginName) { + this.pluginName = pluginName; + } + + public PluginMetaData pluginState(PluginStateEnum pluginState) { + this.pluginState = pluginState; + return this; + } + + /** + * State of the plugin instance + * @return pluginState + **/ + @ApiModelProperty(required = true, value = "State of the plugin instance") + public PluginStateEnum getPluginState() { + return pluginState; + } + + public void setPluginState(PluginStateEnum pluginState) { + this.pluginState = pluginState; + } + + public PluginMetaData pluginType(PluginTypeEnum pluginType) { + this.pluginType = pluginType; + return this; + } + + /** + * Denotes functionality of the plugin instance, such as scan parsing, bugtracker integration. + * @return pluginType + **/ + @ApiModelProperty(required = true, value = "Denotes functionality of the plugin instance, such as scan parsing, bugtracker integration.") + public PluginTypeEnum getPluginType() { + return pluginType; + } + + public void setPluginType(PluginTypeEnum pluginType) { + this.pluginType = pluginType; + } + + public PluginMetaData pluginVersion(String pluginVersion) { + this.pluginVersion = pluginVersion; + return this; + } + + /** + * A version string of the implementation code of the plugin + * @return pluginVersion + **/ + @ApiModelProperty(required = true, value = "A version string of the implementation code of the plugin") + public String getPluginVersion() { + return pluginVersion; + } + + public void setPluginVersion(String pluginVersion) { + this.pluginVersion = pluginVersion; + } + + /** + * Versions of the scan engine results supported by the plugin. Value is defined for parser plugins only + * @return supportedEngineVersions + **/ + @ApiModelProperty(value = "Versions of the scan engine results supported by the plugin. Value is defined for parser plugins only") + public String getSupportedEngineVersions() { + return supportedEngineVersions; + } + + public PluginMetaData systemInstalled(Boolean systemInstalled) { + this.systemInstalled = systemInstalled; + return this; + } + + /** + * whether the plugin instance was installed by adding the jar to a special system folder + * @return systemInstalled + **/ + @ApiModelProperty(example = "false", required = true, value = "whether the plugin instance was installed by adding the jar to a special system folder") + public Boolean isSystemInstalled() { + return systemInstalled; + } + + public void setSystemInstalled(Boolean systemInstalled) { + this.systemInstalled = systemInstalled; + } + + /** + * Name of the company / organization that developed the plugin + * @return vendorName + **/ + @ApiModelProperty(value = "Name of the company / organization that developed the plugin") + public String getVendorName() { + return vendorName; + } + + /** + * Plugin vendor's web site URL + * @return vendorUrl + **/ + @ApiModelProperty(value = "Plugin vendor's web site URL") + public String getVendorUrl() { + return vendorUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PluginMetaData pluginMetaData = (PluginMetaData) o; + return Objects.equals(this.apiVersion, pluginMetaData.apiVersion) && + Objects.equals(this.dataVersion, pluginMetaData.dataVersion) && + Objects.equals(this.description, pluginMetaData.description) && + Objects.equals(this.engineType, pluginMetaData.engineType) && + Objects.equals(this.id, pluginMetaData.id) && + Objects.equals(this.lastUsedOfKind, pluginMetaData.lastUsedOfKind) && + Objects.equals(this.pluginConfiguration, pluginMetaData.pluginConfiguration) && + Objects.equals(this.pluginId, pluginMetaData.pluginId) && + Objects.equals(this.pluginName, pluginMetaData.pluginName) && + Objects.equals(this.pluginState, pluginMetaData.pluginState) && + Objects.equals(this.pluginType, pluginMetaData.pluginType) && + Objects.equals(this.pluginVersion, pluginMetaData.pluginVersion) && + Objects.equals(this.supportedEngineVersions, pluginMetaData.supportedEngineVersions) && + Objects.equals(this.systemInstalled, pluginMetaData.systemInstalled) && + Objects.equals(this.vendorName, pluginMetaData.vendorName) && + Objects.equals(this.vendorUrl, pluginMetaData.vendorUrl); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, dataVersion, description, engineType, id, lastUsedOfKind, pluginConfiguration, pluginId, pluginName, pluginState, pluginType, pluginVersion, supportedEngineVersions, systemInstalled, vendorName, vendorUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PluginMetaData {\n"); + + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" dataVersion: ").append(toIndentedString(dataVersion)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" engineType: ").append(toIndentedString(engineType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastUsedOfKind: ").append(toIndentedString(lastUsedOfKind)).append("\n"); + sb.append(" pluginConfiguration: ").append(toIndentedString(pluginConfiguration)).append("\n"); + sb.append(" pluginId: ").append(toIndentedString(pluginId)).append("\n"); + sb.append(" pluginName: ").append(toIndentedString(pluginName)).append("\n"); + sb.append(" pluginState: ").append(toIndentedString(pluginState)).append("\n"); + sb.append(" pluginType: ").append(toIndentedString(pluginType)).append("\n"); + sb.append(" pluginVersion: ").append(toIndentedString(pluginVersion)).append("\n"); + sb.append(" supportedEngineVersions: ").append(toIndentedString(supportedEngineVersions)).append("\n"); + sb.append(" systemInstalled: ").append(toIndentedString(systemInstalled)).append("\n"); + sb.append(" vendorName: ").append(toIndentedString(vendorName)).append("\n"); + sb.append(" vendorUrl: ").append(toIndentedString(vendorUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Project.java b/src/main/java/com/fortify/ssc/restclient/model/Project.java new file mode 100644 index 0000000..be67959 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Project.java @@ -0,0 +1,192 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * A project or application on the server + */ +@ApiModel(description = "A project or application on the server") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Project { + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("creationDate") + private OffsetDateTime creationDate = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("issueTemplateId") + private String issueTemplateId = null; + + @SerializedName("name") + private String name = null; + + public Project createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * User that created this project + * @return createdBy + **/ + @ApiModelProperty(required = true, value = "User that created this project") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + /** + * Date created + * @return creationDate + **/ + @ApiModelProperty(required = true, value = "Date created") + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public Project description(String description) { + this.description = description; + return this; + } + + /** + * Description + * @return description + **/ + @ApiModelProperty(value = "Description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Id + * @return id + **/ + @ApiModelProperty(value = "Id") + public Long getId() { + return id; + } + + public Project issueTemplateId(String issueTemplateId) { + this.issueTemplateId = issueTemplateId; + return this; + } + + /** + * Id of the Issue Template used + * @return issueTemplateId + **/ + @ApiModelProperty(required = true, value = "Id of the Issue Template used") + public String getIssueTemplateId() { + return issueTemplateId; + } + + public void setIssueTemplateId(String issueTemplateId) { + this.issueTemplateId = issueTemplateId; + } + + public Project name(String name) { + this.name = name; + return this; + } + + /** + * Name + * @return name + **/ + @ApiModelProperty(required = true, value = "Name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Project project = (Project) o; + return Objects.equals(this.createdBy, project.createdBy) && + Objects.equals(this.creationDate, project.creationDate) && + Objects.equals(this.description, project.description) && + Objects.equals(this.id, project.id) && + Objects.equals(this.issueTemplateId, project.issueTemplateId) && + Objects.equals(this.name, project.name); + } + + @Override + public int hashCode() { + return Objects.hash(createdBy, creationDate, description, id, issueTemplateId, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Project {\n"); + + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issueTemplateId: ").append(toIndentedString(issueTemplateId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersion.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersion.java new file mode 100644 index 0000000..021f1d5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersion.java @@ -0,0 +1,949 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.Project; +import com.fortify.ssc.restclient.model.ProjectVersionState; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * A version of a project or application on the server + */ +@ApiModel(description = "A version of a project or application on the server") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersion { + @SerializedName("active") + private Boolean active = null; + + @SerializedName("assignedIssuesCount") + private Long assignedIssuesCount = null; + + @SerializedName("attachmentsOutOfDate") + private Boolean attachmentsOutOfDate = null; + + @SerializedName("autoPredict") + private Boolean autoPredict = null; + + @SerializedName("bugTrackerEnabled") + private Boolean bugTrackerEnabled = null; + + @SerializedName("bugTrackerPluginId") + private String bugTrackerPluginId = null; + + @SerializedName("committed") + private Boolean committed = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("creationDate") + private OffsetDateTime creationDate = null; + + @SerializedName("currentState") + private ProjectVersionState currentState = null; + + @SerializedName("customTagValuesAutoApply") + private Boolean customTagValuesAutoApply = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("issueTemplateId") + private String issueTemplateId = null; + + @SerializedName("issueTemplateModifiedTime") + private Long issueTemplateModifiedTime = null; + + @SerializedName("issueTemplateName") + private String issueTemplateName = null; + + @SerializedName("latestScanId") + private Long latestScanId = null; + + @SerializedName("loadProperties") + private String loadProperties = null; + + @SerializedName("masterAttrGuid") + private String masterAttrGuid = null; + + @SerializedName("migrationVersion") + private Float migrationVersion = null; + + /** + * Gets or Sets mode + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + NONE("NONE"), + + ASSESSMENT("ASSESSMENT"), + + BASIC("BASIC"), + + FULL("FULL"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("obfuscatedId") + private String obfuscatedId = null; + + @SerializedName("owner") + private String owner = null; + + @SerializedName("project") + private Project project = null; + + @SerializedName("refreshRequired") + private Boolean refreshRequired = null; + + @SerializedName("securityGroup") + private String securityGroup = null; + + @SerializedName("serverVersion") + private Float serverVersion = null; + + @SerializedName("siteId") + private String siteId = null; + + @SerializedName("snapshotOutOfDate") + private Boolean snapshotOutOfDate = null; + + @SerializedName("sourceBasePath") + private String sourceBasePath = null; + + @SerializedName("staleIssueTemplate") + private Boolean staleIssueTemplate = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + ACTIVE("ACTIVE"), + + DELETING("DELETING"), + + ARCHIVED("ARCHIVED"), + + COPYING_ISSUES("COPYING_ISSUES"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("tracesOutOfDate") + private Boolean tracesOutOfDate = null; + + public ProjectVersion active(Boolean active) { + this.active = active; + return this; + } + + /** + * True if this version is active + * @return active + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this version is active") + public Boolean isActive() { + return active; + } + + public void setActive(Boolean active) { + this.active = active; + } + + public ProjectVersion assignedIssuesCount(Long assignedIssuesCount) { + this.assignedIssuesCount = assignedIssuesCount; + return this; + } + + /** + * Get assignedIssuesCount + * @return assignedIssuesCount + **/ + @ApiModelProperty(value = "") + public Long getAssignedIssuesCount() { + return assignedIssuesCount; + } + + public void setAssignedIssuesCount(Long assignedIssuesCount) { + this.assignedIssuesCount = assignedIssuesCount; + } + + public ProjectVersion attachmentsOutOfDate(Boolean attachmentsOutOfDate) { + this.attachmentsOutOfDate = attachmentsOutOfDate; + return this; + } + + /** + * Get attachmentsOutOfDate + * @return attachmentsOutOfDate + **/ + @ApiModelProperty(value = "") + public Boolean isAttachmentsOutOfDate() { + return attachmentsOutOfDate; + } + + public void setAttachmentsOutOfDate(Boolean attachmentsOutOfDate) { + this.attachmentsOutOfDate = attachmentsOutOfDate; + } + + public ProjectVersion autoPredict(Boolean autoPredict) { + this.autoPredict = autoPredict; + return this; + } + + /** + * true if auto-prediction is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission. + * @return autoPredict + **/ + @ApiModelProperty(example = "false", value = "true if auto-prediction is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission.") + public Boolean isAutoPredict() { + return autoPredict; + } + + public void setAutoPredict(Boolean autoPredict) { + this.autoPredict = autoPredict; + } + + public ProjectVersion bugTrackerEnabled(Boolean bugTrackerEnabled) { + this.bugTrackerEnabled = bugTrackerEnabled; + return this; + } + + /** + * true if the bug tracker plugin assigned to the application version is currently enabled in the system + * @return bugTrackerEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "true if the bug tracker plugin assigned to the application version is currently enabled in the system") + public Boolean isBugTrackerEnabled() { + return bugTrackerEnabled; + } + + public void setBugTrackerEnabled(Boolean bugTrackerEnabled) { + this.bugTrackerEnabled = bugTrackerEnabled; + } + + public ProjectVersion bugTrackerPluginId(String bugTrackerPluginId) { + this.bugTrackerPluginId = bugTrackerPluginId; + return this; + } + + /** + * identifier of the bug tracker plugin (if any) assigned to this application version + * @return bugTrackerPluginId + **/ + @ApiModelProperty(required = true, value = "identifier of the bug tracker plugin (if any) assigned to this application version") + public String getBugTrackerPluginId() { + return bugTrackerPluginId; + } + + public void setBugTrackerPluginId(String bugTrackerPluginId) { + this.bugTrackerPluginId = bugTrackerPluginId; + } + + public ProjectVersion committed(Boolean committed) { + this.committed = committed; + return this; + } + + /** + * True if this version is committed and ready to be used + * @return committed + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this version is committed and ready to be used") + public Boolean isCommitted() { + return committed; + } + + public void setCommitted(Boolean committed) { + this.committed = committed; + } + + public ProjectVersion createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * User that created this version + * @return createdBy + **/ + @ApiModelProperty(required = true, value = "User that created this version") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public ProjectVersion creationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * Date this version was created + * @return creationDate + **/ + @ApiModelProperty(required = true, value = "Date this version was created") + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public ProjectVersion currentState(ProjectVersionState currentState) { + this.currentState = currentState; + return this; + } + + /** + * Get currentState + * @return currentState + **/ + @ApiModelProperty(value = "") + public ProjectVersionState getCurrentState() { + return currentState; + } + + public void setCurrentState(ProjectVersionState currentState) { + this.currentState = currentState; + } + + public ProjectVersion customTagValuesAutoApply(Boolean customTagValuesAutoApply) { + this.customTagValuesAutoApply = customTagValuesAutoApply; + return this; + } + + /** + * true if custom tag values auto-apply is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission. + * @return customTagValuesAutoApply + **/ + @ApiModelProperty(example = "false", value = "true if custom tag values auto-apply is enabled for this project version; false otherwise. This property modification is protected by AUDITASSISTANT_MANAGE permission.") + public Boolean isCustomTagValuesAutoApply() { + return customTagValuesAutoApply; + } + + public void setCustomTagValuesAutoApply(Boolean customTagValuesAutoApply) { + this.customTagValuesAutoApply = customTagValuesAutoApply; + } + + public ProjectVersion description(String description) { + this.description = description; + return this; + } + + /** + * Description + * @return description + **/ + @ApiModelProperty(required = true, value = "Description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Id + * @return id + **/ + @ApiModelProperty(value = "Id") + public Long getId() { + return id; + } + + public ProjectVersion issueTemplateId(String issueTemplateId) { + this.issueTemplateId = issueTemplateId; + return this; + } + + /** + * Id of the Issue Template used by this version + * @return issueTemplateId + **/ + @ApiModelProperty(required = true, value = "Id of the Issue Template used by this version") + public String getIssueTemplateId() { + return issueTemplateId; + } + + public void setIssueTemplateId(String issueTemplateId) { + this.issueTemplateId = issueTemplateId; + } + + public ProjectVersion issueTemplateModifiedTime(Long issueTemplateModifiedTime) { + this.issueTemplateModifiedTime = issueTemplateModifiedTime; + return this; + } + + /** + * Last time the Issue Template was modified + * @return issueTemplateModifiedTime + **/ + @ApiModelProperty(required = true, value = "Last time the Issue Template was modified") + public Long getIssueTemplateModifiedTime() { + return issueTemplateModifiedTime; + } + + public void setIssueTemplateModifiedTime(Long issueTemplateModifiedTime) { + this.issueTemplateModifiedTime = issueTemplateModifiedTime; + } + + public ProjectVersion issueTemplateName(String issueTemplateName) { + this.issueTemplateName = issueTemplateName; + return this; + } + + /** + * Name of the Issue Template used by this version + * @return issueTemplateName + **/ + @ApiModelProperty(required = true, value = "Name of the Issue Template used by this version") + public String getIssueTemplateName() { + return issueTemplateName; + } + + public void setIssueTemplateName(String issueTemplateName) { + this.issueTemplateName = issueTemplateName; + } + + public ProjectVersion latestScanId(Long latestScanId) { + this.latestScanId = latestScanId; + return this; + } + + /** + * id of the latest scan uploaded to application version + * @return latestScanId + **/ + @ApiModelProperty(required = true, value = "id of the latest scan uploaded to application version") + public Long getLatestScanId() { + return latestScanId; + } + + public void setLatestScanId(Long latestScanId) { + this.latestScanId = latestScanId; + } + + public ProjectVersion loadProperties(String loadProperties) { + this.loadProperties = loadProperties; + return this; + } + + /** + * Get loadProperties + * @return loadProperties + **/ + @ApiModelProperty(value = "") + public String getLoadProperties() { + return loadProperties; + } + + public void setLoadProperties(String loadProperties) { + this.loadProperties = loadProperties; + } + + public ProjectVersion masterAttrGuid(String masterAttrGuid) { + this.masterAttrGuid = masterAttrGuid; + return this; + } + + /** + * Guid of the primary custom tag for this version + * @return masterAttrGuid + **/ + @ApiModelProperty(required = true, value = "Guid of the primary custom tag for this version") + public String getMasterAttrGuid() { + return masterAttrGuid; + } + + public void setMasterAttrGuid(String masterAttrGuid) { + this.masterAttrGuid = masterAttrGuid; + } + + public ProjectVersion migrationVersion(Float migrationVersion) { + this.migrationVersion = migrationVersion; + return this; + } + + /** + * Get migrationVersion + * @return migrationVersion + **/ + @ApiModelProperty(value = "") + public Float getMigrationVersion() { + return migrationVersion; + } + + public void setMigrationVersion(Float migrationVersion) { + this.migrationVersion = migrationVersion; + } + + public ProjectVersion mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * Get mode + * @return mode + **/ + @ApiModelProperty(value = "") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public ProjectVersion name(String name) { + this.name = name; + return this; + } + + /** + * Name + * @return name + **/ + @ApiModelProperty(required = true, value = "Name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProjectVersion obfuscatedId(String obfuscatedId) { + this.obfuscatedId = obfuscatedId; + return this; + } + + /** + * Get obfuscatedId + * @return obfuscatedId + **/ + @ApiModelProperty(value = "") + public String getObfuscatedId() { + return obfuscatedId; + } + + public void setObfuscatedId(String obfuscatedId) { + this.obfuscatedId = obfuscatedId; + } + + public ProjectVersion owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Owner of this version + * @return owner + **/ + @ApiModelProperty(required = true, value = "Owner of this version") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ProjectVersion project(Project project) { + this.project = project; + return this; + } + + /** + * Get project + * @return project + **/ + @ApiModelProperty(value = "") + public Project getProject() { + return project; + } + + public void setProject(Project project) { + this.project = project; + } + + public ProjectVersion refreshRequired(Boolean refreshRequired) { + this.refreshRequired = refreshRequired; + return this; + } + + /** + * Get refreshRequired + * @return refreshRequired + **/ + @ApiModelProperty(value = "") + public Boolean isRefreshRequired() { + return refreshRequired; + } + + public void setRefreshRequired(Boolean refreshRequired) { + this.refreshRequired = refreshRequired; + } + + public ProjectVersion securityGroup(String securityGroup) { + this.securityGroup = securityGroup; + return this; + } + + /** + * Get securityGroup + * @return securityGroup + **/ + @ApiModelProperty(value = "") + public String getSecurityGroup() { + return securityGroup; + } + + public void setSecurityGroup(String securityGroup) { + this.securityGroup = securityGroup; + } + + public ProjectVersion serverVersion(Float serverVersion) { + this.serverVersion = serverVersion; + return this; + } + + /** + * Server version this version's data supports + * @return serverVersion + **/ + @ApiModelProperty(required = true, value = "Server version this version's data supports") + public Float getServerVersion() { + return serverVersion; + } + + public void setServerVersion(Float serverVersion) { + this.serverVersion = serverVersion; + } + + public ProjectVersion siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Get siteId + * @return siteId + **/ + @ApiModelProperty(value = "") + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public ProjectVersion snapshotOutOfDate(Boolean snapshotOutOfDate) { + this.snapshotOutOfDate = snapshotOutOfDate; + return this; + } + + /** + * True if the most recent snapshot is not accurate + * @return snapshotOutOfDate + **/ + @ApiModelProperty(example = "false", required = true, value = "True if the most recent snapshot is not accurate") + public Boolean isSnapshotOutOfDate() { + return snapshotOutOfDate; + } + + public void setSnapshotOutOfDate(Boolean snapshotOutOfDate) { + this.snapshotOutOfDate = snapshotOutOfDate; + } + + public ProjectVersion sourceBasePath(String sourceBasePath) { + this.sourceBasePath = sourceBasePath; + return this; + } + + /** + * Get sourceBasePath + * @return sourceBasePath + **/ + @ApiModelProperty(value = "") + public String getSourceBasePath() { + return sourceBasePath; + } + + public void setSourceBasePath(String sourceBasePath) { + this.sourceBasePath = sourceBasePath; + } + + public ProjectVersion staleIssueTemplate(Boolean staleIssueTemplate) { + this.staleIssueTemplate = staleIssueTemplate; + return this; + } + + /** + * True if this version's Issue Template has changed or been modified + * @return staleIssueTemplate + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this version's Issue Template has changed or been modified") + public Boolean isStaleIssueTemplate() { + return staleIssueTemplate; + } + + public void setStaleIssueTemplate(Boolean staleIssueTemplate) { + this.staleIssueTemplate = staleIssueTemplate; + } + + public ProjectVersion status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public ProjectVersion tracesOutOfDate(Boolean tracesOutOfDate) { + this.tracesOutOfDate = tracesOutOfDate; + return this; + } + + /** + * Get tracesOutOfDate + * @return tracesOutOfDate + **/ + @ApiModelProperty(value = "") + public Boolean isTracesOutOfDate() { + return tracesOutOfDate; + } + + public void setTracesOutOfDate(Boolean tracesOutOfDate) { + this.tracesOutOfDate = tracesOutOfDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersion projectVersion = (ProjectVersion) o; + return Objects.equals(this.active, projectVersion.active) && + Objects.equals(this.assignedIssuesCount, projectVersion.assignedIssuesCount) && + Objects.equals(this.attachmentsOutOfDate, projectVersion.attachmentsOutOfDate) && + Objects.equals(this.autoPredict, projectVersion.autoPredict) && + Objects.equals(this.bugTrackerEnabled, projectVersion.bugTrackerEnabled) && + Objects.equals(this.bugTrackerPluginId, projectVersion.bugTrackerPluginId) && + Objects.equals(this.committed, projectVersion.committed) && + Objects.equals(this.createdBy, projectVersion.createdBy) && + Objects.equals(this.creationDate, projectVersion.creationDate) && + Objects.equals(this.currentState, projectVersion.currentState) && + Objects.equals(this.customTagValuesAutoApply, projectVersion.customTagValuesAutoApply) && + Objects.equals(this.description, projectVersion.description) && + Objects.equals(this.id, projectVersion.id) && + Objects.equals(this.issueTemplateId, projectVersion.issueTemplateId) && + Objects.equals(this.issueTemplateModifiedTime, projectVersion.issueTemplateModifiedTime) && + Objects.equals(this.issueTemplateName, projectVersion.issueTemplateName) && + Objects.equals(this.latestScanId, projectVersion.latestScanId) && + Objects.equals(this.loadProperties, projectVersion.loadProperties) && + Objects.equals(this.masterAttrGuid, projectVersion.masterAttrGuid) && + Objects.equals(this.migrationVersion, projectVersion.migrationVersion) && + Objects.equals(this.mode, projectVersion.mode) && + Objects.equals(this.name, projectVersion.name) && + Objects.equals(this.obfuscatedId, projectVersion.obfuscatedId) && + Objects.equals(this.owner, projectVersion.owner) && + Objects.equals(this.project, projectVersion.project) && + Objects.equals(this.refreshRequired, projectVersion.refreshRequired) && + Objects.equals(this.securityGroup, projectVersion.securityGroup) && + Objects.equals(this.serverVersion, projectVersion.serverVersion) && + Objects.equals(this.siteId, projectVersion.siteId) && + Objects.equals(this.snapshotOutOfDate, projectVersion.snapshotOutOfDate) && + Objects.equals(this.sourceBasePath, projectVersion.sourceBasePath) && + Objects.equals(this.staleIssueTemplate, projectVersion.staleIssueTemplate) && + Objects.equals(this.status, projectVersion.status) && + Objects.equals(this.tracesOutOfDate, projectVersion.tracesOutOfDate); + } + + @Override + public int hashCode() { + return Objects.hash(active, assignedIssuesCount, attachmentsOutOfDate, autoPredict, bugTrackerEnabled, bugTrackerPluginId, committed, createdBy, creationDate, currentState, customTagValuesAutoApply, description, id, issueTemplateId, issueTemplateModifiedTime, issueTemplateName, latestScanId, loadProperties, masterAttrGuid, migrationVersion, mode, name, obfuscatedId, owner, project, refreshRequired, securityGroup, serverVersion, siteId, snapshotOutOfDate, sourceBasePath, staleIssueTemplate, status, tracesOutOfDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersion {\n"); + + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" assignedIssuesCount: ").append(toIndentedString(assignedIssuesCount)).append("\n"); + sb.append(" attachmentsOutOfDate: ").append(toIndentedString(attachmentsOutOfDate)).append("\n"); + sb.append(" autoPredict: ").append(toIndentedString(autoPredict)).append("\n"); + sb.append(" bugTrackerEnabled: ").append(toIndentedString(bugTrackerEnabled)).append("\n"); + sb.append(" bugTrackerPluginId: ").append(toIndentedString(bugTrackerPluginId)).append("\n"); + sb.append(" committed: ").append(toIndentedString(committed)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" currentState: ").append(toIndentedString(currentState)).append("\n"); + sb.append(" customTagValuesAutoApply: ").append(toIndentedString(customTagValuesAutoApply)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issueTemplateId: ").append(toIndentedString(issueTemplateId)).append("\n"); + sb.append(" issueTemplateModifiedTime: ").append(toIndentedString(issueTemplateModifiedTime)).append("\n"); + sb.append(" issueTemplateName: ").append(toIndentedString(issueTemplateName)).append("\n"); + sb.append(" latestScanId: ").append(toIndentedString(latestScanId)).append("\n"); + sb.append(" loadProperties: ").append(toIndentedString(loadProperties)).append("\n"); + sb.append(" masterAttrGuid: ").append(toIndentedString(masterAttrGuid)).append("\n"); + sb.append(" migrationVersion: ").append(toIndentedString(migrationVersion)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" obfuscatedId: ").append(toIndentedString(obfuscatedId)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" project: ").append(toIndentedString(project)).append("\n"); + sb.append(" refreshRequired: ").append(toIndentedString(refreshRequired)).append("\n"); + sb.append(" securityGroup: ").append(toIndentedString(securityGroup)).append("\n"); + sb.append(" serverVersion: ").append(toIndentedString(serverVersion)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" snapshotOutOfDate: ").append(toIndentedString(snapshotOutOfDate)).append("\n"); + sb.append(" sourceBasePath: ").append(toIndentedString(sourceBasePath)).append("\n"); + sb.append(" staleIssueTemplate: ").append(toIndentedString(staleIssueTemplate)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tracesOutOfDate: ").append(toIndentedString(tracesOutOfDate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuditByAssistantRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuditByAssistantRequest.java new file mode 100644 index 0000000..d8fc6a5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuditByAssistantRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of sending the project versions to audit assistant + */ +@ApiModel(description = "Request of sending the project versions to audit assistant") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionAuditByAssistantRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public ProjectVersionAuditByAssistantRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public ProjectVersionAuditByAssistantRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List containing single project version ID to send audit assistant + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List containing single project version ID to send audit assistant") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionAuditByAssistantRequest projectVersionAuditByAssistantRequest = (ProjectVersionAuditByAssistantRequest) o; + return Objects.equals(this.projectVersionIds, projectVersionAuditByAssistantRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionAuditByAssistantRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuthEntityAssignRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuthEntityAssignRequest.java new file mode 100644 index 0000000..4f3aeba --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionAuthEntityAssignRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of assigning auth entity to project version + */ +@ApiModel(description = "Request of assigning auth entity to project version") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionAuthEntityAssignRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public ProjectVersionAuthEntityAssignRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public ProjectVersionAuthEntityAssignRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * Project version ids to assign auth entity + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "Project version ids to assign auth entity") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionAuthEntityAssignRequest projectVersionAuthEntityAssignRequest = (ProjectVersionAuthEntityAssignRequest) o; + return Objects.equals(this.projectVersionIds, projectVersionAuthEntityAssignRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionAuthEntityAssignRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionBugTracker.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionBugTracker.java new file mode 100644 index 0000000..cb74b3c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionBugTracker.java @@ -0,0 +1,211 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.BugStateManagementCfg; +import com.fortify.ssc.restclient.model.BugTracker; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Object containing project version and bug tracker related data + */ +@ApiModel(description = "Object containing project version and bug tracker related data") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionBugTracker { + @SerializedName("assignedBugtrackerShortNameIfKnown") + private String assignedBugtrackerShortNameIfKnown = null; + + @SerializedName("assignedPluginId") + private String assignedPluginId = null; + + @SerializedName("bugStateManagementConfig") + private BugStateManagementCfg bugStateManagementConfig = null; + + @SerializedName("bugTracker") + private BugTracker bugTracker = null; + + @SerializedName("bugtrackerIsAssigned") + private Boolean bugtrackerIsAssigned = null; + + @SerializedName("clearAppVersionBugs") + private Boolean clearAppVersionBugs = null; + + public ProjectVersionBugTracker assignedBugtrackerShortNameIfKnown(String assignedBugtrackerShortNameIfKnown) { + this.assignedBugtrackerShortNameIfKnown = assignedBugtrackerShortNameIfKnown; + return this; + } + + /** + * the short display name of the bug tracker. (will be null if no bugtracker is assigned or if there is no currently installed plugin matching the assigned pluginId.) + * @return assignedBugtrackerShortNameIfKnown + **/ + @ApiModelProperty(required = true, value = "the short display name of the bug tracker. (will be null if no bugtracker is assigned or if there is no currently installed plugin matching the assigned pluginId.)") + public String getAssignedBugtrackerShortNameIfKnown() { + return assignedBugtrackerShortNameIfKnown; + } + + public void setAssignedBugtrackerShortNameIfKnown(String assignedBugtrackerShortNameIfKnown) { + this.assignedBugtrackerShortNameIfKnown = assignedBugtrackerShortNameIfKnown; + } + + public ProjectVersionBugTracker assignedPluginId(String assignedPluginId) { + this.assignedPluginId = assignedPluginId; + return this; + } + + /** + * identifier of the bug tracker plugin assigned to the application version. (Bug tracker integration will be active only if the plugin is also enabled in the system.) + * @return assignedPluginId + **/ + @ApiModelProperty(required = true, value = "identifier of the bug tracker plugin assigned to the application version. (Bug tracker integration will be active only if the plugin is also enabled in the system.)") + public String getAssignedPluginId() { + return assignedPluginId; + } + + public void setAssignedPluginId(String assignedPluginId) { + this.assignedPluginId = assignedPluginId; + } + + public ProjectVersionBugTracker bugStateManagementConfig(BugStateManagementCfg bugStateManagementConfig) { + this.bugStateManagementConfig = bugStateManagementConfig; + return this; + } + + /** + * Bug state management configuration + * @return bugStateManagementConfig + **/ + @ApiModelProperty(required = true, value = "Bug state management configuration") + public BugStateManagementCfg getBugStateManagementConfig() { + return bugStateManagementConfig; + } + + public void setBugStateManagementConfig(BugStateManagementCfg bugStateManagementConfig) { + this.bugStateManagementConfig = bugStateManagementConfig; + } + + public ProjectVersionBugTracker bugTracker(BugTracker bugTracker) { + this.bugTracker = bugTracker; + return this; + } + + /** + * Bug tracker (note that this field will be null if the assigned bug tracker is not enabled in the SSC plugin framework.) + * @return bugTracker + **/ + @ApiModelProperty(required = true, value = "Bug tracker (note that this field will be null if the assigned bug tracker is not enabled in the SSC plugin framework.)") + public BugTracker getBugTracker() { + return bugTracker; + } + + public void setBugTracker(BugTracker bugTracker) { + this.bugTracker = bugTracker; + } + + public ProjectVersionBugTracker bugtrackerIsAssigned(Boolean bugtrackerIsAssigned) { + this.bugtrackerIsAssigned = bugtrackerIsAssigned; + return this; + } + + /** + * indicates whether a bug tracker is assigned to the application version + * @return bugtrackerIsAssigned + **/ + @ApiModelProperty(example = "false", required = true, value = "indicates whether a bug tracker is assigned to the application version") + public Boolean isBugtrackerIsAssigned() { + return bugtrackerIsAssigned; + } + + public void setBugtrackerIsAssigned(Boolean bugtrackerIsAssigned) { + this.bugtrackerIsAssigned = bugtrackerIsAssigned; + } + + public ProjectVersionBugTracker clearAppVersionBugs(Boolean clearAppVersionBugs) { + this.clearAppVersionBugs = clearAppVersionBugs; + return this; + } + + /** + * Get clearAppVersionBugs + * @return clearAppVersionBugs + **/ + @ApiModelProperty(value = "") + public Boolean isClearAppVersionBugs() { + return clearAppVersionBugs; + } + + public void setClearAppVersionBugs(Boolean clearAppVersionBugs) { + this.clearAppVersionBugs = clearAppVersionBugs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionBugTracker projectVersionBugTracker = (ProjectVersionBugTracker) o; + return Objects.equals(this.assignedBugtrackerShortNameIfKnown, projectVersionBugTracker.assignedBugtrackerShortNameIfKnown) && + Objects.equals(this.assignedPluginId, projectVersionBugTracker.assignedPluginId) && + Objects.equals(this.bugStateManagementConfig, projectVersionBugTracker.bugStateManagementConfig) && + Objects.equals(this.bugTracker, projectVersionBugTracker.bugTracker) && + Objects.equals(this.bugtrackerIsAssigned, projectVersionBugTracker.bugtrackerIsAssigned) && + Objects.equals(this.clearAppVersionBugs, projectVersionBugTracker.clearAppVersionBugs); + } + + @Override + public int hashCode() { + return Objects.hash(assignedBugtrackerShortNameIfKnown, assignedPluginId, bugStateManagementConfig, bugTracker, bugtrackerIsAssigned, clearAppVersionBugs); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionBugTracker {\n"); + + sb.append(" assignedBugtrackerShortNameIfKnown: ").append(toIndentedString(assignedBugtrackerShortNameIfKnown)).append("\n"); + sb.append(" assignedPluginId: ").append(toIndentedString(assignedPluginId)).append("\n"); + sb.append(" bugStateManagementConfig: ").append(toIndentedString(bugStateManagementConfig)).append("\n"); + sb.append(" bugTracker: ").append(toIndentedString(bugTracker)).append("\n"); + sb.append(" bugtrackerIsAssigned: ").append(toIndentedString(bugtrackerIsAssigned)).append("\n"); + sb.append(" clearAppVersionBugs: ").append(toIndentedString(clearAppVersionBugs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyCurrentStateRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyCurrentStateRequest.java new file mode 100644 index 0000000..7ec79d0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyCurrentStateRequest.java @@ -0,0 +1,140 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of copying current state of the project version + */ +@ApiModel(description = "Request of copying current state of the project version") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionCopyCurrentStateRequest { + @SerializedName("copyCurrentStateFpr") + private Boolean copyCurrentStateFpr = null; + + @SerializedName("previousProjectVersionId") + private Long previousProjectVersionId = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + public ProjectVersionCopyCurrentStateRequest copyCurrentStateFpr(Boolean copyCurrentStateFpr) { + this.copyCurrentStateFpr = copyCurrentStateFpr; + return this; + } + + /** + * Will copy current state fpr + * @return copyCurrentStateFpr + **/ + @ApiModelProperty(example = "false", required = true, value = "Will copy current state fpr") + public Boolean isCopyCurrentStateFpr() { + return copyCurrentStateFpr; + } + + public void setCopyCurrentStateFpr(Boolean copyCurrentStateFpr) { + this.copyCurrentStateFpr = copyCurrentStateFpr; + } + + public ProjectVersionCopyCurrentStateRequest previousProjectVersionId(Long previousProjectVersionId) { + this.previousProjectVersionId = previousProjectVersionId; + return this; + } + + /** + * Previous project version id + * @return previousProjectVersionId + **/ + @ApiModelProperty(required = true, value = "Previous project version id") + public Long getPreviousProjectVersionId() { + return previousProjectVersionId; + } + + public void setPreviousProjectVersionId(Long previousProjectVersionId) { + this.previousProjectVersionId = previousProjectVersionId; + } + + public ProjectVersionCopyCurrentStateRequest projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version id + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version id") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionCopyCurrentStateRequest projectVersionCopyCurrentStateRequest = (ProjectVersionCopyCurrentStateRequest) o; + return Objects.equals(this.copyCurrentStateFpr, projectVersionCopyCurrentStateRequest.copyCurrentStateFpr) && + Objects.equals(this.previousProjectVersionId, projectVersionCopyCurrentStateRequest.previousProjectVersionId) && + Objects.equals(this.projectVersionId, projectVersionCopyCurrentStateRequest.projectVersionId); + } + + @Override + public int hashCode() { + return Objects.hash(copyCurrentStateFpr, previousProjectVersionId, projectVersionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionCopyCurrentStateRequest {\n"); + + sb.append(" copyCurrentStateFpr: ").append(toIndentedString(copyCurrentStateFpr)).append("\n"); + sb.append(" previousProjectVersionId: ").append(toIndentedString(previousProjectVersionId)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyPartialRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyPartialRequest.java new file mode 100644 index 0000000..20a16c9 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionCopyPartialRequest.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of copying partially from the project version + */ +@ApiModel(description = "Request of copying partially from the project version") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionCopyPartialRequest { + @SerializedName("copyAnalysisProcessingRules") + private Boolean copyAnalysisProcessingRules = null; + + @SerializedName("copyBugTrackerConfiguration") + private Boolean copyBugTrackerConfiguration = null; + + @SerializedName("copyCurrentStateFpr") + private Boolean copyCurrentStateFpr = null; + + @SerializedName("copyCustomTags") + private Boolean copyCustomTags = null; + + @SerializedName("previousProjectVersionId") + private Long previousProjectVersionId = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + public ProjectVersionCopyPartialRequest copyAnalysisProcessingRules(Boolean copyAnalysisProcessingRules) { + this.copyAnalysisProcessingRules = copyAnalysisProcessingRules; + return this; + } + + /** + * Will copy analysis processing rules + * @return copyAnalysisProcessingRules + **/ + @ApiModelProperty(example = "false", required = true, value = "Will copy analysis processing rules") + public Boolean isCopyAnalysisProcessingRules() { + return copyAnalysisProcessingRules; + } + + public void setCopyAnalysisProcessingRules(Boolean copyAnalysisProcessingRules) { + this.copyAnalysisProcessingRules = copyAnalysisProcessingRules; + } + + public ProjectVersionCopyPartialRequest copyBugTrackerConfiguration(Boolean copyBugTrackerConfiguration) { + this.copyBugTrackerConfiguration = copyBugTrackerConfiguration; + return this; + } + + /** + * Will copy bugtracker configuration + * @return copyBugTrackerConfiguration + **/ + @ApiModelProperty(example = "false", required = true, value = "Will copy bugtracker configuration") + public Boolean isCopyBugTrackerConfiguration() { + return copyBugTrackerConfiguration; + } + + public void setCopyBugTrackerConfiguration(Boolean copyBugTrackerConfiguration) { + this.copyBugTrackerConfiguration = copyBugTrackerConfiguration; + } + + public ProjectVersionCopyPartialRequest copyCurrentStateFpr(Boolean copyCurrentStateFpr) { + this.copyCurrentStateFpr = copyCurrentStateFpr; + return this; + } + + /** + * Will copy current state fpr + * @return copyCurrentStateFpr + **/ + @ApiModelProperty(example = "false", required = true, value = "Will copy current state fpr") + public Boolean isCopyCurrentStateFpr() { + return copyCurrentStateFpr; + } + + public void setCopyCurrentStateFpr(Boolean copyCurrentStateFpr) { + this.copyCurrentStateFpr = copyCurrentStateFpr; + } + + public ProjectVersionCopyPartialRequest copyCustomTags(Boolean copyCustomTags) { + this.copyCustomTags = copyCustomTags; + return this; + } + + /** + * Will copy custom tags + * @return copyCustomTags + **/ + @ApiModelProperty(example = "false", required = true, value = "Will copy custom tags") + public Boolean isCopyCustomTags() { + return copyCustomTags; + } + + public void setCopyCustomTags(Boolean copyCustomTags) { + this.copyCustomTags = copyCustomTags; + } + + public ProjectVersionCopyPartialRequest previousProjectVersionId(Long previousProjectVersionId) { + this.previousProjectVersionId = previousProjectVersionId; + return this; + } + + /** + * Previous project version id + * @return previousProjectVersionId + **/ + @ApiModelProperty(required = true, value = "Previous project version id") + public Long getPreviousProjectVersionId() { + return previousProjectVersionId; + } + + public void setPreviousProjectVersionId(Long previousProjectVersionId) { + this.previousProjectVersionId = previousProjectVersionId; + } + + public ProjectVersionCopyPartialRequest projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version id + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version id") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionCopyPartialRequest projectVersionCopyPartialRequest = (ProjectVersionCopyPartialRequest) o; + return Objects.equals(this.copyAnalysisProcessingRules, projectVersionCopyPartialRequest.copyAnalysisProcessingRules) && + Objects.equals(this.copyBugTrackerConfiguration, projectVersionCopyPartialRequest.copyBugTrackerConfiguration) && + Objects.equals(this.copyCurrentStateFpr, projectVersionCopyPartialRequest.copyCurrentStateFpr) && + Objects.equals(this.copyCustomTags, projectVersionCopyPartialRequest.copyCustomTags) && + Objects.equals(this.previousProjectVersionId, projectVersionCopyPartialRequest.previousProjectVersionId) && + Objects.equals(this.projectVersionId, projectVersionCopyPartialRequest.projectVersionId); + } + + @Override + public int hashCode() { + return Objects.hash(copyAnalysisProcessingRules, copyBugTrackerConfiguration, copyCurrentStateFpr, copyCustomTags, previousProjectVersionId, projectVersionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionCopyPartialRequest {\n"); + + sb.append(" copyAnalysisProcessingRules: ").append(toIndentedString(copyAnalysisProcessingRules)).append("\n"); + sb.append(" copyBugTrackerConfiguration: ").append(toIndentedString(copyBugTrackerConfiguration)).append("\n"); + sb.append(" copyCurrentStateFpr: ").append(toIndentedString(copyCurrentStateFpr)).append("\n"); + sb.append(" copyCustomTags: ").append(toIndentedString(copyCustomTags)).append("\n"); + sb.append(" previousProjectVersionId: ").append(toIndentedString(previousProjectVersionId)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssue.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssue.java new file mode 100644 index 0000000..3c68cb2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssue.java @@ -0,0 +1,984 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Project version issue DTO object + */ +@ApiModel(description = "Project version issue DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionIssue { + @SerializedName("analyzer") + private String analyzer = null; + + @SerializedName("audited") + private Boolean audited = null; + + @SerializedName("bugURL") + private String bugURL = null; + + @SerializedName("confidence") + private Float confidence = null; + + @SerializedName("displayEngineType") + private String displayEngineType = null; + + /** + * Engine category + */ + @JsonAdapter(EngineCategoryEnum.Adapter.class) + public enum EngineCategoryEnum { + STATIC("STATIC"), + + DYNAMIC("DYNAMIC"); + + private String value; + + EngineCategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EngineCategoryEnum fromValue(String text) { + for (EngineCategoryEnum b : EngineCategoryEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EngineCategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EngineCategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EngineCategoryEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("engineCategory") + private EngineCategoryEnum engineCategory = null; + + @SerializedName("engineType") + private String engineType = null; + + @SerializedName("folderGuid") + private String folderGuid = null; + + @SerializedName("folderId") + private Long folderId = null; + + @SerializedName("foundDate") + private OffsetDateTime foundDate = null; + + @SerializedName("friority") + private String friority = null; + + @SerializedName("fullFileName") + private String fullFileName = null; + + @SerializedName("hasAttachments") + private Boolean hasAttachments = null; + + @SerializedName("hasCorrelatedIssues") + private Boolean hasCorrelatedIssues = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("impact") + private Float impact = null; + + @SerializedName("issueInstanceId") + private String issueInstanceId = null; + + @SerializedName("issueName") + private String issueName = null; + + @SerializedName("issueStatus") + private String issueStatus = null; + + @SerializedName("kingdom") + private String kingdom = null; + + @SerializedName("lastScanId") + private Long lastScanId = null; + + @SerializedName("likelihood") + private Float likelihood = null; + + @SerializedName("lineNumber") + private Integer lineNumber = null; + + @SerializedName("primaryLocation") + private String primaryLocation = null; + + @SerializedName("primaryRuleGuid") + private String primaryRuleGuid = null; + + @SerializedName("primaryTag") + private String primaryTag = null; + + @SerializedName("primaryTagValueAutoApplied") + private Boolean primaryTagValueAutoApplied = null; + + @SerializedName("projectName") + private String projectName = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("projectVersionName") + private String projectVersionName = null; + + @SerializedName("removed") + private Boolean removed = null; + + @SerializedName("removedDate") + private OffsetDateTime removedDate = null; + + @SerializedName("reviewed") + private String reviewed = null; + + @SerializedName("revision") + private Integer revision = null; + + @SerializedName("scanStatus") + private String scanStatus = null; + + @SerializedName("severity") + private Float severity = null; + + @SerializedName("suppressed") + private Boolean suppressed = null; + + public ProjectVersionIssue analyzer(String analyzer) { + this.analyzer = analyzer; + return this; + } + + /** + * Analyzer + * @return analyzer + **/ + @ApiModelProperty(required = true, value = "Analyzer") + public String getAnalyzer() { + return analyzer; + } + + public void setAnalyzer(String analyzer) { + this.analyzer = analyzer; + } + + public ProjectVersionIssue audited(Boolean audited) { + this.audited = audited; + return this; + } + + /** + * Flag is set for issues that has been audited and primary tag value was set for this issue. + * @return audited + **/ + @ApiModelProperty(example = "false", value = "Flag is set for issues that has been audited and primary tag value was set for this issue.") + public Boolean isAudited() { + return audited; + } + + public void setAudited(Boolean audited) { + this.audited = audited; + } + + public ProjectVersionIssue bugURL(String bugURL) { + this.bugURL = bugURL; + return this; + } + + /** + * Bug url + * @return bugURL + **/ + @ApiModelProperty(required = true, value = "Bug url") + public String getBugURL() { + return bugURL; + } + + public void setBugURL(String bugURL) { + this.bugURL = bugURL; + } + + public ProjectVersionIssue confidence(Float confidence) { + this.confidence = confidence; + return this; + } + + /** + * Issue confidence + * @return confidence + **/ + @ApiModelProperty(required = true, value = "Issue confidence") + public Float getConfidence() { + return confidence; + } + + public void setConfidence(Float confidence) { + this.confidence = confidence; + } + + public ProjectVersionIssue displayEngineType(String displayEngineType) { + this.displayEngineType = displayEngineType; + return this; + } + + /** + * Display name for engine type + * @return displayEngineType + **/ + @ApiModelProperty(required = true, value = "Display name for engine type") + public String getDisplayEngineType() { + return displayEngineType; + } + + public void setDisplayEngineType(String displayEngineType) { + this.displayEngineType = displayEngineType; + } + + public ProjectVersionIssue engineCategory(EngineCategoryEnum engineCategory) { + this.engineCategory = engineCategory; + return this; + } + + /** + * Engine category + * @return engineCategory + **/ + @ApiModelProperty(required = true, value = "Engine category") + public EngineCategoryEnum getEngineCategory() { + return engineCategory; + } + + public void setEngineCategory(EngineCategoryEnum engineCategory) { + this.engineCategory = engineCategory; + } + + public ProjectVersionIssue engineType(String engineType) { + this.engineType = engineType; + return this; + } + + /** + * Engine type + * @return engineType + **/ + @ApiModelProperty(required = true, value = "Engine type") + public String getEngineType() { + return engineType; + } + + public void setEngineType(String engineType) { + this.engineType = engineType; + } + + public ProjectVersionIssue folderGuid(String folderGuid) { + this.folderGuid = folderGuid; + return this; + } + + /** + * Issue folder globally unique identifier + * @return folderGuid + **/ + @ApiModelProperty(required = true, value = "Issue folder globally unique identifier") + public String getFolderGuid() { + return folderGuid; + } + + public void setFolderGuid(String folderGuid) { + this.folderGuid = folderGuid; + } + + public ProjectVersionIssue folderId(Long folderId) { + this.folderId = folderId; + return this; + } + + /** + * Deprecated - Issue folder identifier. This may be incorrect or invalid. Please use folderGuid instead. + * @return folderId + **/ + @ApiModelProperty(required = true, value = "Deprecated - Issue folder identifier. This may be incorrect or invalid. Please use folderGuid instead.") + public Long getFolderId() { + return folderId; + } + + public void setFolderId(Long folderId) { + this.folderId = folderId; + } + + public ProjectVersionIssue foundDate(OffsetDateTime foundDate) { + this.foundDate = foundDate; + return this; + } + + /** + * Date when issue found + * @return foundDate + **/ + @ApiModelProperty(required = true, value = "Date when issue found") + public OffsetDateTime getFoundDate() { + return foundDate; + } + + public void setFoundDate(OffsetDateTime foundDate) { + this.foundDate = foundDate; + } + + public ProjectVersionIssue friority(String friority) { + this.friority = friority; + return this; + } + + /** + * Friority + * @return friority + **/ + @ApiModelProperty(required = true, value = "Friority") + public String getFriority() { + return friority; + } + + public void setFriority(String friority) { + this.friority = friority; + } + + public ProjectVersionIssue fullFileName(String fullFileName) { + this.fullFileName = fullFileName; + return this; + } + + /** + * Full file name where issue found + * @return fullFileName + **/ + @ApiModelProperty(required = true, value = "Full file name where issue found") + public String getFullFileName() { + return fullFileName; + } + + public void setFullFileName(String fullFileName) { + this.fullFileName = fullFileName; + } + + public ProjectVersionIssue hasAttachments(Boolean hasAttachments) { + this.hasAttachments = hasAttachments; + return this; + } + + /** + * Set to true if issue has attachments + * @return hasAttachments + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue has attachments") + public Boolean isHasAttachments() { + return hasAttachments; + } + + public void setHasAttachments(Boolean hasAttachments) { + this.hasAttachments = hasAttachments; + } + + public ProjectVersionIssue hasCorrelatedIssues(Boolean hasCorrelatedIssues) { + this.hasCorrelatedIssues = hasCorrelatedIssues; + return this; + } + + /** + * Set to true if issue has other correlated issues + * @return hasCorrelatedIssues + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue has other correlated issues") + public Boolean isHasCorrelatedIssues() { + return hasCorrelatedIssues; + } + + public void setHasCorrelatedIssues(Boolean hasCorrelatedIssues) { + this.hasCorrelatedIssues = hasCorrelatedIssues; + } + + public ProjectVersionIssue hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Set to true if issue is hidden + * @return hidden + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue is hidden") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + /** + * Project version issue identifier + * @return id + **/ + @ApiModelProperty(value = "Project version issue identifier") + public Long getId() { + return id; + } + + public ProjectVersionIssue impact(Float impact) { + this.impact = impact; + return this; + } + + /** + * Issue impact + * @return impact + **/ + @ApiModelProperty(required = true, value = "Issue impact") + public Float getImpact() { + return impact; + } + + public void setImpact(Float impact) { + this.impact = impact; + } + + public ProjectVersionIssue issueInstanceId(String issueInstanceId) { + this.issueInstanceId = issueInstanceId; + return this; + } + + /** + * Issue instance identifier + * @return issueInstanceId + **/ + @ApiModelProperty(required = true, value = "Issue instance identifier") + public String getIssueInstanceId() { + return issueInstanceId; + } + + public void setIssueInstanceId(String issueInstanceId) { + this.issueInstanceId = issueInstanceId; + } + + public ProjectVersionIssue issueName(String issueName) { + this.issueName = issueName; + return this; + } + + /** + * Issue name + * @return issueName + **/ + @ApiModelProperty(required = true, value = "Issue name") + public String getIssueName() { + return issueName; + } + + public void setIssueName(String issueName) { + this.issueName = issueName; + } + + public ProjectVersionIssue issueStatus(String issueStatus) { + this.issueStatus = issueStatus; + return this; + } + + /** + * Flag represents issue review status and can have 3 types of values: Unreviewed, Under Review, Reviewed. + * @return issueStatus + **/ + @ApiModelProperty(value = "Flag represents issue review status and can have 3 types of values: Unreviewed, Under Review, Reviewed.") + public String getIssueStatus() { + return issueStatus; + } + + public void setIssueStatus(String issueStatus) { + this.issueStatus = issueStatus; + } + + public ProjectVersionIssue kingdom(String kingdom) { + this.kingdom = kingdom; + return this; + } + + /** + * Kingdom + * @return kingdom + **/ + @ApiModelProperty(required = true, value = "Kingdom") + public String getKingdom() { + return kingdom; + } + + public void setKingdom(String kingdom) { + this.kingdom = kingdom; + } + + public ProjectVersionIssue lastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + return this; + } + + /** + * ID of the latest scan that found the issue + * @return lastScanId + **/ + @ApiModelProperty(value = "ID of the latest scan that found the issue") + public Long getLastScanId() { + return lastScanId; + } + + public void setLastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + } + + public ProjectVersionIssue likelihood(Float likelihood) { + this.likelihood = likelihood; + return this; + } + + /** + * Likelihood of issue + * @return likelihood + **/ + @ApiModelProperty(required = true, value = "Likelihood of issue") + public Float getLikelihood() { + return likelihood; + } + + public void setLikelihood(Float likelihood) { + this.likelihood = likelihood; + } + + public ProjectVersionIssue lineNumber(Integer lineNumber) { + this.lineNumber = lineNumber; + return this; + } + + /** + * Line number where issue found + * @return lineNumber + **/ + @ApiModelProperty(required = true, value = "Line number where issue found") + public Integer getLineNumber() { + return lineNumber; + } + + public void setLineNumber(Integer lineNumber) { + this.lineNumber = lineNumber; + } + + public ProjectVersionIssue primaryLocation(String primaryLocation) { + this.primaryLocation = primaryLocation; + return this; + } + + /** + * Issue primary location + * @return primaryLocation + **/ + @ApiModelProperty(required = true, value = "Issue primary location") + public String getPrimaryLocation() { + return primaryLocation; + } + + public void setPrimaryLocation(String primaryLocation) { + this.primaryLocation = primaryLocation; + } + + public ProjectVersionIssue primaryRuleGuid(String primaryRuleGuid) { + this.primaryRuleGuid = primaryRuleGuid; + return this; + } + + /** + * Primary rule global unique identifier + * @return primaryRuleGuid + **/ + @ApiModelProperty(required = true, value = "Primary rule global unique identifier") + public String getPrimaryRuleGuid() { + return primaryRuleGuid; + } + + public void setPrimaryRuleGuid(String primaryRuleGuid) { + this.primaryRuleGuid = primaryRuleGuid; + } + + public ProjectVersionIssue primaryTag(String primaryTag) { + this.primaryTag = primaryTag; + return this; + } + + /** + * Issue primary tag + * @return primaryTag + **/ + @ApiModelProperty(required = true, value = "Issue primary tag") + public String getPrimaryTag() { + return primaryTag; + } + + public void setPrimaryTag(String primaryTag) { + this.primaryTag = primaryTag; + } + + public ProjectVersionIssue primaryTagValueAutoApplied(Boolean primaryTagValueAutoApplied) { + this.primaryTagValueAutoApplied = primaryTagValueAutoApplied; + return this; + } + + /** + * Flag equals true if value of custom tag was applied automatically + * @return primaryTagValueAutoApplied + **/ + @ApiModelProperty(example = "false", value = "Flag equals true if value of custom tag was applied automatically") + public Boolean isPrimaryTagValueAutoApplied() { + return primaryTagValueAutoApplied; + } + + public void setPrimaryTagValueAutoApplied(Boolean primaryTagValueAutoApplied) { + this.primaryTagValueAutoApplied = primaryTagValueAutoApplied; + } + + public ProjectVersionIssue projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Project name + * @return projectName + **/ + @ApiModelProperty(required = true, value = "Project name") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public ProjectVersionIssue projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version identifier + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version identifier") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public ProjectVersionIssue projectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + return this; + } + + /** + * Project version name + * @return projectVersionName + **/ + @ApiModelProperty(required = true, value = "Project version name") + public String getProjectVersionName() { + return projectVersionName; + } + + public void setProjectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + } + + public ProjectVersionIssue removed(Boolean removed) { + this.removed = removed; + return this; + } + + /** + * Set to true if issue is suppressed + * @return removed + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue is suppressed") + public Boolean isRemoved() { + return removed; + } + + public void setRemoved(Boolean removed) { + this.removed = removed; + } + + public ProjectVersionIssue removedDate(OffsetDateTime removedDate) { + this.removedDate = removedDate; + return this; + } + + /** + * Date when issue removed + * @return removedDate + **/ + @ApiModelProperty(required = true, value = "Date when issue removed") + public OffsetDateTime getRemovedDate() { + return removedDate; + } + + public void setRemovedDate(OffsetDateTime removedDate) { + this.removedDate = removedDate; + } + + public ProjectVersionIssue reviewed(String reviewed) { + this.reviewed = reviewed; + return this; + } + + /** + * Issue reviewer + * @return reviewed + **/ + @ApiModelProperty(required = true, value = "Issue reviewer") + public String getReviewed() { + return reviewed; + } + + public void setReviewed(String reviewed) { + this.reviewed = reviewed; + } + + public ProjectVersionIssue revision(Integer revision) { + this.revision = revision; + return this; + } + + /** + * Project version revision + * @return revision + **/ + @ApiModelProperty(required = true, value = "Project version revision") + public Integer getRevision() { + return revision; + } + + public void setRevision(Integer revision) { + this.revision = revision; + } + + public ProjectVersionIssue scanStatus(String scanStatus) { + this.scanStatus = scanStatus; + return this; + } + + /** + * Scan status + * @return scanStatus + **/ + @ApiModelProperty(required = true, value = "Scan status") + public String getScanStatus() { + return scanStatus; + } + + public void setScanStatus(String scanStatus) { + this.scanStatus = scanStatus; + } + + public ProjectVersionIssue severity(Float severity) { + this.severity = severity; + return this; + } + + /** + * Issue severity + * @return severity + **/ + @ApiModelProperty(required = true, value = "Issue severity") + public Float getSeverity() { + return severity; + } + + public void setSeverity(Float severity) { + this.severity = severity; + } + + public ProjectVersionIssue suppressed(Boolean suppressed) { + this.suppressed = suppressed; + return this; + } + + /** + * Set to true if issue is suppressed + * @return suppressed + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue is suppressed") + public Boolean isSuppressed() { + return suppressed; + } + + public void setSuppressed(Boolean suppressed) { + this.suppressed = suppressed; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionIssue projectVersionIssue = (ProjectVersionIssue) o; + return Objects.equals(this.analyzer, projectVersionIssue.analyzer) && + Objects.equals(this.audited, projectVersionIssue.audited) && + Objects.equals(this.bugURL, projectVersionIssue.bugURL) && + Objects.equals(this.confidence, projectVersionIssue.confidence) && + Objects.equals(this.displayEngineType, projectVersionIssue.displayEngineType) && + Objects.equals(this.engineCategory, projectVersionIssue.engineCategory) && + Objects.equals(this.engineType, projectVersionIssue.engineType) && + Objects.equals(this.folderGuid, projectVersionIssue.folderGuid) && + Objects.equals(this.folderId, projectVersionIssue.folderId) && + Objects.equals(this.foundDate, projectVersionIssue.foundDate) && + Objects.equals(this.friority, projectVersionIssue.friority) && + Objects.equals(this.fullFileName, projectVersionIssue.fullFileName) && + Objects.equals(this.hasAttachments, projectVersionIssue.hasAttachments) && + Objects.equals(this.hasCorrelatedIssues, projectVersionIssue.hasCorrelatedIssues) && + Objects.equals(this.hidden, projectVersionIssue.hidden) && + Objects.equals(this.id, projectVersionIssue.id) && + Objects.equals(this.impact, projectVersionIssue.impact) && + Objects.equals(this.issueInstanceId, projectVersionIssue.issueInstanceId) && + Objects.equals(this.issueName, projectVersionIssue.issueName) && + Objects.equals(this.issueStatus, projectVersionIssue.issueStatus) && + Objects.equals(this.kingdom, projectVersionIssue.kingdom) && + Objects.equals(this.lastScanId, projectVersionIssue.lastScanId) && + Objects.equals(this.likelihood, projectVersionIssue.likelihood) && + Objects.equals(this.lineNumber, projectVersionIssue.lineNumber) && + Objects.equals(this.primaryLocation, projectVersionIssue.primaryLocation) && + Objects.equals(this.primaryRuleGuid, projectVersionIssue.primaryRuleGuid) && + Objects.equals(this.primaryTag, projectVersionIssue.primaryTag) && + Objects.equals(this.primaryTagValueAutoApplied, projectVersionIssue.primaryTagValueAutoApplied) && + Objects.equals(this.projectName, projectVersionIssue.projectName) && + Objects.equals(this.projectVersionId, projectVersionIssue.projectVersionId) && + Objects.equals(this.projectVersionName, projectVersionIssue.projectVersionName) && + Objects.equals(this.removed, projectVersionIssue.removed) && + Objects.equals(this.removedDate, projectVersionIssue.removedDate) && + Objects.equals(this.reviewed, projectVersionIssue.reviewed) && + Objects.equals(this.revision, projectVersionIssue.revision) && + Objects.equals(this.scanStatus, projectVersionIssue.scanStatus) && + Objects.equals(this.severity, projectVersionIssue.severity) && + Objects.equals(this.suppressed, projectVersionIssue.suppressed); + } + + @Override + public int hashCode() { + return Objects.hash(analyzer, audited, bugURL, confidence, displayEngineType, engineCategory, engineType, folderGuid, folderId, foundDate, friority, fullFileName, hasAttachments, hasCorrelatedIssues, hidden, id, impact, issueInstanceId, issueName, issueStatus, kingdom, lastScanId, likelihood, lineNumber, primaryLocation, primaryRuleGuid, primaryTag, primaryTagValueAutoApplied, projectName, projectVersionId, projectVersionName, removed, removedDate, reviewed, revision, scanStatus, severity, suppressed); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionIssue {\n"); + + sb.append(" analyzer: ").append(toIndentedString(analyzer)).append("\n"); + sb.append(" audited: ").append(toIndentedString(audited)).append("\n"); + sb.append(" bugURL: ").append(toIndentedString(bugURL)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" displayEngineType: ").append(toIndentedString(displayEngineType)).append("\n"); + sb.append(" engineCategory: ").append(toIndentedString(engineCategory)).append("\n"); + sb.append(" engineType: ").append(toIndentedString(engineType)).append("\n"); + sb.append(" folderGuid: ").append(toIndentedString(folderGuid)).append("\n"); + sb.append(" folderId: ").append(toIndentedString(folderId)).append("\n"); + sb.append(" foundDate: ").append(toIndentedString(foundDate)).append("\n"); + sb.append(" friority: ").append(toIndentedString(friority)).append("\n"); + sb.append(" fullFileName: ").append(toIndentedString(fullFileName)).append("\n"); + sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n"); + sb.append(" hasCorrelatedIssues: ").append(toIndentedString(hasCorrelatedIssues)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" impact: ").append(toIndentedString(impact)).append("\n"); + sb.append(" issueInstanceId: ").append(toIndentedString(issueInstanceId)).append("\n"); + sb.append(" issueName: ").append(toIndentedString(issueName)).append("\n"); + sb.append(" issueStatus: ").append(toIndentedString(issueStatus)).append("\n"); + sb.append(" kingdom: ").append(toIndentedString(kingdom)).append("\n"); + sb.append(" lastScanId: ").append(toIndentedString(lastScanId)).append("\n"); + sb.append(" likelihood: ").append(toIndentedString(likelihood)).append("\n"); + sb.append(" lineNumber: ").append(toIndentedString(lineNumber)).append("\n"); + sb.append(" primaryLocation: ").append(toIndentedString(primaryLocation)).append("\n"); + sb.append(" primaryRuleGuid: ").append(toIndentedString(primaryRuleGuid)).append("\n"); + sb.append(" primaryTag: ").append(toIndentedString(primaryTag)).append("\n"); + sb.append(" primaryTagValueAutoApplied: ").append(toIndentedString(primaryTagValueAutoApplied)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" projectVersionName: ").append(toIndentedString(projectVersionName)).append("\n"); + sb.append(" removed: ").append(toIndentedString(removed)).append("\n"); + sb.append(" removedDate: ").append(toIndentedString(removedDate)).append("\n"); + sb.append(" reviewed: ").append(toIndentedString(reviewed)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" scanStatus: ").append(toIndentedString(scanStatus)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueDetails.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueDetails.java new file mode 100644 index 0000000..bbc2306 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueDetails.java @@ -0,0 +1,1716 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.AssignedUser; +import com.fortify.ssc.restclient.model.CustomTag; +import com.fortify.ssc.restclient.model.IssuePrimaryTag; +import com.fortify.ssc.restclient.model.TraceNodeDto; +import com.fortify.ssc.restclient.model.Trigger; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * Project version issue details DTO object + */ +@ApiModel(description = "Project version issue details DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionIssueDetails { + @SerializedName("accuracy") + private Float accuracy = null; + + @SerializedName("analyzer") + private String analyzer = null; + + @SerializedName("assignedUser") + private AssignedUser assignedUser = null; + + @SerializedName("attackPayload") + private String attackPayload = null; + + /** + * Attack type + */ + @JsonAdapter(AttackTypeEnum.Adapter.class) + public enum AttackTypeEnum { + URL("URL"), + + REQUEST_HEADER("REQUEST_HEADER"), + + REQUEST_COOKIE("REQUEST_COOKIE"), + + PARAMETER("PARAMETER"), + + MULTIPLE("MULTIPLE"); + + private String value; + + AttackTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AttackTypeEnum fromValue(String text) { + for (AttackTypeEnum b : AttackTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AttackTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AttackTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AttackTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("attackType") + private AttackTypeEnum attackType = null; + + @SerializedName("audited") + private Boolean audited = null; + + @SerializedName("brief") + private String brief = null; + + @SerializedName("className") + private String className = null; + + @SerializedName("confidence") + private Float confidence = null; + + @SerializedName("cookie") + private String cookie = null; + + @SerializedName("customAttributes") + private Object customAttributes = null; + + @SerializedName("customTagValues") + private List customTagValues = new ArrayList(); + + @SerializedName("dataVersion") + private Integer dataVersion = null; + + @SerializedName("detail") + private String detail = null; + + @SerializedName("displayEngineType") + private String displayEngineType = null; + + @SerializedName("downloadRequest") + private Boolean downloadRequest = null; + + @SerializedName("downloadResponse") + private Boolean downloadResponse = null; + + /** + * Engine category + */ + @JsonAdapter(EngineCategoryEnum.Adapter.class) + public enum EngineCategoryEnum { + STATIC("STATIC"), + + DYNAMIC("DYNAMIC"); + + private String value; + + EngineCategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EngineCategoryEnum fromValue(String text) { + for (EngineCategoryEnum b : EngineCategoryEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EngineCategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EngineCategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EngineCategoryEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("engineCategory") + private EngineCategoryEnum engineCategory = null; + + @SerializedName("engineType") + private String engineType = null; + + @SerializedName("foundDate") + private OffsetDateTime foundDate = null; + + @SerializedName("friority") + private String friority = null; + + @SerializedName("fullFileName") + private String fullFileName = null; + + @SerializedName("functionName") + private String functionName = null; + + @SerializedName("hasViewTemplate") + private Boolean hasViewTemplate = null; + + @SerializedName("hidden") + private Boolean hidden = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("impact") + private Float impact = null; + + @SerializedName("issueInstanceId") + private String issueInstanceId = null; + + @SerializedName("issueName") + private String issueName = null; + + @SerializedName("issueState") + private String issueState = null; + + /** + * Flag represents issue review status + */ + @JsonAdapter(IssueStatusEnum.Adapter.class) + public enum IssueStatusEnum { + UNREVIEWED("Unreviewed"), + + UNDER_REVIEW("Under Review"), + + REVIEWED("Reviewed"); + + private String value; + + IssueStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static IssueStatusEnum fromValue(String text) { + for (IssueStatusEnum b : IssueStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final IssueStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public IssueStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return IssueStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("issueStatus") + private IssueStatusEnum issueStatus = null; + + @SerializedName("kingdom") + private String kingdom = null; + + @SerializedName("lastScanId") + private Long lastScanId = null; + + @SerializedName("likelihood") + private Float likelihood = null; + + @SerializedName("lineNumber") + private Integer lineNumber = null; + + @SerializedName("mappedCategory") + private String mappedCategory = null; + + @SerializedName("method") + private String method = null; + + @SerializedName("minVirtualCallConfidence") + private Float minVirtualCallConfidence = null; + + @SerializedName("packageName") + private String packageName = null; + + @SerializedName("primaryRuleGuid") + private String primaryRuleGuid = null; + + @SerializedName("primaryTag") + private IssuePrimaryTag primaryTag = null; + + @SerializedName("probability") + private Float probability = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("recommendation") + private String recommendation = null; + + @SerializedName("references") + private String references = null; + + @SerializedName("remediationConstant") + private Float remediationConstant = null; + + @SerializedName("removedDate") + private OffsetDateTime removedDate = null; + + @SerializedName("requestBody") + private String requestBody = null; + + @SerializedName("requestHeader") + private String requestHeader = null; + + @SerializedName("requestParameter") + private String requestParameter = null; + + @SerializedName("requestTriggers") + private List requestTriggers = null; + + @SerializedName("response") + private String response = null; + + @SerializedName("responseHeader") + private String responseHeader = null; + + @SerializedName("responseTriggers") + private List responseTriggers = null; + + @SerializedName("revision") + private Integer revision = null; + + @SerializedName("scanStatus") + private String scanStatus = null; + + @SerializedName("severity") + private Float severity = null; + + @SerializedName("shortFileName") + private String shortFileName = null; + + @SerializedName("sink") + private String sink = null; + + @SerializedName("sinkContext") + private String sinkContext = null; + + @SerializedName("source") + private String source = null; + + @SerializedName("sourceContext") + private String sourceContext = null; + + @SerializedName("sourceFile") + private String sourceFile = null; + + @SerializedName("sourceLine") + private Integer sourceLine = null; + + @SerializedName("suppressed") + private Boolean suppressed = null; + + @SerializedName("taintFlag") + private String taintFlag = null; + + @SerializedName("tips") + private String tips = null; + + @SerializedName("traceNodes") + private List> traceNodes = new ArrayList>(); + + @SerializedName("triggerString") + private String triggerString = null; + + @SerializedName("url") + private String url = null; + + @SerializedName("vulnerableParameter") + private String vulnerableParameter = null; + + /** + * Vulnerability accuracy + * @return accuracy + **/ + @ApiModelProperty(value = "Vulnerability accuracy") + public Float getAccuracy() { + return accuracy; + } + + public ProjectVersionIssueDetails analyzer(String analyzer) { + this.analyzer = analyzer; + return this; + } + + /** + * Analyzer + * @return analyzer + **/ + @ApiModelProperty(required = true, value = "Analyzer") + public String getAnalyzer() { + return analyzer; + } + + public void setAnalyzer(String analyzer) { + this.analyzer = analyzer; + } + + public ProjectVersionIssueDetails assignedUser(AssignedUser assignedUser) { + this.assignedUser = assignedUser; + return this; + } + + /** + * User assigned to issue + * @return assignedUser + **/ + @ApiModelProperty(required = true, value = "User assigned to issue") + public AssignedUser getAssignedUser() { + return assignedUser; + } + + public void setAssignedUser(AssignedUser assignedUser) { + this.assignedUser = assignedUser; + } + + public ProjectVersionIssueDetails attackPayload(String attackPayload) { + this.attackPayload = attackPayload; + return this; + } + + /** + * Attack payload + * @return attackPayload + **/ + @ApiModelProperty(required = true, value = "Attack payload") + public String getAttackPayload() { + return attackPayload; + } + + public void setAttackPayload(String attackPayload) { + this.attackPayload = attackPayload; + } + + public ProjectVersionIssueDetails attackType(AttackTypeEnum attackType) { + this.attackType = attackType; + return this; + } + + /** + * Attack type + * @return attackType + **/ + @ApiModelProperty(required = true, value = "Attack type") + public AttackTypeEnum getAttackType() { + return attackType; + } + + public void setAttackType(AttackTypeEnum attackType) { + this.attackType = attackType; + } + + public ProjectVersionIssueDetails audited(Boolean audited) { + this.audited = audited; + return this; + } + + /** + * Attribute is set to true if issue is audited (primary tag values is set for this issue) + * @return audited + **/ + @ApiModelProperty(example = "false", required = true, value = "Attribute is set to true if issue is audited (primary tag values is set for this issue)") + public Boolean isAudited() { + return audited; + } + + public void setAudited(Boolean audited) { + this.audited = audited; + } + + public ProjectVersionIssueDetails brief(String brief) { + this.brief = brief; + return this; + } + + /** + * Issue brief + * @return brief + **/ + @ApiModelProperty(required = true, value = "Issue brief") + public String getBrief() { + return brief; + } + + public void setBrief(String brief) { + this.brief = brief; + } + + /** + * Name of class where the vulnerability has been found + * @return className + **/ + @ApiModelProperty(value = "Name of class where the vulnerability has been found") + public String getClassName() { + return className; + } + + public ProjectVersionIssueDetails confidence(Float confidence) { + this.confidence = confidence; + return this; + } + + /** + * Issue confidence + * @return confidence + **/ + @ApiModelProperty(required = true, value = "Issue confidence") + public Float getConfidence() { + return confidence; + } + + public void setConfidence(Float confidence) { + this.confidence = confidence; + } + + public ProjectVersionIssueDetails cookie(String cookie) { + this.cookie = cookie; + return this; + } + + /** + * Cookie + * @return cookie + **/ + @ApiModelProperty(required = true, value = "Cookie") + public String getCookie() { + return cookie; + } + + public void setCookie(String cookie) { + this.cookie = cookie; + } + + public ProjectVersionIssueDetails customAttributes(Object customAttributes) { + this.customAttributes = customAttributes; + return this; + } + + /** + * All the additional custom attributes defined for the issue by parser plugin + * @return customAttributes + **/ + @ApiModelProperty(value = "All the additional custom attributes defined for the issue by parser plugin") + public Object getCustomAttributes() { + return customAttributes; + } + + public void setCustomAttributes(Object customAttributes) { + this.customAttributes = customAttributes; + } + + public ProjectVersionIssueDetails customTagValues(List customTagValues) { + this.customTagValues = customTagValues; + return this; + } + + public ProjectVersionIssueDetails addCustomTagValuesItem(CustomTag customTagValuesItem) { + this.customTagValues.add(customTagValuesItem); + return this; + } + + /** + * Custom tag values + * @return customTagValues + **/ + @ApiModelProperty(required = true, value = "Custom tag values") + public List getCustomTagValues() { + return customTagValues; + } + + public void setCustomTagValues(List customTagValues) { + this.customTagValues = customTagValues; + } + + /** + * Version of the issue data. This attribute is initialized only for issues parsed by 3rd party parsers and is not set for the issues parsed by standard parsers included in SSC installation. + * @return dataVersion + **/ + @ApiModelProperty(value = "Version of the issue data. This attribute is initialized only for issues parsed by 3rd party parsers and is not set for the issues parsed by standard parsers included in SSC installation.") + public Integer getDataVersion() { + return dataVersion; + } + + public ProjectVersionIssueDetails detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Issue detail + * @return detail + **/ + @ApiModelProperty(required = true, value = "Issue detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public ProjectVersionIssueDetails displayEngineType(String displayEngineType) { + this.displayEngineType = displayEngineType; + return this; + } + + /** + * Display engine type + * @return displayEngineType + **/ + @ApiModelProperty(required = true, value = "Display engine type") + public String getDisplayEngineType() { + return displayEngineType; + } + + public void setDisplayEngineType(String displayEngineType) { + this.displayEngineType = displayEngineType; + } + + public ProjectVersionIssueDetails downloadRequest(Boolean downloadRequest) { + this.downloadRequest = downloadRequest; + return this; + } + + /** + * Request contains binary or large data + * @return downloadRequest + **/ + @ApiModelProperty(example = "false", required = true, value = "Request contains binary or large data") + public Boolean isDownloadRequest() { + return downloadRequest; + } + + public void setDownloadRequest(Boolean downloadRequest) { + this.downloadRequest = downloadRequest; + } + + public ProjectVersionIssueDetails downloadResponse(Boolean downloadResponse) { + this.downloadResponse = downloadResponse; + return this; + } + + /** + * Response contains binary or large data\" + * @return downloadResponse + **/ + @ApiModelProperty(example = "false", required = true, value = "Response contains binary or large data\"") + public Boolean isDownloadResponse() { + return downloadResponse; + } + + public void setDownloadResponse(Boolean downloadResponse) { + this.downloadResponse = downloadResponse; + } + + public ProjectVersionIssueDetails engineCategory(EngineCategoryEnum engineCategory) { + this.engineCategory = engineCategory; + return this; + } + + /** + * Engine category + * @return engineCategory + **/ + @ApiModelProperty(required = true, value = "Engine category") + public EngineCategoryEnum getEngineCategory() { + return engineCategory; + } + + public void setEngineCategory(EngineCategoryEnum engineCategory) { + this.engineCategory = engineCategory; + } + + public ProjectVersionIssueDetails engineType(String engineType) { + this.engineType = engineType; + return this; + } + + /** + * Engine type + * @return engineType + **/ + @ApiModelProperty(required = true, value = "Engine type") + public String getEngineType() { + return engineType; + } + + public void setEngineType(String engineType) { + this.engineType = engineType; + } + + public ProjectVersionIssueDetails foundDate(OffsetDateTime foundDate) { + this.foundDate = foundDate; + return this; + } + + /** + * Issue found date + * @return foundDate + **/ + @ApiModelProperty(required = true, value = "Issue found date") + public OffsetDateTime getFoundDate() { + return foundDate; + } + + public void setFoundDate(OffsetDateTime foundDate) { + this.foundDate = foundDate; + } + + public ProjectVersionIssueDetails friority(String friority) { + this.friority = friority; + return this; + } + + /** + * Fortify priority order (Friority) + * @return friority + **/ + @ApiModelProperty(required = true, value = "Fortify priority order (Friority)") + public String getFriority() { + return friority; + } + + public void setFriority(String friority) { + this.friority = friority; + } + + public ProjectVersionIssueDetails fullFileName(String fullFileName) { + this.fullFileName = fullFileName; + return this; + } + + /** + * Full file name where issue found + * @return fullFileName + **/ + @ApiModelProperty(required = true, value = "Full file name where issue found") + public String getFullFileName() { + return fullFileName; + } + + public void setFullFileName(String fullFileName) { + this.fullFileName = fullFileName; + } + + /** + * Name of function located in the file where the vulnerability has been found + * @return functionName + **/ + @ApiModelProperty(value = "Name of function located in the file where the vulnerability has been found") + public String getFunctionName() { + return functionName; + } + + /** + * Flag that indicates if there is a view template that should be used to display issue details on UI. + * @return hasViewTemplate + **/ + @ApiModelProperty(example = "false", value = "Flag that indicates if there is a view template that should be used to display issue details on UI.") + public Boolean isHasViewTemplate() { + return hasViewTemplate; + } + + public ProjectVersionIssueDetails hidden(Boolean hidden) { + this.hidden = hidden; + return this; + } + + /** + * Set to true if issue is hidden + * @return hidden + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue is hidden") + public Boolean isHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + /** + * Identifier + * @return id + **/ + @ApiModelProperty(value = "Identifier") + public Long getId() { + return id; + } + + public ProjectVersionIssueDetails impact(Float impact) { + this.impact = impact; + return this; + } + + /** + * Issue impact + * @return impact + **/ + @ApiModelProperty(required = true, value = "Issue impact") + public Float getImpact() { + return impact; + } + + public void setImpact(Float impact) { + this.impact = impact; + } + + public ProjectVersionIssueDetails issueInstanceId(String issueInstanceId) { + this.issueInstanceId = issueInstanceId; + return this; + } + + /** + * Issue instance identifier + * @return issueInstanceId + **/ + @ApiModelProperty(required = true, value = "Issue instance identifier") + public String getIssueInstanceId() { + return issueInstanceId; + } + + public void setIssueInstanceId(String issueInstanceId) { + this.issueInstanceId = issueInstanceId; + } + + public ProjectVersionIssueDetails issueName(String issueName) { + this.issueName = issueName; + return this; + } + + /** + * Name of the issue category + * @return issueName + **/ + @ApiModelProperty(required = true, value = "Name of the issue category") + public String getIssueName() { + return issueName; + } + + public void setIssueName(String issueName) { + this.issueName = issueName; + } + + public ProjectVersionIssueDetails issueState(String issueState) { + this.issueState = issueState; + return this; + } + + /** + * Flag represents issue state and says if issue is not an issue or open issue. Rule to calculate value of thi flag is defined in issue template. + * @return issueState + **/ + @ApiModelProperty(required = true, value = "Flag represents issue state and says if issue is not an issue or open issue. Rule to calculate value of thi flag is defined in issue template.") + public String getIssueState() { + return issueState; + } + + public void setIssueState(String issueState) { + this.issueState = issueState; + } + + public ProjectVersionIssueDetails issueStatus(IssueStatusEnum issueStatus) { + this.issueStatus = issueStatus; + return this; + } + + /** + * Flag represents issue review status + * @return issueStatus + **/ + @ApiModelProperty(value = "Flag represents issue review status") + public IssueStatusEnum getIssueStatus() { + return issueStatus; + } + + public void setIssueStatus(IssueStatusEnum issueStatus) { + this.issueStatus = issueStatus; + } + + public ProjectVersionIssueDetails kingdom(String kingdom) { + this.kingdom = kingdom; + return this; + } + + /** + * Issue kingdom + * @return kingdom + **/ + @ApiModelProperty(required = true, value = "Issue kingdom") + public String getKingdom() { + return kingdom; + } + + public void setKingdom(String kingdom) { + this.kingdom = kingdom; + } + + public ProjectVersionIssueDetails lastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + return this; + } + + /** + * ID of the latest scan that found the issue + * @return lastScanId + **/ + @ApiModelProperty(value = "ID of the latest scan that found the issue") + public Long getLastScanId() { + return lastScanId; + } + + public void setLastScanId(Long lastScanId) { + this.lastScanId = lastScanId; + } + + public ProjectVersionIssueDetails likelihood(Float likelihood) { + this.likelihood = likelihood; + return this; + } + + /** + * Issue likelihood + * @return likelihood + **/ + @ApiModelProperty(required = true, value = "Issue likelihood") + public Float getLikelihood() { + return likelihood; + } + + public void setLikelihood(Float likelihood) { + this.likelihood = likelihood; + } + + /** + * Line number in the file where the vulnerability has been found + * @return lineNumber + **/ + @ApiModelProperty(value = "Line number in the file where the vulnerability has been found") + public Integer getLineNumber() { + return lineNumber; + } + + /** + * Name of the Fortify category of the vulnerability + * @return mappedCategory + **/ + @ApiModelProperty(value = "Name of the Fortify category of the vulnerability") + public String getMappedCategory() { + return mappedCategory; + } + + public ProjectVersionIssueDetails method(String method) { + this.method = method; + return this; + } + + /** + * Method where issue found + * @return method + **/ + @ApiModelProperty(required = true, value = "Method where issue found") + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + /** + * Confidence level which estimates that vulnerability found in virtual (overridden) function will be executed by tainted source + * @return minVirtualCallConfidence + **/ + @ApiModelProperty(value = "Confidence level which estimates that vulnerability found in virtual (overridden) function will be executed by tainted source") + public Float getMinVirtualCallConfidence() { + return minVirtualCallConfidence; + } + + /** + * Name of package where the vulnerability has been found + * @return packageName + **/ + @ApiModelProperty(value = "Name of package where the vulnerability has been found") + public String getPackageName() { + return packageName; + } + + public ProjectVersionIssueDetails primaryRuleGuid(String primaryRuleGuid) { + this.primaryRuleGuid = primaryRuleGuid; + return this; + } + + /** + * Primary rule global unique identifier + * @return primaryRuleGuid + **/ + @ApiModelProperty(required = true, value = "Primary rule global unique identifier") + public String getPrimaryRuleGuid() { + return primaryRuleGuid; + } + + public void setPrimaryRuleGuid(String primaryRuleGuid) { + this.primaryRuleGuid = primaryRuleGuid; + } + + public ProjectVersionIssueDetails primaryTag(IssuePrimaryTag primaryTag) { + this.primaryTag = primaryTag; + return this; + } + + /** + * Identifier, name and value of the custom tag that is selected as a primary tag for the project version the issue belongs to. + * @return primaryTag + **/ + @ApiModelProperty(value = "Identifier, name and value of the custom tag that is selected as a primary tag for the project version the issue belongs to.") + public IssuePrimaryTag getPrimaryTag() { + return primaryTag; + } + + public void setPrimaryTag(IssuePrimaryTag primaryTag) { + this.primaryTag = primaryTag; + } + + /** + * Vulnerability probability + * @return probability + **/ + @ApiModelProperty(value = "Vulnerability probability") + public Float getProbability() { + return probability; + } + + public ProjectVersionIssueDetails projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Project version identifier + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version identifier") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public ProjectVersionIssueDetails recommendation(String recommendation) { + this.recommendation = recommendation; + return this; + } + + /** + * Issue recommendation + * @return recommendation + **/ + @ApiModelProperty(required = true, value = "Issue recommendation") + public String getRecommendation() { + return recommendation; + } + + public void setRecommendation(String recommendation) { + this.recommendation = recommendation; + } + + public ProjectVersionIssueDetails references(String references) { + this.references = references; + return this; + } + + /** + * References + * @return references + **/ + @ApiModelProperty(required = true, value = "References") + public String getReferences() { + return references; + } + + public void setReferences(String references) { + this.references = references; + } + + /** + * Level of complexity to fix this vulnerability + * @return remediationConstant + **/ + @ApiModelProperty(value = "Level of complexity to fix this vulnerability") + public Float getRemediationConstant() { + return remediationConstant; + } + + public ProjectVersionIssueDetails removedDate(OffsetDateTime removedDate) { + this.removedDate = removedDate; + return this; + } + + /** + * Issue removed date + * @return removedDate + **/ + @ApiModelProperty(required = true, value = "Issue removed date") + public OffsetDateTime getRemovedDate() { + return removedDate; + } + + public void setRemovedDate(OffsetDateTime removedDate) { + this.removedDate = removedDate; + } + + public ProjectVersionIssueDetails requestBody(String requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Request body + * @return requestBody + **/ + @ApiModelProperty(required = true, value = "Request body") + public String getRequestBody() { + return requestBody; + } + + public void setRequestBody(String requestBody) { + this.requestBody = requestBody; + } + + public ProjectVersionIssueDetails requestHeader(String requestHeader) { + this.requestHeader = requestHeader; + return this; + } + + /** + * Request header + * @return requestHeader + **/ + @ApiModelProperty(required = true, value = "Request header") + public String getRequestHeader() { + return requestHeader; + } + + public void setRequestHeader(String requestHeader) { + this.requestHeader = requestHeader; + } + + public ProjectVersionIssueDetails requestParameter(String requestParameter) { + this.requestParameter = requestParameter; + return this; + } + + /** + * Request parameter + * @return requestParameter + **/ + @ApiModelProperty(required = true, value = "Request parameter") + public String getRequestParameter() { + return requestParameter; + } + + public void setRequestParameter(String requestParameter) { + this.requestParameter = requestParameter; + } + + public ProjectVersionIssueDetails requestTriggers(List requestTriggers) { + this.requestTriggers = requestTriggers; + return this; + } + + public ProjectVersionIssueDetails addRequestTriggersItem(Trigger requestTriggersItem) { + if (this.requestTriggers == null) { + this.requestTriggers = new ArrayList(); + } + this.requestTriggers.add(requestTriggersItem); + return this; + } + + /** + * Triggers in the request + * @return requestTriggers + **/ + @ApiModelProperty(value = "Triggers in the request") + public List getRequestTriggers() { + return requestTriggers; + } + + public void setRequestTriggers(List requestTriggers) { + this.requestTriggers = requestTriggers; + } + + public ProjectVersionIssueDetails response(String response) { + this.response = response; + return this; + } + + /** + * Response + * @return response + **/ + @ApiModelProperty(required = true, value = "Response") + public String getResponse() { + return response; + } + + public void setResponse(String response) { + this.response = response; + } + + public ProjectVersionIssueDetails responseHeader(String responseHeader) { + this.responseHeader = responseHeader; + return this; + } + + /** + * Response header + * @return responseHeader + **/ + @ApiModelProperty(required = true, value = "Response header") + public String getResponseHeader() { + return responseHeader; + } + + public void setResponseHeader(String responseHeader) { + this.responseHeader = responseHeader; + } + + public ProjectVersionIssueDetails responseTriggers(List responseTriggers) { + this.responseTriggers = responseTriggers; + return this; + } + + public ProjectVersionIssueDetails addResponseTriggersItem(Trigger responseTriggersItem) { + if (this.responseTriggers == null) { + this.responseTriggers = new ArrayList(); + } + this.responseTriggers.add(responseTriggersItem); + return this; + } + + /** + * Triggers in the response + * @return responseTriggers + **/ + @ApiModelProperty(value = "Triggers in the response") + public List getResponseTriggers() { + return responseTriggers; + } + + public void setResponseTriggers(List responseTriggers) { + this.responseTriggers = responseTriggers; + } + + public ProjectVersionIssueDetails revision(Integer revision) { + this.revision = revision; + return this; + } + + /** + * Revision number + * @return revision + **/ + @ApiModelProperty(required = true, value = "Revision number") + public Integer getRevision() { + return revision; + } + + public void setRevision(Integer revision) { + this.revision = revision; + } + + public ProjectVersionIssueDetails scanStatus(String scanStatus) { + this.scanStatus = scanStatus; + return this; + } + + /** + * Scan status + * @return scanStatus + **/ + @ApiModelProperty(required = true, value = "Scan status") + public String getScanStatus() { + return scanStatus; + } + + public void setScanStatus(String scanStatus) { + this.scanStatus = scanStatus; + } + + public ProjectVersionIssueDetails severity(Float severity) { + this.severity = severity; + return this; + } + + /** + * Issue severity + * @return severity + **/ + @ApiModelProperty(required = true, value = "Issue severity") + public Float getSeverity() { + return severity; + } + + public void setSeverity(Float severity) { + this.severity = severity; + } + + public ProjectVersionIssueDetails shortFileName(String shortFileName) { + this.shortFileName = shortFileName; + return this; + } + + /** + * Short file name where issue found + * @return shortFileName + **/ + @ApiModelProperty(required = true, value = "Short file name where issue found") + public String getShortFileName() { + return shortFileName; + } + + public void setShortFileName(String shortFileName) { + this.shortFileName = shortFileName; + } + + /** + * Taint sink name + * @return sink + **/ + @ApiModelProperty(value = "Taint sink name") + public String getSink() { + return sink; + } + + /** + * Name of the context that contains vulnerability sink + * @return sinkContext + **/ + @ApiModelProperty(value = "Name of the context that contains vulnerability sink") + public String getSinkContext() { + return sinkContext; + } + + /** + * Name of the a program point where tainted data enter the program + * @return source + **/ + @ApiModelProperty(value = "Name of the a program point where tainted data enter the program") + public String getSource() { + return source; + } + + /** + * Name of the context that contains vulnerability sources + * @return sourceContext + **/ + @ApiModelProperty(value = "Name of the context that contains vulnerability sources") + public String getSourceContext() { + return sourceContext; + } + + /** + * File name where vulnerability source is located. + * @return sourceFile + **/ + @ApiModelProperty(value = "File name where vulnerability source is located.") + public String getSourceFile() { + return sourceFile; + } + + /** + * Line number in the source file where vulnerability source is located + * @return sourceLine + **/ + @ApiModelProperty(value = "Line number in the source file where vulnerability source is located") + public Integer getSourceLine() { + return sourceLine; + } + + public ProjectVersionIssueDetails suppressed(Boolean suppressed) { + this.suppressed = suppressed; + return this; + } + + /** + * Set to true if issue is suppressed + * @return suppressed + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if issue is suppressed") + public Boolean isSuppressed() { + return suppressed; + } + + public void setSuppressed(Boolean suppressed) { + this.suppressed = suppressed; + } + + /** + * An attribute of tainted data that enables the data flow analyzer to discriminate between different types of taint + * @return taintFlag + **/ + @ApiModelProperty(value = "An attribute of tainted data that enables the data flow analyzer to discriminate between different types of taint") + public String getTaintFlag() { + return taintFlag; + } + + public ProjectVersionIssueDetails tips(String tips) { + this.tips = tips; + return this; + } + + /** + * Issue tips + * @return tips + **/ + @ApiModelProperty(required = true, value = "Issue tips") + public String getTips() { + return tips; + } + + public void setTips(String tips) { + this.tips = tips; + } + + public ProjectVersionIssueDetails traceNodes(List> traceNodes) { + this.traceNodes = traceNodes; + return this; + } + + public ProjectVersionIssueDetails addTraceNodesItem(List traceNodesItem) { + this.traceNodes.add(traceNodesItem); + return this; + } + + /** + * Issue trace nodes + * @return traceNodes + **/ + @ApiModelProperty(required = true, value = "Issue trace nodes") + public List> getTraceNodes() { + return traceNodes; + } + + public void setTraceNodes(List> traceNodes) { + this.traceNodes = traceNodes; + } + + public ProjectVersionIssueDetails triggerString(String triggerString) { + this.triggerString = triggerString; + return this; + } + + /** + * Trigger string + * @return triggerString + **/ + @ApiModelProperty(required = true, value = "Trigger string") + public String getTriggerString() { + return triggerString; + } + + public void setTriggerString(String triggerString) { + this.triggerString = triggerString; + } + + public ProjectVersionIssueDetails url(String url) { + this.url = url; + return this; + } + + /** + * Issue url + * @return url + **/ + @ApiModelProperty(required = true, value = "Issue url") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public ProjectVersionIssueDetails vulnerableParameter(String vulnerableParameter) { + this.vulnerableParameter = vulnerableParameter; + return this; + } + + /** + * Vulnerable parameter + * @return vulnerableParameter + **/ + @ApiModelProperty(required = true, value = "Vulnerable parameter") + public String getVulnerableParameter() { + return vulnerableParameter; + } + + public void setVulnerableParameter(String vulnerableParameter) { + this.vulnerableParameter = vulnerableParameter; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionIssueDetails projectVersionIssueDetails = (ProjectVersionIssueDetails) o; + return Objects.equals(this.accuracy, projectVersionIssueDetails.accuracy) && + Objects.equals(this.analyzer, projectVersionIssueDetails.analyzer) && + Objects.equals(this.assignedUser, projectVersionIssueDetails.assignedUser) && + Objects.equals(this.attackPayload, projectVersionIssueDetails.attackPayload) && + Objects.equals(this.attackType, projectVersionIssueDetails.attackType) && + Objects.equals(this.audited, projectVersionIssueDetails.audited) && + Objects.equals(this.brief, projectVersionIssueDetails.brief) && + Objects.equals(this.className, projectVersionIssueDetails.className) && + Objects.equals(this.confidence, projectVersionIssueDetails.confidence) && + Objects.equals(this.cookie, projectVersionIssueDetails.cookie) && + Objects.equals(this.customAttributes, projectVersionIssueDetails.customAttributes) && + Objects.equals(this.customTagValues, projectVersionIssueDetails.customTagValues) && + Objects.equals(this.dataVersion, projectVersionIssueDetails.dataVersion) && + Objects.equals(this.detail, projectVersionIssueDetails.detail) && + Objects.equals(this.displayEngineType, projectVersionIssueDetails.displayEngineType) && + Objects.equals(this.downloadRequest, projectVersionIssueDetails.downloadRequest) && + Objects.equals(this.downloadResponse, projectVersionIssueDetails.downloadResponse) && + Objects.equals(this.engineCategory, projectVersionIssueDetails.engineCategory) && + Objects.equals(this.engineType, projectVersionIssueDetails.engineType) && + Objects.equals(this.foundDate, projectVersionIssueDetails.foundDate) && + Objects.equals(this.friority, projectVersionIssueDetails.friority) && + Objects.equals(this.fullFileName, projectVersionIssueDetails.fullFileName) && + Objects.equals(this.functionName, projectVersionIssueDetails.functionName) && + Objects.equals(this.hasViewTemplate, projectVersionIssueDetails.hasViewTemplate) && + Objects.equals(this.hidden, projectVersionIssueDetails.hidden) && + Objects.equals(this.id, projectVersionIssueDetails.id) && + Objects.equals(this.impact, projectVersionIssueDetails.impact) && + Objects.equals(this.issueInstanceId, projectVersionIssueDetails.issueInstanceId) && + Objects.equals(this.issueName, projectVersionIssueDetails.issueName) && + Objects.equals(this.issueState, projectVersionIssueDetails.issueState) && + Objects.equals(this.issueStatus, projectVersionIssueDetails.issueStatus) && + Objects.equals(this.kingdom, projectVersionIssueDetails.kingdom) && + Objects.equals(this.lastScanId, projectVersionIssueDetails.lastScanId) && + Objects.equals(this.likelihood, projectVersionIssueDetails.likelihood) && + Objects.equals(this.lineNumber, projectVersionIssueDetails.lineNumber) && + Objects.equals(this.mappedCategory, projectVersionIssueDetails.mappedCategory) && + Objects.equals(this.method, projectVersionIssueDetails.method) && + Objects.equals(this.minVirtualCallConfidence, projectVersionIssueDetails.minVirtualCallConfidence) && + Objects.equals(this.packageName, projectVersionIssueDetails.packageName) && + Objects.equals(this.primaryRuleGuid, projectVersionIssueDetails.primaryRuleGuid) && + Objects.equals(this.primaryTag, projectVersionIssueDetails.primaryTag) && + Objects.equals(this.probability, projectVersionIssueDetails.probability) && + Objects.equals(this.projectVersionId, projectVersionIssueDetails.projectVersionId) && + Objects.equals(this.recommendation, projectVersionIssueDetails.recommendation) && + Objects.equals(this.references, projectVersionIssueDetails.references) && + Objects.equals(this.remediationConstant, projectVersionIssueDetails.remediationConstant) && + Objects.equals(this.removedDate, projectVersionIssueDetails.removedDate) && + Objects.equals(this.requestBody, projectVersionIssueDetails.requestBody) && + Objects.equals(this.requestHeader, projectVersionIssueDetails.requestHeader) && + Objects.equals(this.requestParameter, projectVersionIssueDetails.requestParameter) && + Objects.equals(this.requestTriggers, projectVersionIssueDetails.requestTriggers) && + Objects.equals(this.response, projectVersionIssueDetails.response) && + Objects.equals(this.responseHeader, projectVersionIssueDetails.responseHeader) && + Objects.equals(this.responseTriggers, projectVersionIssueDetails.responseTriggers) && + Objects.equals(this.revision, projectVersionIssueDetails.revision) && + Objects.equals(this.scanStatus, projectVersionIssueDetails.scanStatus) && + Objects.equals(this.severity, projectVersionIssueDetails.severity) && + Objects.equals(this.shortFileName, projectVersionIssueDetails.shortFileName) && + Objects.equals(this.sink, projectVersionIssueDetails.sink) && + Objects.equals(this.sinkContext, projectVersionIssueDetails.sinkContext) && + Objects.equals(this.source, projectVersionIssueDetails.source) && + Objects.equals(this.sourceContext, projectVersionIssueDetails.sourceContext) && + Objects.equals(this.sourceFile, projectVersionIssueDetails.sourceFile) && + Objects.equals(this.sourceLine, projectVersionIssueDetails.sourceLine) && + Objects.equals(this.suppressed, projectVersionIssueDetails.suppressed) && + Objects.equals(this.taintFlag, projectVersionIssueDetails.taintFlag) && + Objects.equals(this.tips, projectVersionIssueDetails.tips) && + Objects.equals(this.traceNodes, projectVersionIssueDetails.traceNodes) && + Objects.equals(this.triggerString, projectVersionIssueDetails.triggerString) && + Objects.equals(this.url, projectVersionIssueDetails.url) && + Objects.equals(this.vulnerableParameter, projectVersionIssueDetails.vulnerableParameter); + } + + @Override + public int hashCode() { + return Objects.hash(accuracy, analyzer, assignedUser, attackPayload, attackType, audited, brief, className, confidence, cookie, customAttributes, customTagValues, dataVersion, detail, displayEngineType, downloadRequest, downloadResponse, engineCategory, engineType, foundDate, friority, fullFileName, functionName, hasViewTemplate, hidden, id, impact, issueInstanceId, issueName, issueState, issueStatus, kingdom, lastScanId, likelihood, lineNumber, mappedCategory, method, minVirtualCallConfidence, packageName, primaryRuleGuid, primaryTag, probability, projectVersionId, recommendation, references, remediationConstant, removedDate, requestBody, requestHeader, requestParameter, requestTriggers, response, responseHeader, responseTriggers, revision, scanStatus, severity, shortFileName, sink, sinkContext, source, sourceContext, sourceFile, sourceLine, suppressed, taintFlag, tips, traceNodes, triggerString, url, vulnerableParameter); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionIssueDetails {\n"); + + sb.append(" accuracy: ").append(toIndentedString(accuracy)).append("\n"); + sb.append(" analyzer: ").append(toIndentedString(analyzer)).append("\n"); + sb.append(" assignedUser: ").append(toIndentedString(assignedUser)).append("\n"); + sb.append(" attackPayload: ").append(toIndentedString(attackPayload)).append("\n"); + sb.append(" attackType: ").append(toIndentedString(attackType)).append("\n"); + sb.append(" audited: ").append(toIndentedString(audited)).append("\n"); + sb.append(" brief: ").append(toIndentedString(brief)).append("\n"); + sb.append(" className: ").append(toIndentedString(className)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" cookie: ").append(toIndentedString(cookie)).append("\n"); + sb.append(" customAttributes: ").append(toIndentedString(customAttributes)).append("\n"); + sb.append(" customTagValues: ").append(toIndentedString(customTagValues)).append("\n"); + sb.append(" dataVersion: ").append(toIndentedString(dataVersion)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" displayEngineType: ").append(toIndentedString(displayEngineType)).append("\n"); + sb.append(" downloadRequest: ").append(toIndentedString(downloadRequest)).append("\n"); + sb.append(" downloadResponse: ").append(toIndentedString(downloadResponse)).append("\n"); + sb.append(" engineCategory: ").append(toIndentedString(engineCategory)).append("\n"); + sb.append(" engineType: ").append(toIndentedString(engineType)).append("\n"); + sb.append(" foundDate: ").append(toIndentedString(foundDate)).append("\n"); + sb.append(" friority: ").append(toIndentedString(friority)).append("\n"); + sb.append(" fullFileName: ").append(toIndentedString(fullFileName)).append("\n"); + sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); + sb.append(" hasViewTemplate: ").append(toIndentedString(hasViewTemplate)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" impact: ").append(toIndentedString(impact)).append("\n"); + sb.append(" issueInstanceId: ").append(toIndentedString(issueInstanceId)).append("\n"); + sb.append(" issueName: ").append(toIndentedString(issueName)).append("\n"); + sb.append(" issueState: ").append(toIndentedString(issueState)).append("\n"); + sb.append(" issueStatus: ").append(toIndentedString(issueStatus)).append("\n"); + sb.append(" kingdom: ").append(toIndentedString(kingdom)).append("\n"); + sb.append(" lastScanId: ").append(toIndentedString(lastScanId)).append("\n"); + sb.append(" likelihood: ").append(toIndentedString(likelihood)).append("\n"); + sb.append(" lineNumber: ").append(toIndentedString(lineNumber)).append("\n"); + sb.append(" mappedCategory: ").append(toIndentedString(mappedCategory)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" minVirtualCallConfidence: ").append(toIndentedString(minVirtualCallConfidence)).append("\n"); + sb.append(" packageName: ").append(toIndentedString(packageName)).append("\n"); + sb.append(" primaryRuleGuid: ").append(toIndentedString(primaryRuleGuid)).append("\n"); + sb.append(" primaryTag: ").append(toIndentedString(primaryTag)).append("\n"); + sb.append(" probability: ").append(toIndentedString(probability)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" recommendation: ").append(toIndentedString(recommendation)).append("\n"); + sb.append(" references: ").append(toIndentedString(references)).append("\n"); + sb.append(" remediationConstant: ").append(toIndentedString(remediationConstant)).append("\n"); + sb.append(" removedDate: ").append(toIndentedString(removedDate)).append("\n"); + sb.append(" requestBody: ").append(toIndentedString(requestBody)).append("\n"); + sb.append(" requestHeader: ").append(toIndentedString(requestHeader)).append("\n"); + sb.append(" requestParameter: ").append(toIndentedString(requestParameter)).append("\n"); + sb.append(" requestTriggers: ").append(toIndentedString(requestTriggers)).append("\n"); + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append(" responseHeader: ").append(toIndentedString(responseHeader)).append("\n"); + sb.append(" responseTriggers: ").append(toIndentedString(responseTriggers)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" scanStatus: ").append(toIndentedString(scanStatus)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" shortFileName: ").append(toIndentedString(shortFileName)).append("\n"); + sb.append(" sink: ").append(toIndentedString(sink)).append("\n"); + sb.append(" sinkContext: ").append(toIndentedString(sinkContext)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" sourceContext: ").append(toIndentedString(sourceContext)).append("\n"); + sb.append(" sourceFile: ").append(toIndentedString(sourceFile)).append("\n"); + sb.append(" sourceLine: ").append(toIndentedString(sourceLine)).append("\n"); + sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n"); + sb.append(" taintFlag: ").append(toIndentedString(taintFlag)).append("\n"); + sb.append(" tips: ").append(toIndentedString(tips)).append("\n"); + sb.append(" traceNodes: ").append(toIndentedString(traceNodes)).append("\n"); + sb.append(" triggerString: ").append(toIndentedString(triggerString)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" vulnerableParameter: ").append(toIndentedString(vulnerableParameter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueGroup.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueGroup.java new file mode 100644 index 0000000..33f5e8b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionIssueGroup.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Project version issue group DTO object + */ +@ApiModel(description = "Project version issue group DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionIssueGroup { + @SerializedName("auditedCount") + private Integer auditedCount = null; + + @SerializedName("cleanName") + private String cleanName = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + @SerializedName("visibleCount") + private Integer visibleCount = null; + + public ProjectVersionIssueGroup auditedCount(Integer auditedCount) { + this.auditedCount = auditedCount; + return this; + } + + /** + * Audited issue count + * @return auditedCount + **/ + @ApiModelProperty(required = true, value = "Audited issue count") + public Integer getAuditedCount() { + return auditedCount; + } + + public void setAuditedCount(Integer auditedCount) { + this.auditedCount = auditedCount; + } + + public ProjectVersionIssueGroup cleanName(String cleanName) { + this.cleanName = cleanName; + return this; + } + + /** + * Issue group name not containing count, dashes etc + * @return cleanName + **/ + @ApiModelProperty(required = true, value = "Issue group name not containing count, dashes etc") + public String getCleanName() { + return cleanName; + } + + public void setCleanName(String cleanName) { + this.cleanName = cleanName; + } + + public ProjectVersionIssueGroup id(String id) { + this.id = id; + return this; + } + + /** + * Identifier + * @return id + **/ + @ApiModelProperty(required = true, value = "Identifier") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ProjectVersionIssueGroup name(String name) { + this.name = name; + return this; + } + + /** + * Issue group name + * @return name + **/ + @ApiModelProperty(required = true, value = "Issue group name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProjectVersionIssueGroup totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Issue total count + * @return totalCount + **/ + @ApiModelProperty(required = true, value = "Issue total count") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ProjectVersionIssueGroup visibleCount(Integer visibleCount) { + this.visibleCount = visibleCount; + return this; + } + + /** + * Visible issues count + * @return visibleCount + **/ + @ApiModelProperty(required = true, value = "Visible issues count") + public Integer getVisibleCount() { + return visibleCount; + } + + public void setVisibleCount(Integer visibleCount) { + this.visibleCount = visibleCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionIssueGroup projectVersionIssueGroup = (ProjectVersionIssueGroup) o; + return Objects.equals(this.auditedCount, projectVersionIssueGroup.auditedCount) && + Objects.equals(this.cleanName, projectVersionIssueGroup.cleanName) && + Objects.equals(this.id, projectVersionIssueGroup.id) && + Objects.equals(this.name, projectVersionIssueGroup.name) && + Objects.equals(this.totalCount, projectVersionIssueGroup.totalCount) && + Objects.equals(this.visibleCount, projectVersionIssueGroup.visibleCount); + } + + @Override + public int hashCode() { + return Objects.hash(auditedCount, cleanName, id, name, totalCount, visibleCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionIssueGroup {\n"); + + sb.append(" auditedCount: ").append(toIndentedString(auditedCount)).append("\n"); + sb.append(" cleanName: ").append(toIndentedString(cleanName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" visibleCount: ").append(toIndentedString(visibleCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionPurgeRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionPurgeRequest.java new file mode 100644 index 0000000..5c74b16 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionPurgeRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of purging the artifacts in project versions + */ +@ApiModel(description = "Request of purging the artifacts in project versions") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionPurgeRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public ProjectVersionPurgeRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public ProjectVersionPurgeRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List containing single project version ID to purge + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List containing single project version ID to purge") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionPurgeRequest projectVersionPurgeRequest = (ProjectVersionPurgeRequest) o; + return Objects.equals(this.projectVersionIds, projectVersionPurgeRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionPurgeRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshRequest.java new file mode 100644 index 0000000..83b8fa7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of refreshing the project versions and triggering the historical snapshot job + */ +@ApiModel(description = "Request of refreshing the project versions and triggering the historical snapshot job") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionRefreshRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public ProjectVersionRefreshRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public ProjectVersionRefreshRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List containing single project version ID to refresh + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List containing single project version ID to refresh") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionRefreshRequest projectVersionRefreshRequest = (ProjectVersionRefreshRequest) o; + return Objects.equals(this.projectVersionIds, projectVersionRefreshRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionRefreshRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshResponse.java new file mode 100644 index 0000000..f750c8c --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionRefreshResponse.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.FortifyJob; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Response of refreshing application version and triggered history snapshot job + */ +@ApiModel(description = "Response of refreshing application version and triggered history snapshot job") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionRefreshResponse { + @SerializedName("data") + private FortifyJob data = null; + + public ProjectVersionRefreshResponse data(FortifyJob data) { + this.data = data; + return this; + } + + /** + * Triggered history snapshot job information + * @return data + **/ + @ApiModelProperty(value = "Triggered history snapshot job information") + public FortifyJob getData() { + return data; + } + + public void setData(FortifyJob data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionRefreshResponse projectVersionRefreshResponse = (ProjectVersionRefreshResponse) o; + return Objects.equals(this.data, projectVersionRefreshResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionRefreshResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionState.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionState.java new file mode 100644 index 0000000..c8466d5 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionState.java @@ -0,0 +1,440 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Project Version State DTO object + */ +@ApiModel(description = "Project Version State DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionState { + @SerializedName("analysisResultsExist") + private Boolean analysisResultsExist = null; + + @SerializedName("analysisUploadEnabled") + private Boolean analysisUploadEnabled = null; + + @SerializedName("attentionRequired") + private Boolean attentionRequired = null; + + @SerializedName("auditEnabled") + private Boolean auditEnabled = null; + + @SerializedName("batchBugSubmissionExists") + private Boolean batchBugSubmissionExists = null; + + @SerializedName("committed") + private Boolean committed = null; + + @SerializedName("criticalPriorityIssueCountDelta") + private Integer criticalPriorityIssueCountDelta = null; + + @SerializedName("deltaPeriod") + private Integer deltaPeriod = null; + + @SerializedName("extraMessage") + private String extraMessage = null; + + @SerializedName("hasCustomIssues") + private Boolean hasCustomIssues = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("issueCountDelta") + private Integer issueCountDelta = null; + + @SerializedName("lastFprUploadDate") + private OffsetDateTime lastFprUploadDate = null; + + @SerializedName("metricEvaluationDate") + private OffsetDateTime metricEvaluationDate = null; + + @SerializedName("percentAuditedDelta") + private Float percentAuditedDelta = null; + + @SerializedName("percentCriticalPriorityIssuesAuditedDelta") + private Float percentCriticalPriorityIssuesAuditedDelta = null; + + public ProjectVersionState analysisResultsExist(Boolean analysisResultsExist) { + this.analysisResultsExist = analysisResultsExist; + return this; + } + + /** + * Get analysisResultsExist + * @return analysisResultsExist + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isAnalysisResultsExist() { + return analysisResultsExist; + } + + public void setAnalysisResultsExist(Boolean analysisResultsExist) { + this.analysisResultsExist = analysisResultsExist; + } + + public ProjectVersionState analysisUploadEnabled(Boolean analysisUploadEnabled) { + this.analysisUploadEnabled = analysisUploadEnabled; + return this; + } + + /** + * Get analysisUploadEnabled + * @return analysisUploadEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isAnalysisUploadEnabled() { + return analysisUploadEnabled; + } + + public void setAnalysisUploadEnabled(Boolean analysisUploadEnabled) { + this.analysisUploadEnabled = analysisUploadEnabled; + } + + public ProjectVersionState attentionRequired(Boolean attentionRequired) { + this.attentionRequired = attentionRequired; + return this; + } + + /** + * Get attentionRequired + * @return attentionRequired + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isAttentionRequired() { + return attentionRequired; + } + + public void setAttentionRequired(Boolean attentionRequired) { + this.attentionRequired = attentionRequired; + } + + public ProjectVersionState auditEnabled(Boolean auditEnabled) { + this.auditEnabled = auditEnabled; + return this; + } + + /** + * Get auditEnabled + * @return auditEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isAuditEnabled() { + return auditEnabled; + } + + public void setAuditEnabled(Boolean auditEnabled) { + this.auditEnabled = auditEnabled; + } + + public ProjectVersionState batchBugSubmissionExists(Boolean batchBugSubmissionExists) { + this.batchBugSubmissionExists = batchBugSubmissionExists; + return this; + } + + /** + * Get batchBugSubmissionExists + * @return batchBugSubmissionExists + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isBatchBugSubmissionExists() { + return batchBugSubmissionExists; + } + + public void setBatchBugSubmissionExists(Boolean batchBugSubmissionExists) { + this.batchBugSubmissionExists = batchBugSubmissionExists; + } + + public ProjectVersionState committed(Boolean committed) { + this.committed = committed; + return this; + } + + /** + * False if Project Version is in an incomplete state + * @return committed + **/ + @ApiModelProperty(example = "false", required = true, value = "False if Project Version is in an incomplete state") + public Boolean isCommitted() { + return committed; + } + + public void setCommitted(Boolean committed) { + this.committed = committed; + } + + public ProjectVersionState criticalPriorityIssueCountDelta(Integer criticalPriorityIssueCountDelta) { + this.criticalPriorityIssueCountDelta = criticalPriorityIssueCountDelta; + return this; + } + + /** + * Get criticalPriorityIssueCountDelta + * @return criticalPriorityIssueCountDelta + **/ + @ApiModelProperty(required = true, value = "") + public Integer getCriticalPriorityIssueCountDelta() { + return criticalPriorityIssueCountDelta; + } + + public void setCriticalPriorityIssueCountDelta(Integer criticalPriorityIssueCountDelta) { + this.criticalPriorityIssueCountDelta = criticalPriorityIssueCountDelta; + } + + public ProjectVersionState deltaPeriod(Integer deltaPeriod) { + this.deltaPeriod = deltaPeriod; + return this; + } + + /** + * Get deltaPeriod + * @return deltaPeriod + **/ + @ApiModelProperty(required = true, value = "") + public Integer getDeltaPeriod() { + return deltaPeriod; + } + + public void setDeltaPeriod(Integer deltaPeriod) { + this.deltaPeriod = deltaPeriod; + } + + public ProjectVersionState extraMessage(String extraMessage) { + this.extraMessage = extraMessage; + return this; + } + + /** + * Get extraMessage + * @return extraMessage + **/ + @ApiModelProperty(required = true, value = "") + public String getExtraMessage() { + return extraMessage; + } + + public void setExtraMessage(String extraMessage) { + this.extraMessage = extraMessage; + } + + public ProjectVersionState hasCustomIssues(Boolean hasCustomIssues) { + this.hasCustomIssues = hasCustomIssues; + return this; + } + + /** + * Get hasCustomIssues + * @return hasCustomIssues + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isHasCustomIssues() { + return hasCustomIssues; + } + + public void setHasCustomIssues(Boolean hasCustomIssues) { + this.hasCustomIssues = hasCustomIssues; + } + + public ProjectVersionState id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ProjectVersionState issueCountDelta(Integer issueCountDelta) { + this.issueCountDelta = issueCountDelta; + return this; + } + + /** + * Get issueCountDelta + * @return issueCountDelta + **/ + @ApiModelProperty(required = true, value = "") + public Integer getIssueCountDelta() { + return issueCountDelta; + } + + public void setIssueCountDelta(Integer issueCountDelta) { + this.issueCountDelta = issueCountDelta; + } + + public ProjectVersionState lastFprUploadDate(OffsetDateTime lastFprUploadDate) { + this.lastFprUploadDate = lastFprUploadDate; + return this; + } + + /** + * Get lastFprUploadDate + * @return lastFprUploadDate + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getLastFprUploadDate() { + return lastFprUploadDate; + } + + public void setLastFprUploadDate(OffsetDateTime lastFprUploadDate) { + this.lastFprUploadDate = lastFprUploadDate; + } + + public ProjectVersionState metricEvaluationDate(OffsetDateTime metricEvaluationDate) { + this.metricEvaluationDate = metricEvaluationDate; + return this; + } + + /** + * Get metricEvaluationDate + * @return metricEvaluationDate + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getMetricEvaluationDate() { + return metricEvaluationDate; + } + + public void setMetricEvaluationDate(OffsetDateTime metricEvaluationDate) { + this.metricEvaluationDate = metricEvaluationDate; + } + + public ProjectVersionState percentAuditedDelta(Float percentAuditedDelta) { + this.percentAuditedDelta = percentAuditedDelta; + return this; + } + + /** + * Get percentAuditedDelta + * @return percentAuditedDelta + **/ + @ApiModelProperty(required = true, value = "") + public Float getPercentAuditedDelta() { + return percentAuditedDelta; + } + + public void setPercentAuditedDelta(Float percentAuditedDelta) { + this.percentAuditedDelta = percentAuditedDelta; + } + + public ProjectVersionState percentCriticalPriorityIssuesAuditedDelta(Float percentCriticalPriorityIssuesAuditedDelta) { + this.percentCriticalPriorityIssuesAuditedDelta = percentCriticalPriorityIssuesAuditedDelta; + return this; + } + + /** + * Get percentCriticalPriorityIssuesAuditedDelta + * @return percentCriticalPriorityIssuesAuditedDelta + **/ + @ApiModelProperty(required = true, value = "") + public Float getPercentCriticalPriorityIssuesAuditedDelta() { + return percentCriticalPriorityIssuesAuditedDelta; + } + + public void setPercentCriticalPriorityIssuesAuditedDelta(Float percentCriticalPriorityIssuesAuditedDelta) { + this.percentCriticalPriorityIssuesAuditedDelta = percentCriticalPriorityIssuesAuditedDelta; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionState projectVersionState = (ProjectVersionState) o; + return Objects.equals(this.analysisResultsExist, projectVersionState.analysisResultsExist) && + Objects.equals(this.analysisUploadEnabled, projectVersionState.analysisUploadEnabled) && + Objects.equals(this.attentionRequired, projectVersionState.attentionRequired) && + Objects.equals(this.auditEnabled, projectVersionState.auditEnabled) && + Objects.equals(this.batchBugSubmissionExists, projectVersionState.batchBugSubmissionExists) && + Objects.equals(this.committed, projectVersionState.committed) && + Objects.equals(this.criticalPriorityIssueCountDelta, projectVersionState.criticalPriorityIssueCountDelta) && + Objects.equals(this.deltaPeriod, projectVersionState.deltaPeriod) && + Objects.equals(this.extraMessage, projectVersionState.extraMessage) && + Objects.equals(this.hasCustomIssues, projectVersionState.hasCustomIssues) && + Objects.equals(this.id, projectVersionState.id) && + Objects.equals(this.issueCountDelta, projectVersionState.issueCountDelta) && + Objects.equals(this.lastFprUploadDate, projectVersionState.lastFprUploadDate) && + Objects.equals(this.metricEvaluationDate, projectVersionState.metricEvaluationDate) && + Objects.equals(this.percentAuditedDelta, projectVersionState.percentAuditedDelta) && + Objects.equals(this.percentCriticalPriorityIssuesAuditedDelta, projectVersionState.percentCriticalPriorityIssuesAuditedDelta); + } + + @Override + public int hashCode() { + return Objects.hash(analysisResultsExist, analysisUploadEnabled, attentionRequired, auditEnabled, batchBugSubmissionExists, committed, criticalPriorityIssueCountDelta, deltaPeriod, extraMessage, hasCustomIssues, id, issueCountDelta, lastFprUploadDate, metricEvaluationDate, percentAuditedDelta, percentCriticalPriorityIssuesAuditedDelta); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionState {\n"); + + sb.append(" analysisResultsExist: ").append(toIndentedString(analysisResultsExist)).append("\n"); + sb.append(" analysisUploadEnabled: ").append(toIndentedString(analysisUploadEnabled)).append("\n"); + sb.append(" attentionRequired: ").append(toIndentedString(attentionRequired)).append("\n"); + sb.append(" auditEnabled: ").append(toIndentedString(auditEnabled)).append("\n"); + sb.append(" batchBugSubmissionExists: ").append(toIndentedString(batchBugSubmissionExists)).append("\n"); + sb.append(" committed: ").append(toIndentedString(committed)).append("\n"); + sb.append(" criticalPriorityIssueCountDelta: ").append(toIndentedString(criticalPriorityIssueCountDelta)).append("\n"); + sb.append(" deltaPeriod: ").append(toIndentedString(deltaPeriod)).append("\n"); + sb.append(" extraMessage: ").append(toIndentedString(extraMessage)).append("\n"); + sb.append(" hasCustomIssues: ").append(toIndentedString(hasCustomIssues)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" issueCountDelta: ").append(toIndentedString(issueCountDelta)).append("\n"); + sb.append(" lastFprUploadDate: ").append(toIndentedString(lastFprUploadDate)).append("\n"); + sb.append(" metricEvaluationDate: ").append(toIndentedString(metricEvaluationDate)).append("\n"); + sb.append(" percentAuditedDelta: ").append(toIndentedString(percentAuditedDelta)).append("\n"); + sb.append(" percentCriticalPriorityIssuesAuditedDelta: ").append(toIndentedString(percentCriticalPriorityIssuesAuditedDelta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestRequest.java new file mode 100644 index 0000000..b6cd429 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestRequest.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Request of testing project versions by searching the project requested + */ +@ApiModel(description = "Request of testing project versions by searching the project requested") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionTestRequest { + @SerializedName("projectName") + private String projectName = null; + + @SerializedName("projectVersionName") + private String projectVersionName = null; + + public ProjectVersionTestRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Project name to search + * @return projectName + **/ + @ApiModelProperty(required = true, value = "Project name to search") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public ProjectVersionTestRequest projectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + return this; + } + + /** + * Project version name to search + * @return projectVersionName + **/ + @ApiModelProperty(required = true, value = "Project version name to search") + public String getProjectVersionName() { + return projectVersionName; + } + + public void setProjectVersionName(String projectVersionName) { + this.projectVersionName = projectVersionName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionTestRequest projectVersionTestRequest = (ProjectVersionTestRequest) o; + return Objects.equals(this.projectName, projectVersionTestRequest.projectName) && + Objects.equals(this.projectVersionName, projectVersionTestRequest.projectVersionName); + } + + @Override + public int hashCode() { + return Objects.hash(projectName, projectVersionName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionTestRequest {\n"); + + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" projectVersionName: ").append(toIndentedString(projectVersionName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestResponse.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestResponse.java new file mode 100644 index 0000000..ce77da2 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTestResponse.java @@ -0,0 +1,85 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Response of testing whether application version with name and exists in specified application + */ +@ApiModel(description = "Response of testing whether application version with name and exists in specified application") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionTestResponse { + @SerializedName("found") + private Boolean found = null; + + /** + * If the application version founds + * @return found + **/ + @ApiModelProperty(example = "false", value = "If the application version founds") + public Boolean isFound() { + return found; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionTestResponse projectVersionTestResponse = (ProjectVersionTestResponse) o; + return Objects.equals(this.found, projectVersionTestResponse.found); + } + + @Override + public int hashCode() { + return Objects.hash(found); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionTestResponse {\n"); + + sb.append(" found: ").append(toIndentedString(found)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTrainAuditAssistantRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTrainAuditAssistantRequest.java new file mode 100644 index 0000000..32b81fa --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ProjectVersionTrainAuditAssistantRequest.java @@ -0,0 +1,101 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Request of sending the project versions training for audit assistant + */ +@ApiModel(description = "Request of sending the project versions training for audit assistant") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ProjectVersionTrainAuditAssistantRequest { + @SerializedName("projectVersionIds") + private List projectVersionIds = new ArrayList(); + + public ProjectVersionTrainAuditAssistantRequest projectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + return this; + } + + public ProjectVersionTrainAuditAssistantRequest addProjectVersionIdsItem(Long projectVersionIdsItem) { + this.projectVersionIds.add(projectVersionIdsItem); + return this; + } + + /** + * List containing single project version ID to send training for audit assistant + * @return projectVersionIds + **/ + @ApiModelProperty(required = true, value = "List containing single project version ID to send training for audit assistant") + public List getProjectVersionIds() { + return projectVersionIds; + } + + public void setProjectVersionIds(List projectVersionIds) { + this.projectVersionIds = projectVersionIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectVersionTrainAuditAssistantRequest projectVersionTrainAuditAssistantRequest = (ProjectVersionTrainAuditAssistantRequest) o; + return Objects.equals(this.projectVersionIds, projectVersionTrainAuditAssistantRequest.projectVersionIds); + } + + @Override + public int hashCode() { + return Objects.hash(projectVersionIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectVersionTrainAuditAssistantRequest {\n"); + + sb.append(" projectVersionIds: ").append(toIndentedString(projectVersionIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportAuthEntity.java b/src/main/java/com/fortify/ssc/restclient/model/ReportAuthEntity.java new file mode 100644 index 0000000..ad399e3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportAuthEntity.java @@ -0,0 +1,163 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * The Fortify User or Ldap User associated with a report + */ +@ApiModel(description = "The Fortify User or Ldap User associated with a report") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportAuthEntity { + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("userName") + private String userName = null; + + public ReportAuthEntity firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * First name + * @return firstName + **/ + @ApiModelProperty(value = "First name") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public ReportAuthEntity id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportAuthEntity lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Last name + * @return lastName + **/ + @ApiModelProperty(value = "Last name") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public ReportAuthEntity userName(String userName) { + this.userName = userName; + return this; + } + + /** + * User name + * @return userName + **/ + @ApiModelProperty(required = true, value = "User name") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportAuthEntity reportAuthEntity = (ReportAuthEntity) o; + return Objects.equals(this.firstName, reportAuthEntity.firstName) && + Objects.equals(this.id, reportAuthEntity.id) && + Objects.equals(this.lastName, reportAuthEntity.lastName) && + Objects.equals(this.userName, reportAuthEntity.userName); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, id, lastName, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportAuthEntity {\n"); + + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/ReportDefinition.java new file mode 100644 index 0000000..ce09468 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportDefinition.java @@ -0,0 +1,461 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportParameter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Report Definition DTO object + */ +@ApiModel(description = "Report Definition DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportDefinition { + @SerializedName("crossApp") + private Boolean crossApp = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("parameters") + private List parameters = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + @SerializedName("renderingEngine") + private String renderingEngine = null; + + @SerializedName("templateDocId") + private Long templateDocId = null; + + /** + * Type of report + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + APPLICATION_REPORTS("Application Reports"), + + SSA_APPLICATION_REPORTS("SSA Application Reports"), + + SSA_PORTFOLIO_REPORTS("SSA Portfolio Reports"), + + PORTFOLIO_REPORTS("Portfolio Reports"), + + COMPLIANCE_REPORTS("Compliance Reports"), + + ISSUE_REPORTS("Issue Reports"), + + RUNTIME_APPLICATION_REPORTS("Runtime Application Reports"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("typeDefaultText") + private String typeDefaultText = null; + + public ReportDefinition crossApp(Boolean crossApp) { + this.crossApp = crossApp; + return this; + } + + /** + * True if report applies to multiple project versions + * @return crossApp + **/ + @ApiModelProperty(example = "false", value = "True if report applies to multiple project versions") + public Boolean isCrossApp() { + return crossApp; + } + + public void setCrossApp(Boolean crossApp) { + this.crossApp = crossApp; + } + + public ReportDefinition description(String description) { + this.description = description; + return this; + } + + /** + * Report description + * @return description + **/ + @ApiModelProperty(value = "Report description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ReportDefinition fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * The name of the report definition file + * @return fileName + **/ + @ApiModelProperty(value = "The name of the report definition file") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public ReportDefinition guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Report definition GUID + * @return guid + **/ + @ApiModelProperty(value = "Report definition GUID") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public ReportDefinition id(Long id) { + this.id = id; + return this; + } + + /** + * Report definition identifier + * @return id + **/ + @ApiModelProperty(required = true, value = "Report definition identifier") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportDefinition inUse(Boolean inUse) { + this.inUse = inUse; + return this; + } + + /** + * Indicates whether the report definition is in use + * @return inUse + **/ + @ApiModelProperty(example = "false", value = "Indicates whether the report definition is in use") + public Boolean isInUse() { + return inUse; + } + + public void setInUse(Boolean inUse) { + this.inUse = inUse; + } + + public ReportDefinition name(String name) { + this.name = name; + return this; + } + + /** + * Report name + * @return name + **/ + @ApiModelProperty(required = true, value = "Report name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ReportDefinition objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Object version + * @return objectVersion + **/ + @ApiModelProperty(value = "Object version") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public ReportDefinition parameters(List parameters) { + this.parameters = parameters; + return this; + } + + public ReportDefinition addParametersItem(ReportParameter parametersItem) { + if (this.parameters == null) { + this.parameters = new ArrayList(); + } + this.parameters.add(parametersItem); + return this; + } + + /** + * List of report parameters + * @return parameters + **/ + @ApiModelProperty(value = "List of report parameters") + public List getParameters() { + return parameters; + } + + public void setParameters(List parameters) { + this.parameters = parameters; + } + + public ReportDefinition publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Publish version + * @return publishVersion + **/ + @ApiModelProperty(value = "Publish version") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public ReportDefinition renderingEngine(String renderingEngine) { + this.renderingEngine = renderingEngine; + return this; + } + + /** + * The engine used to render the report, e.g. BIRT + * @return renderingEngine + **/ + @ApiModelProperty(value = "The engine used to render the report, e.g. BIRT") + public String getRenderingEngine() { + return renderingEngine; + } + + public void setRenderingEngine(String renderingEngine) { + this.renderingEngine = renderingEngine; + } + + public ReportDefinition templateDocId(Long templateDocId) { + this.templateDocId = templateDocId; + return this; + } + + /** + * Template doc identifier + * @return templateDocId + **/ + @ApiModelProperty(value = "Template doc identifier") + public Long getTemplateDocId() { + return templateDocId; + } + + public void setTemplateDocId(Long templateDocId) { + this.templateDocId = templateDocId; + } + + public ReportDefinition type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Type of report + * @return type + **/ + @ApiModelProperty(required = true, value = "Type of report") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ReportDefinition typeDefaultText(String typeDefaultText) { + this.typeDefaultText = typeDefaultText; + return this; + } + + /** + * Report type default text + * @return typeDefaultText + **/ + @ApiModelProperty(value = "Report type default text") + public String getTypeDefaultText() { + return typeDefaultText; + } + + public void setTypeDefaultText(String typeDefaultText) { + this.typeDefaultText = typeDefaultText; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportDefinition reportDefinition = (ReportDefinition) o; + return Objects.equals(this.crossApp, reportDefinition.crossApp) && + Objects.equals(this.description, reportDefinition.description) && + Objects.equals(this.fileName, reportDefinition.fileName) && + Objects.equals(this.guid, reportDefinition.guid) && + Objects.equals(this.id, reportDefinition.id) && + Objects.equals(this.inUse, reportDefinition.inUse) && + Objects.equals(this.name, reportDefinition.name) && + Objects.equals(this.objectVersion, reportDefinition.objectVersion) && + Objects.equals(this.parameters, reportDefinition.parameters) && + Objects.equals(this.publishVersion, reportDefinition.publishVersion) && + Objects.equals(this.renderingEngine, reportDefinition.renderingEngine) && + Objects.equals(this.templateDocId, reportDefinition.templateDocId) && + Objects.equals(this.type, reportDefinition.type) && + Objects.equals(this.typeDefaultText, reportDefinition.typeDefaultText); + } + + @Override + public int hashCode() { + return Objects.hash(crossApp, description, fileName, guid, id, inUse, name, objectVersion, parameters, publishVersion, renderingEngine, templateDocId, type, typeDefaultText); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportDefinition {\n"); + + sb.append(" crossApp: ").append(toIndentedString(crossApp)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" renderingEngine: ").append(toIndentedString(renderingEngine)).append("\n"); + sb.append(" templateDocId: ").append(toIndentedString(templateDocId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" typeDefaultText: ").append(toIndentedString(typeDefaultText)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportLibrary.java b/src/main/java/com/fortify/ssc/restclient/model/ReportLibrary.java new file mode 100644 index 0000000..ad248c3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportLibrary.java @@ -0,0 +1,223 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Report Library DTO object + */ +@ApiModel(description = "Report Library DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportLibrary { + @SerializedName("description") + private String description = null; + + @SerializedName("fileDocId") + private Long fileDocId = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + public ReportLibrary description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ReportLibrary fileDocId(Long fileDocId) { + this.fileDocId = fileDocId; + return this; + } + + /** + * Report library file doc identifier + * @return fileDocId + **/ + @ApiModelProperty(value = "Report library file doc identifier") + public Long getFileDocId() { + return fileDocId; + } + + public void setFileDocId(Long fileDocId) { + this.fileDocId = fileDocId; + } + + public ReportLibrary guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Report library unique identifier + * @return guid + **/ + @ApiModelProperty(required = true, value = "Report library unique identifier") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public ReportLibrary name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ReportLibrary objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Object version + * @return objectVersion + **/ + @ApiModelProperty(value = "Object version") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public ReportLibrary publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Publish version + * @return publishVersion + **/ + @ApiModelProperty(value = "Publish version") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportLibrary reportLibrary = (ReportLibrary) o; + return Objects.equals(this.description, reportLibrary.description) && + Objects.equals(this.fileDocId, reportLibrary.fileDocId) && + Objects.equals(this.guid, reportLibrary.guid) && + Objects.equals(this.id, reportLibrary.id) && + Objects.equals(this.name, reportLibrary.name) && + Objects.equals(this.objectVersion, reportLibrary.objectVersion) && + Objects.equals(this.publishVersion, reportLibrary.publishVersion); + } + + @Override + public int hashCode() { + return Objects.hash(description, fileDocId, guid, id, name, objectVersion, publishVersion); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportLibrary {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" fileDocId: ").append(toIndentedString(fileDocId)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportParameter.java b/src/main/java/com/fortify/ssc/restclient/model/ReportParameter.java new file mode 100644 index 0000000..4e33d9d --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportParameter.java @@ -0,0 +1,333 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportParameterOption; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Report Parameter DTO object + */ +@ApiModel(description = "Report Parameter DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportParameter { + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("identifier") + private String identifier = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("paramOrder") + private Integer paramOrder = null; + + @SerializedName("reportDefinitionId") + private Long reportDefinitionId = null; + + @SerializedName("reportParameterOptions") + private List reportParameterOptions = null; + + /** + * Report parameter type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + SINGLE_PROJECT("SINGLE_PROJECT"), + + SINGLE_RUNTIME_APP("SINGLE_RUNTIME_APP"), + + SINGLE_SSA_PROJECT("SINGLE_SSA_PROJECT"), + + MULTI_PROJECT("MULTI_PROJECT"), + + MULTI_RUNTIME_APP("MULTI_RUNTIME_APP"), + + MULTI_SSA_PROJECT("MULTI_SSA_PROJECT"), + + PROJECT_ATTRIBUTE("PROJECT_ATTRIBUTE"), + + STRING("STRING"), + + BOOLEAN("BOOLEAN"), + + DATE("DATE"), + + SINGLE_SELECT_DEFAULT("SINGLE_SELECT_DEFAULT"), + + METADEF_GUID("METADEF_GUID"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + public ReportParameter description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ReportParameter id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportParameter identifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Report parameter identifier + * @return identifier + **/ + @ApiModelProperty(required = true, value = "Report parameter identifier") + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public ReportParameter name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ReportParameter paramOrder(Integer paramOrder) { + this.paramOrder = paramOrder; + return this; + } + + /** + * Order in which the parameter should appear + * @return paramOrder + **/ + @ApiModelProperty(value = "Order in which the parameter should appear") + public Integer getParamOrder() { + return paramOrder; + } + + public void setParamOrder(Integer paramOrder) { + this.paramOrder = paramOrder; + } + + public ReportParameter reportDefinitionId(Long reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Report definition identifier + * @return reportDefinitionId + **/ + @ApiModelProperty(required = true, value = "Report definition identifier") + public Long getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(Long reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportParameter reportParameterOptions(List reportParameterOptions) { + this.reportParameterOptions = reportParameterOptions; + return this; + } + + public ReportParameter addReportParameterOptionsItem(ReportParameterOption reportParameterOptionsItem) { + if (this.reportParameterOptions == null) { + this.reportParameterOptions = new ArrayList(); + } + this.reportParameterOptions.add(reportParameterOptionsItem); + return this; + } + + /** + * Report parameter options + * @return reportParameterOptions + **/ + @ApiModelProperty(value = "Report parameter options") + public List getReportParameterOptions() { + return reportParameterOptions; + } + + public void setReportParameterOptions(List reportParameterOptions) { + this.reportParameterOptions = reportParameterOptions; + } + + public ReportParameter type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Report parameter type + * @return type + **/ + @ApiModelProperty(required = true, value = "Report parameter type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportParameter reportParameter = (ReportParameter) o; + return Objects.equals(this.description, reportParameter.description) && + Objects.equals(this.id, reportParameter.id) && + Objects.equals(this.identifier, reportParameter.identifier) && + Objects.equals(this.name, reportParameter.name) && + Objects.equals(this.paramOrder, reportParameter.paramOrder) && + Objects.equals(this.reportDefinitionId, reportParameter.reportDefinitionId) && + Objects.equals(this.reportParameterOptions, reportParameter.reportParameterOptions) && + Objects.equals(this.type, reportParameter.type); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, identifier, name, paramOrder, reportDefinitionId, reportParameterOptions, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportParameter {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" paramOrder: ").append(toIndentedString(paramOrder)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportParameterOptions: ").append(toIndentedString(reportParameterOptions)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportParameterOption.java b/src/main/java/com/fortify/ssc/restclient/model/ReportParameterOption.java new file mode 100644 index 0000000..bed954a --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportParameterOption.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Report Parameter Option DTO object + */ +@ApiModel(description = "Report Parameter Option DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportParameterOption { + @SerializedName("defaultValue") + private Boolean defaultValue = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("displayValue") + private String displayValue = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("order") + private Integer order = null; + + @SerializedName("reportValue") + private String reportValue = null; + + public ReportParameterOption defaultValue(Boolean defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Indicates whether option is the default value + * @return defaultValue + **/ + @ApiModelProperty(example = "false", value = "Indicates whether option is the default value") + public Boolean isDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(Boolean defaultValue) { + this.defaultValue = defaultValue; + } + + public ReportParameterOption description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ReportParameterOption displayValue(String displayValue) { + this.displayValue = displayValue; + return this; + } + + /** + * Report parameter option display value + * @return displayValue + **/ + @ApiModelProperty(required = true, value = "Report parameter option display value") + public String getDisplayValue() { + return displayValue; + } + + public void setDisplayValue(String displayValue) { + this.displayValue = displayValue; + } + + public ReportParameterOption id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportParameterOption order(Integer order) { + this.order = order; + return this; + } + + /** + * Order in which the parameter option should appear + * @return order + **/ + @ApiModelProperty(value = "Order in which the parameter option should appear") + public Integer getOrder() { + return order; + } + + public void setOrder(Integer order) { + this.order = order; + } + + public ReportParameterOption reportValue(String reportValue) { + this.reportValue = reportValue; + return this; + } + + /** + * Report parameter option report value + * @return reportValue + **/ + @ApiModelProperty(required = true, value = "Report parameter option report value") + public String getReportValue() { + return reportValue; + } + + public void setReportValue(String reportValue) { + this.reportValue = reportValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportParameterOption reportParameterOption = (ReportParameterOption) o; + return Objects.equals(this.defaultValue, reportParameterOption.defaultValue) && + Objects.equals(this.description, reportParameterOption.description) && + Objects.equals(this.displayValue, reportParameterOption.displayValue) && + Objects.equals(this.id, reportParameterOption.id) && + Objects.equals(this.order, reportParameterOption.order) && + Objects.equals(this.reportValue, reportParameterOption.reportValue); + } + + @Override + public int hashCode() { + return Objects.hash(defaultValue, description, displayValue, id, order, reportValue); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportParameterOption {\n"); + + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayValue: ").append(toIndentedString(displayValue)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" reportValue: ").append(toIndentedString(reportValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportProject.java b/src/main/java/com/fortify/ssc/restclient/model/ReportProject.java new file mode 100644 index 0000000..0cb37f3 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportProject.java @@ -0,0 +1,174 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.ReportProjectVersion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Report Project DTO object + */ +@ApiModel(description = "Report Project DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportProject { + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("projectVersionsCount") + private Integer projectVersionsCount = null; + + @SerializedName("versions") + private List versions = null; + + public ReportProject id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportProject name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ReportProject projectVersionsCount(Integer projectVersionsCount) { + this.projectVersionsCount = projectVersionsCount; + return this; + } + + /** + * Count of project versions + * @return projectVersionsCount + **/ + @ApiModelProperty(value = "Count of project versions") + public Integer getProjectVersionsCount() { + return projectVersionsCount; + } + + public void setProjectVersionsCount(Integer projectVersionsCount) { + this.projectVersionsCount = projectVersionsCount; + } + + public ReportProject versions(List versions) { + this.versions = versions; + return this; + } + + public ReportProject addVersionsItem(ReportProjectVersion versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * List of report project versions + * @return versions + **/ + @ApiModelProperty(value = "List of report project versions") + public List getVersions() { + return versions; + } + + public void setVersions(List versions) { + this.versions = versions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportProject reportProject = (ReportProject) o; + return Objects.equals(this.id, reportProject.id) && + Objects.equals(this.name, reportProject.name) && + Objects.equals(this.projectVersionsCount, reportProject.projectVersionsCount) && + Objects.equals(this.versions, reportProject.versions); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, projectVersionsCount, versions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportProject {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectVersionsCount: ").append(toIndentedString(projectVersionsCount)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ReportProjectVersion.java b/src/main/java/com/fortify/ssc/restclient/model/ReportProjectVersion.java new file mode 100644 index 0000000..7fa09d0 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ReportProjectVersion.java @@ -0,0 +1,140 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * The project version that is associated to a report + */ +@ApiModel(description = "The project version that is associated to a report") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ReportProjectVersion { + @SerializedName("developmentPhase") + private String developmentPhase = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + public ReportProjectVersion developmentPhase(String developmentPhase) { + this.developmentPhase = developmentPhase; + return this; + } + + /** + * Report project version development phase + * @return developmentPhase + **/ + @ApiModelProperty(required = true, value = "Report project version development phase") + public String getDevelopmentPhase() { + return developmentPhase; + } + + public void setDevelopmentPhase(String developmentPhase) { + this.developmentPhase = developmentPhase; + } + + public ReportProjectVersion id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public ReportProjectVersion name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportProjectVersion reportProjectVersion = (ReportProjectVersion) o; + return Objects.equals(this.developmentPhase, reportProjectVersion.developmentPhase) && + Objects.equals(this.id, reportProjectVersion.id) && + Objects.equals(this.name, reportProjectVersion.name); + } + + @Override + public int hashCode() { + return Objects.hash(developmentPhase, id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportProjectVersion {\n"); + + sb.append(" developmentPhase: ").append(toIndentedString(developmentPhase)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ResponsibilityAssignment.java b/src/main/java/com/fortify/ssc/restclient/model/ResponsibilityAssignment.java new file mode 100644 index 0000000..a01bc1f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ResponsibilityAssignment.java @@ -0,0 +1,255 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * A Responsibility that a user in SSC is assigned to. There are currently a few responsibilities like Project Manager, Security Manager, Developer etc per Application. + */ +@ApiModel(description = "A Responsibility that a user in SSC is assigned to. There are currently a few responsibilities like Project Manager, Security Manager, Developer etc per Application.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ResponsibilityAssignment { + @SerializedName("email") + private String email = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("responsibilityDescription") + private String responsibilityDescription = null; + + @SerializedName("responsibilityGuid") + private String responsibilityGuid = null; + + @SerializedName("responsibilityName") + private String responsibilityName = null; + + @SerializedName("userId") + private Long userId = null; + + @SerializedName("userName") + private String userName = null; + + public ResponsibilityAssignment email(String email) { + this.email = email; + return this; + } + + /** + * Email of user assigned to responsibility + * @return email + **/ + @ApiModelProperty(required = true, value = "Email of user assigned to responsibility") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public ResponsibilityAssignment firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * First name of user assigned to responsibility + * @return firstName + **/ + @ApiModelProperty(required = true, value = "First name of user assigned to responsibility") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public ResponsibilityAssignment lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Last name of user assigned to responsibility + * @return lastName + **/ + @ApiModelProperty(required = true, value = "Last name of user assigned to responsibility") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public ResponsibilityAssignment responsibilityDescription(String responsibilityDescription) { + this.responsibilityDescription = responsibilityDescription; + return this; + } + + /** + * Responsibility description + * @return responsibilityDescription + **/ + @ApiModelProperty(required = true, value = "Responsibility description") + public String getResponsibilityDescription() { + return responsibilityDescription; + } + + public void setResponsibilityDescription(String responsibilityDescription) { + this.responsibilityDescription = responsibilityDescription; + } + + public ResponsibilityAssignment responsibilityGuid(String responsibilityGuid) { + this.responsibilityGuid = responsibilityGuid; + return this; + } + + /** + * Responsibility global unique identifier + * @return responsibilityGuid + **/ + @ApiModelProperty(required = true, value = "Responsibility global unique identifier") + public String getResponsibilityGuid() { + return responsibilityGuid; + } + + public void setResponsibilityGuid(String responsibilityGuid) { + this.responsibilityGuid = responsibilityGuid; + } + + public ResponsibilityAssignment responsibilityName(String responsibilityName) { + this.responsibilityName = responsibilityName; + return this; + } + + /** + * Responsibility name + * @return responsibilityName + **/ + @ApiModelProperty(required = true, value = "Responsibility name") + public String getResponsibilityName() { + return responsibilityName; + } + + public void setResponsibilityName(String responsibilityName) { + this.responsibilityName = responsibilityName; + } + + public ResponsibilityAssignment userId(Long userId) { + this.userId = userId; + return this; + } + + /** + * ID of user assigned to responsibility + * @return userId + **/ + @ApiModelProperty(required = true, value = "ID of user assigned to responsibility") + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public ResponsibilityAssignment userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Name of user assigned to responsibility + * @return userName + **/ + @ApiModelProperty(required = true, value = "Name of user assigned to responsibility") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponsibilityAssignment responsibilityAssignment = (ResponsibilityAssignment) o; + return Objects.equals(this.email, responsibilityAssignment.email) && + Objects.equals(this.firstName, responsibilityAssignment.firstName) && + Objects.equals(this.lastName, responsibilityAssignment.lastName) && + Objects.equals(this.responsibilityDescription, responsibilityAssignment.responsibilityDescription) && + Objects.equals(this.responsibilityGuid, responsibilityAssignment.responsibilityGuid) && + Objects.equals(this.responsibilityName, responsibilityAssignment.responsibilityName) && + Objects.equals(this.userId, responsibilityAssignment.userId) && + Objects.equals(this.userName, responsibilityAssignment.userName); + } + + @Override + public int hashCode() { + return Objects.hash(email, firstName, lastName, responsibilityDescription, responsibilityGuid, responsibilityName, userId, userName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponsibilityAssignment {\n"); + + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" responsibilityDescription: ").append(toIndentedString(responsibilityDescription)).append("\n"); + sb.append(" responsibilityGuid: ").append(toIndentedString(responsibilityGuid)).append("\n"); + sb.append(" responsibilityName: ").append(toIndentedString(responsibilityName)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ResultProcessingRule.java b/src/main/java/com/fortify/ssc/restclient/model/ResultProcessingRule.java new file mode 100644 index 0000000..093e280 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ResultProcessingRule.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Rule to be checked when processing an FPR + */ +@ApiModel(description = "Rule to be checked when processing an FPR") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ResultProcessingRule { + @SerializedName("displayName") + private String displayName = null; + + @SerializedName("displayable") + private Boolean displayable = null; + + @SerializedName("enabled") + private Boolean enabled = null; + + @SerializedName("identifier") + private String identifier = null; + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(required = true, value = "") + public String getDisplayName() { + return displayName; + } + + /** + * Get displayable + * @return displayable + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isDisplayable() { + return displayable; + } + + /** + * Get enabled + * @return enabled + **/ + @ApiModelProperty(example = "false", required = true, value = "") + public Boolean isEnabled() { + return enabled; + } + + /** + * Get identifier + * @return identifier + **/ + @ApiModelProperty(required = true, value = "") + public String getIdentifier() { + return identifier; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResultProcessingRule resultProcessingRule = (ResultProcessingRule) o; + return Objects.equals(this.displayName, resultProcessingRule.displayName) && + Objects.equals(this.displayable, resultProcessingRule.displayable) && + Objects.equals(this.enabled, resultProcessingRule.enabled) && + Objects.equals(this.identifier, resultProcessingRule.identifier); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, displayable, enabled, identifier); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultProcessingRule {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displayable: ").append(toIndentedString(displayable)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Role.java b/src/main/java/com/fortify/ssc/restclient/model/Role.java new file mode 100644 index 0000000..740768f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Role.java @@ -0,0 +1,345 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Role used by the server to determine user permissions + */ +@ApiModel(description = "Role used by the server to determine user permissions") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Role { + @SerializedName("allApplicationRole") + private Boolean allApplicationRole = null; + + @SerializedName("assignedToNonUsers") + private Boolean assignedToNonUsers = null; + + @SerializedName("builtIn") + private Boolean builtIn = null; + + @SerializedName("default") + private Boolean _default = null; + + @SerializedName("deletable") + private Boolean deletable = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + @SerializedName("permissionIds") + private List permissionIds = new ArrayList(); + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + @SerializedName("userOnly") + private Boolean userOnly = null; + + public Role allApplicationRole(Boolean allApplicationRole) { + this.allApplicationRole = allApplicationRole; + return this; + } + + /** + * True if a user with this Role has access to all Application Versions + * @return allApplicationRole + **/ + @ApiModelProperty(example = "false", required = true, value = "True if a user with this Role has access to all Application Versions") + public Boolean isAllApplicationRole() { + return allApplicationRole; + } + + public void setAllApplicationRole(Boolean allApplicationRole) { + this.allApplicationRole = allApplicationRole; + } + + public Role assignedToNonUsers(Boolean assignedToNonUsers) { + this.assignedToNonUsers = assignedToNonUsers; + return this; + } + + /** + * True if this Role is currently assigned to entities that are not users(groups, organizations, etc.) + * @return assignedToNonUsers + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this Role is currently assigned to entities that are not users(groups, organizations, etc.)") + public Boolean isAssignedToNonUsers() { + return assignedToNonUsers; + } + + public void setAssignedToNonUsers(Boolean assignedToNonUsers) { + this.assignedToNonUsers = assignedToNonUsers; + } + + public Role builtIn(Boolean builtIn) { + this.builtIn = builtIn; + return this; + } + + /** + * True if this Role is a default Fortify Role + * @return builtIn + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this Role is a default Fortify Role") + public Boolean isBuiltIn() { + return builtIn; + } + + public void setBuiltIn(Boolean builtIn) { + this.builtIn = builtIn; + } + + public Role _default(Boolean _default) { + this._default = _default; + return this; + } + + /** + * Get _default + * @return _default + **/ + @ApiModelProperty(value = "") + public Boolean isDefault() { + return _default; + } + + public void setDefault(Boolean _default) { + this._default = _default; + } + + public Role deletable(Boolean deletable) { + this.deletable = deletable; + return this; + } + + /** + * Get deletable + * @return deletable + **/ + @ApiModelProperty(value = "") + public Boolean isDeletable() { + return deletable; + } + + public void setDeletable(Boolean deletable) { + this.deletable = deletable; + } + + public Role description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public Role name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Role objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public Role permissionIds(List permissionIds) { + this.permissionIds = permissionIds; + return this; + } + + public Role addPermissionIdsItem(String permissionIdsItem) { + this.permissionIds.add(permissionIdsItem); + return this; + } + + /** + * Ids of the permissions this Role has + * @return permissionIds + **/ + @ApiModelProperty(required = true, value = "Ids of the permissions this Role has") + public List getPermissionIds() { + return permissionIds; + } + + public void setPermissionIds(List permissionIds) { + this.permissionIds = permissionIds; + } + + public Role publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public Role userOnly(Boolean userOnly) { + this.userOnly = userOnly; + return this; + } + + /** + * True if this Role can only be assigned to entities that are users + * @return userOnly + **/ + @ApiModelProperty(example = "false", required = true, value = "True if this Role can only be assigned to entities that are users") + public Boolean isUserOnly() { + return userOnly; + } + + public void setUserOnly(Boolean userOnly) { + this.userOnly = userOnly; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Role role = (Role) o; + return Objects.equals(this.allApplicationRole, role.allApplicationRole) && + Objects.equals(this.assignedToNonUsers, role.assignedToNonUsers) && + Objects.equals(this.builtIn, role.builtIn) && + Objects.equals(this._default, role._default) && + Objects.equals(this.deletable, role.deletable) && + Objects.equals(this.description, role.description) && + Objects.equals(this.id, role.id) && + Objects.equals(this.name, role.name) && + Objects.equals(this.objectVersion, role.objectVersion) && + Objects.equals(this.permissionIds, role.permissionIds) && + Objects.equals(this.publishVersion, role.publishVersion) && + Objects.equals(this.userOnly, role.userOnly); + } + + @Override + public int hashCode() { + return Objects.hash(allApplicationRole, assignedToNonUsers, builtIn, _default, deletable, description, id, name, objectVersion, permissionIds, publishVersion, userOnly); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Role {\n"); + + sb.append(" allApplicationRole: ").append(toIndentedString(allApplicationRole)).append("\n"); + sb.append(" assignedToNonUsers: ").append(toIndentedString(assignedToNonUsers)).append("\n"); + sb.append(" builtIn: ").append(toIndentedString(builtIn)).append("\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" permissionIds: ").append(toIndentedString(permissionIds)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" userOnly: ").append(toIndentedString(userOnly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/RulepackCore.java b/src/main/java/com/fortify/ssc/restclient/model/RulepackCore.java new file mode 100644 index 0000000..1c53d20 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/RulepackCore.java @@ -0,0 +1,361 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.RulepackCore; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Rulepack Core DTO object + */ +@ApiModel(description = "Rulepack Core DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class RulepackCore { + @SerializedName("description") + private String description = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("language") + private String language = null; + + @SerializedName("locale") + private String locale = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("rulepackGUID") + private String rulepackGUID = null; + + /** + * Gets or Sets rulepackType + */ + @JsonAdapter(RulepackTypeEnum.Adapter.class) + public enum RulepackTypeEnum { + SCA("SCA"), + + RTA("RTA"), + + CATPACK("CATPACK"); + + private String value; + + RulepackTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RulepackTypeEnum fromValue(String text) { + for (RulepackTypeEnum b : RulepackTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RulepackTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RulepackTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RulepackTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("rulepackType") + private RulepackTypeEnum rulepackType = null; + + @SerializedName("sku") + private String sku = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("versions") + private List versions = null; + + public RulepackCore description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public RulepackCore id(Long id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public RulepackCore language(String language) { + this.language = language; + return this; + } + + /** + * Get language + * @return language + **/ + @ApiModelProperty(required = true, value = "") + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public RulepackCore locale(String locale) { + this.locale = locale; + return this; + } + + /** + * Get locale + * @return locale + **/ + @ApiModelProperty(value = "") + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public RulepackCore name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RulepackCore rulepackGUID(String rulepackGUID) { + this.rulepackGUID = rulepackGUID; + return this; + } + + /** + * Get rulepackGUID + * @return rulepackGUID + **/ + @ApiModelProperty(required = true, value = "") + public String getRulepackGUID() { + return rulepackGUID; + } + + public void setRulepackGUID(String rulepackGUID) { + this.rulepackGUID = rulepackGUID; + } + + public RulepackCore rulepackType(RulepackTypeEnum rulepackType) { + this.rulepackType = rulepackType; + return this; + } + + /** + * Get rulepackType + * @return rulepackType + **/ + @ApiModelProperty(required = true, value = "") + public RulepackTypeEnum getRulepackType() { + return rulepackType; + } + + public void setRulepackType(RulepackTypeEnum rulepackType) { + this.rulepackType = rulepackType; + } + + public RulepackCore sku(String sku) { + this.sku = sku; + return this; + } + + /** + * Get sku + * @return sku + **/ + @ApiModelProperty(required = true, value = "") + public String getSku() { + return sku; + } + + public void setSku(String sku) { + this.sku = sku; + } + + public RulepackCore version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @ApiModelProperty(required = true, value = "") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public RulepackCore versions(List versions) { + this.versions = versions; + return this; + } + + public RulepackCore addVersionsItem(RulepackCore versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * Get versions + * @return versions + **/ + @ApiModelProperty(value = "") + public List getVersions() { + return versions; + } + + public void setVersions(List versions) { + this.versions = versions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RulepackCore rulepackCore = (RulepackCore) o; + return Objects.equals(this.description, rulepackCore.description) && + Objects.equals(this.id, rulepackCore.id) && + Objects.equals(this.language, rulepackCore.language) && + Objects.equals(this.locale, rulepackCore.locale) && + Objects.equals(this.name, rulepackCore.name) && + Objects.equals(this.rulepackGUID, rulepackCore.rulepackGUID) && + Objects.equals(this.rulepackType, rulepackCore.rulepackType) && + Objects.equals(this.sku, rulepackCore.sku) && + Objects.equals(this.version, rulepackCore.version) && + Objects.equals(this.versions, rulepackCore.versions); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, language, locale, name, rulepackGUID, rulepackType, sku, version, versions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RulepackCore {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rulepackGUID: ").append(toIndentedString(rulepackGUID)).append("\n"); + sb.append(" rulepackType: ").append(toIndentedString(rulepackType)).append("\n"); + sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/RulepacksBatchProcessStatus.java b/src/main/java/com/fortify/ssc/restclient/model/RulepacksBatchProcessStatus.java new file mode 100644 index 0000000..3a4ab31 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/RulepacksBatchProcessStatus.java @@ -0,0 +1,133 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.RulepacksBatchProcessStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Object represents rulepack processing status. This is readonly object. + */ +@ApiModel(description = "Object represents rulepack processing status. This is readonly object.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class RulepacksBatchProcessStatus { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("statuses") + private List statuses = null; + + /** + * Numeric processing code. + * @return code + **/ + @ApiModelProperty(value = "Numeric processing code.") + public Integer getCode() { + return code; + } + + /** + * Processing message. + * @return message + **/ + @ApiModelProperty(value = "Processing message.") + public String getMessage() { + return message; + } + + public RulepacksBatchProcessStatus statuses(List statuses) { + this.statuses = statuses; + return this; + } + + public RulepacksBatchProcessStatus addStatusesItem(RulepacksBatchProcessStatus statusesItem) { + if (this.statuses == null) { + this.statuses = new ArrayList(); + } + this.statuses.add(statusesItem); + return this; + } + + /** + * Child rulepacks processing statuses. + * @return statuses + **/ + @ApiModelProperty(value = "Child rulepacks processing statuses.") + public List getStatuses() { + return statuses; + } + + public void setStatuses(List statuses) { + this.statuses = statuses; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RulepacksBatchProcessStatus rulepacksBatchProcessStatus = (RulepacksBatchProcessStatus) o; + return Objects.equals(this.code, rulepacksBatchProcessStatus.code) && + Objects.equals(this.message, rulepacksBatchProcessStatus.message) && + Objects.equals(this.statuses, rulepacksBatchProcessStatus.statuses); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, statuses); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RulepacksBatchProcessStatus {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" statuses: ").append(toIndentedString(statuses)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/SavedReport.java b/src/main/java/com/fortify/ssc/restclient/model/SavedReport.java new file mode 100644 index 0000000..06e50f6 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/SavedReport.java @@ -0,0 +1,653 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.EmbeddedReportDefinition; +import com.fortify.ssc.restclient.model.InputReportParameter; +import com.fortify.ssc.restclient.model.ReportAuthEntity; +import com.fortify.ssc.restclient.model.ReportProject; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * Saved Report DTO object + */ +@ApiModel(description = "Saved Report DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class SavedReport { + @SerializedName("_embed") + private EmbeddedReportDefinition embed = null; + + @SerializedName("authEntity") + private ReportAuthEntity authEntity = null; + + /** + * Saved report output format + */ + @JsonAdapter(FormatEnum.Adapter.class) + public enum FormatEnum { + PDF("PDF"), + + DOC("DOC"), + + XLS("XLS"); + + private String value; + + FormatEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FormatEnum fromValue(String text) { + for (FormatEnum b : FormatEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FormatEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FormatEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FormatEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("format") + private FormatEnum format = null; + + @SerializedName("formatDefaultText") + private String formatDefaultText = null; + + @SerializedName("generationDate") + private OffsetDateTime generationDate = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inputReportParameters") + private List inputReportParameters = null; + + @SerializedName("isPublished") + private Boolean isPublished = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("note") + private String note = null; + + @SerializedName("projects") + private List projects = new ArrayList(); + + @SerializedName("published") + private Boolean published = null; + + @SerializedName("reportDefinitionId") + private Long reportDefinitionId = null; + + @SerializedName("reportProjectsCount") + private Integer reportProjectsCount = null; + + /** + * Saved report status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + SCHEDULED_FOR_PROCESSING("Scheduled for Processing"), + + PROCESSING("Processing"), + + PROCESSING_COMPLETE("Processing Complete"), + + ERROR_PROCESSING("Error Processing"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("statusDefaultText") + private String statusDefaultText = null; + + /** + * Saved report type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + APPLICATION_REPORTS("Application Reports"), + + SSA_APPLICATION_REPORTS("SSA Application Reports"), + + SSA_PORTFOLIO_REPORTS("SSA Portfolio Reports"), + + PORTFOLIO_REPORTS("Portfolio Reports"), + + COMPLIANCE_REPORTS("Compliance Reports"), + + ISSUE_REPORTS("Issue Reports"), + + RUNTIME_APPLICATION_REPORTS("Runtime Application Reports"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String text) { + for (TypeEnum b : TypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("type") + private TypeEnum type = null; + + @SerializedName("typeDefaultText") + private String typeDefaultText = null; + + public SavedReport embed(EmbeddedReportDefinition embed) { + this.embed = embed; + return this; + } + + /** + * Get embed + * @return embed + **/ + @ApiModelProperty(value = "") + public EmbeddedReportDefinition getEmbed() { + return embed; + } + + public void setEmbed(EmbeddedReportDefinition embed) { + this.embed = embed; + } + + public SavedReport authEntity(ReportAuthEntity authEntity) { + this.authEntity = authEntity; + return this; + } + + /** + * The Fortify User or Ldap User associated with the report + * @return authEntity + **/ + @ApiModelProperty(value = "The Fortify User or Ldap User associated with the report") + public ReportAuthEntity getAuthEntity() { + return authEntity; + } + + public void setAuthEntity(ReportAuthEntity authEntity) { + this.authEntity = authEntity; + } + + public SavedReport format(FormatEnum format) { + this.format = format; + return this; + } + + /** + * Saved report output format + * @return format + **/ + @ApiModelProperty(required = true, value = "Saved report output format") + public FormatEnum getFormat() { + return format; + } + + public void setFormat(FormatEnum format) { + this.format = format; + } + + public SavedReport formatDefaultText(String formatDefaultText) { + this.formatDefaultText = formatDefaultText; + return this; + } + + /** + * Saved report output format default text + * @return formatDefaultText + **/ + @ApiModelProperty(value = "Saved report output format default text") + public String getFormatDefaultText() { + return formatDefaultText; + } + + public void setFormatDefaultText(String formatDefaultText) { + this.formatDefaultText = formatDefaultText; + } + + public SavedReport generationDate(OffsetDateTime generationDate) { + this.generationDate = generationDate; + return this; + } + + /** + * Generation date + * @return generationDate + **/ + @ApiModelProperty(value = "Generation date") + public OffsetDateTime getGenerationDate() { + return generationDate; + } + + public void setGenerationDate(OffsetDateTime generationDate) { + this.generationDate = generationDate; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public SavedReport inputReportParameters(List inputReportParameters) { + this.inputReportParameters = inputReportParameters; + return this; + } + + public SavedReport addInputReportParametersItem(InputReportParameter inputReportParametersItem) { + if (this.inputReportParameters == null) { + this.inputReportParameters = new ArrayList(); + } + this.inputReportParameters.add(inputReportParametersItem); + return this; + } + + /** + * List of report parameters + * @return inputReportParameters + **/ + @ApiModelProperty(value = "List of report parameters") + public List getInputReportParameters() { + return inputReportParameters; + } + + public void setInputReportParameters(List inputReportParameters) { + this.inputReportParameters = inputReportParameters; + } + + public SavedReport isPublished(Boolean isPublished) { + this.isPublished = isPublished; + return this; + } + + /** + * Indicates whether saved report is published + * @return isPublished + **/ + @ApiModelProperty(example = "false", value = "Indicates whether saved report is published") + public Boolean isIsPublished() { + return isPublished; + } + + public void setIsPublished(Boolean isPublished) { + this.isPublished = isPublished; + } + + public SavedReport name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SavedReport note(String note) { + this.note = note; + return this; + } + + /** + * Saved report notes + * @return note + **/ + @ApiModelProperty(value = "Saved report notes") + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public SavedReport projects(List projects) { + this.projects = projects; + return this; + } + + public SavedReport addProjectsItem(ReportProject projectsItem) { + this.projects.add(projectsItem); + return this; + } + + /** + * List of project versions + * @return projects + **/ + @ApiModelProperty(required = true, value = "List of project versions") + public List getProjects() { + return projects; + } + + public void setProjects(List projects) { + this.projects = projects; + } + + public SavedReport published(Boolean published) { + this.published = published; + return this; + } + + /** + * Get published + * @return published + **/ + @ApiModelProperty(value = "") + public Boolean isPublished() { + return published; + } + + public void setPublished(Boolean published) { + this.published = published; + } + + public SavedReport reportDefinitionId(Long reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Report definition identifier + * @return reportDefinitionId + **/ + @ApiModelProperty(required = true, value = "Report definition identifier") + public Long getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(Long reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public SavedReport reportProjectsCount(Integer reportProjectsCount) { + this.reportProjectsCount = reportProjectsCount; + return this; + } + + /** + * Count of report projects + * @return reportProjectsCount + **/ + @ApiModelProperty(value = "Count of report projects") + public Integer getReportProjectsCount() { + return reportProjectsCount; + } + + public void setReportProjectsCount(Integer reportProjectsCount) { + this.reportProjectsCount = reportProjectsCount; + } + + public SavedReport status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Saved report status + * @return status + **/ + @ApiModelProperty(value = "Saved report status") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public SavedReport statusDefaultText(String statusDefaultText) { + this.statusDefaultText = statusDefaultText; + return this; + } + + /** + * Saved report status default text + * @return statusDefaultText + **/ + @ApiModelProperty(value = "Saved report status default text") + public String getStatusDefaultText() { + return statusDefaultText; + } + + public void setStatusDefaultText(String statusDefaultText) { + this.statusDefaultText = statusDefaultText; + } + + public SavedReport type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Saved report type + * @return type + **/ + @ApiModelProperty(required = true, value = "Saved report type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public SavedReport typeDefaultText(String typeDefaultText) { + this.typeDefaultText = typeDefaultText; + return this; + } + + /** + * Saved report type default text + * @return typeDefaultText + **/ + @ApiModelProperty(value = "Saved report type default text") + public String getTypeDefaultText() { + return typeDefaultText; + } + + public void setTypeDefaultText(String typeDefaultText) { + this.typeDefaultText = typeDefaultText; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SavedReport savedReport = (SavedReport) o; + return Objects.equals(this.embed, savedReport.embed) && + Objects.equals(this.authEntity, savedReport.authEntity) && + Objects.equals(this.format, savedReport.format) && + Objects.equals(this.formatDefaultText, savedReport.formatDefaultText) && + Objects.equals(this.generationDate, savedReport.generationDate) && + Objects.equals(this.id, savedReport.id) && + Objects.equals(this.inputReportParameters, savedReport.inputReportParameters) && + Objects.equals(this.isPublished, savedReport.isPublished) && + Objects.equals(this.name, savedReport.name) && + Objects.equals(this.note, savedReport.note) && + Objects.equals(this.projects, savedReport.projects) && + Objects.equals(this.published, savedReport.published) && + Objects.equals(this.reportDefinitionId, savedReport.reportDefinitionId) && + Objects.equals(this.reportProjectsCount, savedReport.reportProjectsCount) && + Objects.equals(this.status, savedReport.status) && + Objects.equals(this.statusDefaultText, savedReport.statusDefaultText) && + Objects.equals(this.type, savedReport.type) && + Objects.equals(this.typeDefaultText, savedReport.typeDefaultText); + } + + @Override + public int hashCode() { + return Objects.hash(embed, authEntity, format, formatDefaultText, generationDate, id, inputReportParameters, isPublished, name, note, projects, published, reportDefinitionId, reportProjectsCount, status, statusDefaultText, type, typeDefaultText); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SavedReport {\n"); + + sb.append(" embed: ").append(toIndentedString(embed)).append("\n"); + sb.append(" authEntity: ").append(toIndentedString(authEntity)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" formatDefaultText: ").append(toIndentedString(formatDefaultText)).append("\n"); + sb.append(" generationDate: ").append(toIndentedString(generationDate)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inputReportParameters: ").append(toIndentedString(inputReportParameters)).append("\n"); + sb.append(" isPublished: ").append(toIndentedString(isPublished)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" projects: ").append(toIndentedString(projects)).append("\n"); + sb.append(" published: ").append(toIndentedString(published)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportProjectsCount: ").append(toIndentedString(reportProjectsCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusDefaultText: ").append(toIndentedString(statusDefaultText)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" typeDefaultText: ").append(toIndentedString(typeDefaultText)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Scan.java b/src/main/java/com/fortify/ssc/restclient/model/Scan.java new file mode 100644 index 0000000..cf46818 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Scan.java @@ -0,0 +1,268 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * provides high-level information on the result of a single Fortify analysis, usually embedded inside an Artifact object + */ +@ApiModel(description = "provides high-level information on the result of a single Fortify analysis, usually embedded inside an Artifact object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Scan { + @SerializedName("artifactId") + private Long artifactId = null; + + @SerializedName("buildLabel") + private String buildLabel = null; + + @SerializedName("certification") + private String certification = null; + + @SerializedName("elapsedTime") + private String elapsedTime = null; + + @SerializedName("engineVersion") + private String engineVersion = null; + + @SerializedName("execLOC") + private Integer execLOC = null; + + @SerializedName("fortifyAnnotationsLOC") + private Integer fortifyAnnotationsLOC = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("hostname") + private String hostname = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("noOfFiles") + private Integer noOfFiles = null; + + @SerializedName("totalLOC") + private Integer totalLOC = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("uploadDate") + private OffsetDateTime uploadDate = null; + + /** + * identifier of parent artifact object which contains this scan object + * @return artifactId + **/ + @ApiModelProperty(required = true, value = "identifier of parent artifact object which contains this scan object") + public Long getArtifactId() { + return artifactId; + } + + /** + * optional string identifier provided by the user when scanning + * @return buildLabel + **/ + @ApiModelProperty(required = true, value = "optional string identifier provided by the user when scanning") + public String getBuildLabel() { + return buildLabel; + } + + /** + * indicates whether the checksum on the analysis result is valid + * @return certification + **/ + @ApiModelProperty(required = true, value = "indicates whether the checksum on the analysis result is valid") + public String getCertification() { + return certification; + } + + /** + * analysis duration + * @return elapsedTime + **/ + @ApiModelProperty(required = true, value = "analysis duration") + public String getElapsedTime() { + return elapsedTime; + } + + /** + * version of analysis engine + * @return engineVersion + **/ + @ApiModelProperty(required = true, value = "version of analysis engine") + public String getEngineVersion() { + return engineVersion; + } + + /** + * total executable lines of code included in sources (excluding comments etc.) + * @return execLOC + **/ + @ApiModelProperty(required = true, value = "total executable lines of code included in sources (excluding comments etc.)") + public Integer getExecLOC() { + return execLOC; + } + + /** + * lines of code with annotations + * @return fortifyAnnotationsLOC + **/ + @ApiModelProperty(required = true, value = "lines of code with annotations") + public Integer getFortifyAnnotationsLOC() { + return fortifyAnnotationsLOC; + } + + /** + * globally unique id of scan object + * @return guid + **/ + @ApiModelProperty(required = true, value = "globally unique id of scan object") + public String getGuid() { + return guid; + } + + /** + * Get hostname + * @return hostname + **/ + @ApiModelProperty(required = true, value = "") + public String getHostname() { + return hostname; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + /** + * number of source files included in scan + * @return noOfFiles + **/ + @ApiModelProperty(required = true, value = "number of source files included in scan") + public Integer getNoOfFiles() { + return noOfFiles; + } + + /** + * total lines of code included in sources (includes comments etc.) + * @return totalLOC + **/ + @ApiModelProperty(required = true, value = "total lines of code included in sources (includes comments etc.)") + public Integer getTotalLOC() { + return totalLOC; + } + + /** + * indicates the type of analyzer that produced it, such as SCA or WEBINSPECT + * @return type + **/ + @ApiModelProperty(required = true, value = "indicates the type of analyzer that produced it, such as SCA or WEBINSPECT") + public String getType() { + return type; + } + + /** + * Get uploadDate + * @return uploadDate + **/ + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getUploadDate() { + return uploadDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Scan scan = (Scan) o; + return Objects.equals(this.artifactId, scan.artifactId) && + Objects.equals(this.buildLabel, scan.buildLabel) && + Objects.equals(this.certification, scan.certification) && + Objects.equals(this.elapsedTime, scan.elapsedTime) && + Objects.equals(this.engineVersion, scan.engineVersion) && + Objects.equals(this.execLOC, scan.execLOC) && + Objects.equals(this.fortifyAnnotationsLOC, scan.fortifyAnnotationsLOC) && + Objects.equals(this.guid, scan.guid) && + Objects.equals(this.hostname, scan.hostname) && + Objects.equals(this.id, scan.id) && + Objects.equals(this.noOfFiles, scan.noOfFiles) && + Objects.equals(this.totalLOC, scan.totalLOC) && + Objects.equals(this.type, scan.type) && + Objects.equals(this.uploadDate, scan.uploadDate); + } + + @Override + public int hashCode() { + return Objects.hash(artifactId, buildLabel, certification, elapsedTime, engineVersion, execLOC, fortifyAnnotationsLOC, guid, hostname, id, noOfFiles, totalLOC, type, uploadDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Scan {\n"); + + sb.append(" artifactId: ").append(toIndentedString(artifactId)).append("\n"); + sb.append(" buildLabel: ").append(toIndentedString(buildLabel)).append("\n"); + sb.append(" certification: ").append(toIndentedString(certification)).append("\n"); + sb.append(" elapsedTime: ").append(toIndentedString(elapsedTime)).append("\n"); + sb.append(" engineVersion: ").append(toIndentedString(engineVersion)).append("\n"); + sb.append(" execLOC: ").append(toIndentedString(execLOC)).append("\n"); + sb.append(" fortifyAnnotationsLOC: ").append(toIndentedString(fortifyAnnotationsLOC)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" noOfFiles: ").append(toIndentedString(noOfFiles)).append("\n"); + sb.append(" totalLOC: ").append(toIndentedString(totalLOC)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" uploadDate: ").append(toIndentedString(uploadDate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ScanError.java b/src/main/java/com/fortify/ssc/restclient/model/ScanError.java new file mode 100644 index 0000000..65c06ae --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ScanError.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * error reported by SCA during the scan + */ +@ApiModel(description = "error reported by SCA during the scan") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ScanError { + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("errorDescription") + private String errorDescription = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("scanId") + private Long scanId = null; + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(required = true, value = "") + public String getErrorCode() { + return errorCode; + } + + /** + * Get errorDescription + * @return errorDescription + **/ + @ApiModelProperty(required = true, value = "") + public String getErrorDescription() { + return errorDescription; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + public Long getId() { + return id; + } + + /** + * id of scan associated with the error + * @return scanId + **/ + @ApiModelProperty(required = true, value = "id of scan associated with the error") + public Long getScanId() { + return scanId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScanError scanError = (ScanError) o; + return Objects.equals(this.errorCode, scanError.errorCode) && + Objects.equals(this.errorDescription, scanError.errorDescription) && + Objects.equals(this.id, scanError.id) && + Objects.equals(this.scanId, scanError.scanId); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorDescription, id, scanId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScanError {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorDescription: ").append(toIndentedString(errorDescription)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" scanId: ").append(toIndentedString(scanId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/SearchIndexStatus.java b/src/main/java/com/fortify/ssc/restclient/model/SearchIndexStatus.java new file mode 100644 index 0000000..c8e0363 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/SearchIndexStatus.java @@ -0,0 +1,113 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Status of search index + */ +@ApiModel(description = "Status of search index") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class SearchIndexStatus { + @SerializedName("configured") + private Boolean configured = null; + + @SerializedName("healthyIndex") + private Boolean healthyIndex = null; + + @SerializedName("indexingJobRunning") + private Boolean indexingJobRunning = null; + + /** + * Is index configured + * @return configured + **/ + @ApiModelProperty(example = "false", value = "Is index configured") + public Boolean isConfigured() { + return configured; + } + + /** + * Is the index Healthy + * @return healthyIndex + **/ + @ApiModelProperty(example = "false", value = "Is the index Healthy") + public Boolean isHealthyIndex() { + return healthyIndex; + } + + /** + * Is the indexing job running + * @return indexingJobRunning + **/ + @ApiModelProperty(example = "false", value = "Is the indexing job running") + public Boolean isIndexingJobRunning() { + return indexingJobRunning; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchIndexStatus searchIndexStatus = (SearchIndexStatus) o; + return Objects.equals(this.configured, searchIndexStatus.configured) && + Objects.equals(this.healthyIndex, searchIndexStatus.healthyIndex) && + Objects.equals(this.indexingJobRunning, searchIndexStatus.indexingJobRunning); + } + + @Override + public int hashCode() { + return Objects.hash(configured, healthyIndex, indexingJobRunning); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchIndexStatus {\n"); + + sb.append(" configured: ").append(toIndentedString(configured)).append("\n"); + sb.append(" healthyIndex: ").append(toIndentedString(healthyIndex)).append("\n"); + sb.append(" indexingJobRunning: ").append(toIndentedString(indexingJobRunning)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/SelectorOption.java b/src/main/java/com/fortify/ssc/restclient/model/SelectorOption.java new file mode 100644 index 0000000..4e6fd96 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/SelectorOption.java @@ -0,0 +1,113 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Single option of IssueFilterSelector. Every filtering option is associated with some specific issue attribute's value. + */ +@ApiModel(description = "Single option of IssueFilterSelector. Every filtering option is associated with some specific issue attribute's value.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class SelectorOption { + @SerializedName("displayName") + private String displayName = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("value") + private String value = null; + + /** + * Option's display name. + * @return displayName + **/ + @ApiModelProperty(required = true, value = "Option's display name.") + public String getDisplayName() { + return displayName; + } + + /** + * Option's unique GUID. + * @return guid + **/ + @ApiModelProperty(required = true, value = "Option's unique GUID.") + public String getGuid() { + return guid; + } + + /** + * Option's value that must be sent to backend when this option is selected. + * @return value + **/ + @ApiModelProperty(required = true, value = "Option's value that must be sent to backend when this option is selected.") + public String getValue() { + return value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelectorOption selectorOption = (SelectorOption) o; + return Objects.equals(this.displayName, selectorOption.displayName) && + Objects.equals(this.guid, selectorOption.guid) && + Objects.equals(this.value, selectorOption.value); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, guid, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelectorOption {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/SourceFileDto.java b/src/main/java/com/fortify/ssc/restclient/model/SourceFileDto.java new file mode 100644 index 0000000..588d4d1 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/SourceFileDto.java @@ -0,0 +1,155 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Source file content where vulnerabilities were found. + */ +@ApiModel(description = "Source file content where vulnerabilities were found.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class SourceFileDto { + @SerializedName("checksum") + private String checksum = null; + + @SerializedName("encoding") + private String encoding = null; + + @SerializedName("fileContent") + private String fileContent = null; + + @SerializedName("filePath") + private String filePath = null; + + @SerializedName("languageName") + private String languageName = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + /** + * Source file checksum. + * @return checksum + **/ + @ApiModelProperty(required = true, value = "Source file checksum.") + public String getChecksum() { + return checksum; + } + + /** + * Source file encoding. + * @return encoding + **/ + @ApiModelProperty(required = true, value = "Source file encoding.") + public String getEncoding() { + return encoding; + } + + /** + * Scanned source file content. + * @return fileContent + **/ + @ApiModelProperty(required = true, value = "Scanned source file content.") + public String getFileContent() { + return fileContent; + } + + /** + * Full path to source file on the machine where scan was performed. + * @return filePath + **/ + @ApiModelProperty(required = true, value = "Full path to source file on the machine where scan was performed.") + public String getFilePath() { + return filePath; + } + + /** + * Source file programming language name. + * @return languageName + **/ + @ApiModelProperty(required = true, value = "Source file programming language name.") + public String getLanguageName() { + return languageName; + } + + /** + * Project version identifier that contains this source file. + * @return projectVersionId + **/ + @ApiModelProperty(required = true, value = "Project version identifier that contains this source file.") + public Long getProjectVersionId() { + return projectVersionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceFileDto sourceFileDto = (SourceFileDto) o; + return Objects.equals(this.checksum, sourceFileDto.checksum) && + Objects.equals(this.encoding, sourceFileDto.encoding) && + Objects.equals(this.fileContent, sourceFileDto.fileContent) && + Objects.equals(this.filePath, sourceFileDto.filePath) && + Objects.equals(this.languageName, sourceFileDto.languageName) && + Objects.equals(this.projectVersionId, sourceFileDto.projectVersionId); + } + + @Override + public int hashCode() { + return Objects.hash(checksum, encoding, fileContent, filePath, languageName, projectVersionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SourceFileDto {\n"); + + sb.append(" checksum: ").append(toIndentedString(checksum)).append("\n"); + sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); + sb.append(" fileContent: ").append(toIndentedString(fileContent)).append("\n"); + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" languageName: ").append(toIndentedString(languageName)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/SystemConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/SystemConfiguration.java new file mode 100644 index 0000000..7eb7daf --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/SystemConfiguration.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * System Configuration defined by key and values + */ +@ApiModel(description = "System Configuration defined by key and values") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class SystemConfiguration { + @SerializedName("name") + private String name = null; + + @SerializedName("value") + private String value = null; + + public SystemConfiguration name(String name) { + this.name = name; + return this; + } + + /** + * Configuration name + * @return name + **/ + @ApiModelProperty(required = true, value = "Configuration name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SystemConfiguration value(String value) { + this.value = value; + return this; + } + + /** + * Configuration value + * @return value + **/ + @ApiModelProperty(required = true, value = "Configuration value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SystemConfiguration systemConfiguration = (SystemConfiguration) o; + return Objects.equals(this.name, systemConfiguration.name) && + Objects.equals(this.value, systemConfiguration.value); + } + + @Override + public int hashCode() { + return Objects.hash(name, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SystemConfiguration {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/TemplateItem.java b/src/main/java/com/fortify/ssc/restclient/model/TemplateItem.java new file mode 100644 index 0000000..498e28f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/TemplateItem.java @@ -0,0 +1,64 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import java.util.HashMap; +import java.util.Map; + +/** + * TemplateItem + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class TemplateItem extends HashMap { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TemplateItem {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/TokenDefinition.java b/src/main/java/com/fortify/ssc/restclient/model/TokenDefinition.java new file mode 100644 index 0000000..2b2ef94 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/TokenDefinition.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Metadata of a Software Security Center token + */ +@ApiModel(description = "Metadata of a Software Security Center token") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class TokenDefinition { + @SerializedName("capabilityDescription") + private String capabilityDescription = null; + + @SerializedName("maxDaysToLive") + private Integer maxDaysToLive = null; + + @SerializedName("maxUsages") + private Integer maxUsages = null; + + @SerializedName("type") + private String type = null; + + /** + * Describes what tokens generated from this token specification can be used for. Note that these capabilities are subordinate to the actual roles/permissions granted to the owner of the token + * @return capabilityDescription + **/ + @ApiModelProperty(value = "Describes what tokens generated from this token specification can be used for. Note that these capabilities are subordinate to the actual roles/permissions granted to the owner of the token") + public String getCapabilityDescription() { + return capabilityDescription; + } + + /** + * Maximum allowable lifetime (in days) of token + * @return maxDaysToLive + **/ + @ApiModelProperty(value = "Maximum allowable lifetime (in days) of token") + public Integer getMaxDaysToLive() { + return maxDaysToLive; + } + + /** + * Maximum number of api calls that can be made using this token type. A value of -1 denotes unlimited number of calls. + * @return maxUsages + **/ + @ApiModelProperty(value = "Maximum number of api calls that can be made using this token type. A value of -1 denotes unlimited number of calls.") + public Integer getMaxUsages() { + return maxUsages; + } + + /** + * Token type + * @return type + **/ + @ApiModelProperty(value = "Token type") + public String getType() { + return type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TokenDefinition tokenDefinition = (TokenDefinition) o; + return Objects.equals(this.capabilityDescription, tokenDefinition.capabilityDescription) && + Objects.equals(this.maxDaysToLive, tokenDefinition.maxDaysToLive) && + Objects.equals(this.maxUsages, tokenDefinition.maxUsages) && + Objects.equals(this.type, tokenDefinition.type); + } + + @Override + public int hashCode() { + return Objects.hash(capabilityDescription, maxDaysToLive, maxUsages, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TokenDefinition {\n"); + + sb.append(" capabilityDescription: ").append(toIndentedString(capabilityDescription)).append("\n"); + sb.append(" maxDaysToLive: ").append(toIndentedString(maxDaysToLive)).append("\n"); + sb.append(" maxUsages: ").append(toIndentedString(maxUsages)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/TraceNodeDto.java b/src/main/java/com/fortify/ssc/restclient/model/TraceNodeDto.java new file mode 100644 index 0000000..df90071 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/TraceNodeDto.java @@ -0,0 +1,321 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.TraceNodeDto; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Issue analysis trace node DTO. + */ +@ApiModel(description = "Issue analysis trace node DTO.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class TraceNodeDto { + @SerializedName("childNodes") + private List childNodes = new ArrayList(); + + @SerializedName("detail") + private Boolean detail = null; + + @SerializedName("evidence") + private String evidence = null; + + @SerializedName("file") + private String file = null; + + @SerializedName("fullPath") + private String fullPath = null; + + @SerializedName("line") + private Integer line = null; + + /** + * Type of the trace node. + */ + @JsonAdapter(NodeTypeEnum.Adapter.class) + public enum NodeTypeEnum { + IN_CALL("IN_CALL"), + + OUT_CALL("OUT_CALL"), + + IN_OUT_CALL("IN_OUT_CALL"), + + READ("READ"), + + READ_GLOBAL("READ_GLOBAL"), + + ASSIGN("ASSIGN"), + + ASSIGN_GLOBAL("ASSIGN_GLOBAL"), + + ALIAS("ALIAS"), + + COMPARE("COMPARE"), + + RETURN("RETURN"), + + REF("REF"), + + DEREF("DEREF"), + + END_SCOPE("END_SCOPE"), + + JUMP("JUMP"), + + BRANCH_TAKEN("BRANCH_TAKEN"), + + BRANCH_NOT_TAKEN("BRANCH_NOT_TAKEN"), + + EXTERNAL_ENTRY("EXTERNAL_ENTRY"), + + RUNTIME_SINK("RUNTIME_SINK"), + + RUNTIME_SOURCE("RUNTIME_SOURCE"), + + RUNTIME_VALIDATION("RUNTIME_VALIDATION"), + + RUNTIME_TRACE("RUNTIME_TRACE"), + + TRACE_RUNTIME_SOURCE("TRACE_RUNTIME_SOURCE"), + + TRACE_RUNTIME_SINK("TRACE_RUNTIME_SINK"), + + TAINT_CHANGE("TAINT_CHANGE"), + + GENERIC("GENERIC"); + + private String value; + + NodeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NodeTypeEnum fromValue(String text) { + for (NodeTypeEnum b : NodeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NodeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NodeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NodeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("nodeType") + private NodeTypeEnum nodeType = null; + + @SerializedName("primary") + private Boolean primary = null; + + @SerializedName("text") + private String text = null; + + @SerializedName("toolTip") + private String toolTip = null; + + public TraceNodeDto childNodes(List childNodes) { + this.childNodes = childNodes; + return this; + } + + public TraceNodeDto addChildNodesItem(TraceNodeDto childNodesItem) { + this.childNodes.add(childNodesItem); + return this; + } + + /** + * Child nodes of the current node. + * @return childNodes + **/ + @ApiModelProperty(required = true, value = "Child nodes of the current node.") + public List getChildNodes() { + return childNodes; + } + + public void setChildNodes(List childNodes) { + this.childNodes = childNodes; + } + + /** + * Detail node marker. + * @return detail + **/ + @ApiModelProperty(example = "false", required = true, value = "Detail node marker.") + public Boolean isDetail() { + return detail; + } + + /** + * Node evidence text. + * @return evidence + **/ + @ApiModelProperty(required = true, value = "Node evidence text.") + public String getEvidence() { + return evidence; + } + + /** + * Name of the file associated with this node. + * @return file + **/ + @ApiModelProperty(required = true, value = "Name of the file associated with this node.") + public String getFile() { + return file; + } + + /** + * Full path to source file associated with this node. + * @return fullPath + **/ + @ApiModelProperty(required = true, value = "Full path to source file associated with this node.") + public String getFullPath() { + return fullPath; + } + + /** + * Source file line number where issue was found. + * @return line + **/ + @ApiModelProperty(required = true, value = "Source file line number where issue was found.") + public Integer getLine() { + return line; + } + + /** + * Type of the trace node. + * @return nodeType + **/ + @ApiModelProperty(required = true, value = "Type of the trace node.") + public NodeTypeEnum getNodeType() { + return nodeType; + } + + /** + * Primry node marker. + * @return primary + **/ + @ApiModelProperty(example = "false", required = true, value = "Primry node marker.") + public Boolean isPrimary() { + return primary; + } + + /** + * Node display text. + * @return text + **/ + @ApiModelProperty(required = true, value = "Node display text.") + public String getText() { + return text; + } + + /** + * Node description/tooltip. + * @return toolTip + **/ + @ApiModelProperty(required = true, value = "Node description/tooltip.") + public String getToolTip() { + return toolTip; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TraceNodeDto traceNodeDto = (TraceNodeDto) o; + return Objects.equals(this.childNodes, traceNodeDto.childNodes) && + Objects.equals(this.detail, traceNodeDto.detail) && + Objects.equals(this.evidence, traceNodeDto.evidence) && + Objects.equals(this.file, traceNodeDto.file) && + Objects.equals(this.fullPath, traceNodeDto.fullPath) && + Objects.equals(this.line, traceNodeDto.line) && + Objects.equals(this.nodeType, traceNodeDto.nodeType) && + Objects.equals(this.primary, traceNodeDto.primary) && + Objects.equals(this.text, traceNodeDto.text) && + Objects.equals(this.toolTip, traceNodeDto.toolTip); + } + + @Override + public int hashCode() { + return Objects.hash(childNodes, detail, evidence, file, fullPath, line, nodeType, primary, text, toolTip); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TraceNodeDto {\n"); + + sb.append(" childNodes: ").append(toIndentedString(childNodes)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" evidence: ").append(toIndentedString(evidence)).append("\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" fullPath: ").append(toIndentedString(fullPath)).append("\n"); + sb.append(" line: ").append(toIndentedString(line)).append("\n"); + sb.append(" nodeType: ").append(toIndentedString(nodeType)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" toolTip: ").append(toIndentedString(toolTip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Trigger.java b/src/main/java/com/fortify/ssc/restclient/model/Trigger.java new file mode 100644 index 0000000..c0057be --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Trigger.java @@ -0,0 +1,140 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Trigger in a request or response that identifies a vulnerability + */ +@ApiModel(description = "Trigger in a request or response that identifies a vulnerability") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Trigger { + @SerializedName("length") + private Integer length = null; + + @SerializedName("location") + private Integer location = null; + + @SerializedName("triggerString") + private String triggerString = null; + + public Trigger length(Integer length) { + this.length = length; + return this; + } + + /** + * Get length + * @return length + **/ + @ApiModelProperty(value = "") + public Integer getLength() { + return length; + } + + public void setLength(Integer length) { + this.length = length; + } + + public Trigger location(Integer location) { + this.location = location; + return this; + } + + /** + * Get location + * @return location + **/ + @ApiModelProperty(value = "") + public Integer getLocation() { + return location; + } + + public void setLocation(Integer location) { + this.location = location; + } + + public Trigger triggerString(String triggerString) { + this.triggerString = triggerString; + return this; + } + + /** + * Get triggerString + * @return triggerString + **/ + @ApiModelProperty(value = "") + public String getTriggerString() { + return triggerString; + } + + public void setTriggerString(String triggerString) { + this.triggerString = triggerString; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Trigger trigger = (Trigger) o; + return Objects.equals(this.length, trigger.length) && + Objects.equals(this.location, trigger.location) && + Objects.equals(this.triggerString, trigger.triggerString); + } + + @Override + public int hashCode() { + return Objects.hash(length, location, triggerString); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Trigger {\n"); + + sb.append(" length: ").append(toIndentedString(length)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" triggerString: ").append(toIndentedString(triggerString)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/UserIssueSearchOptions.java b/src/main/java/com/fortify/ssc/restclient/model/UserIssueSearchOptions.java new file mode 100644 index 0000000..3529811 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/UserIssueSearchOptions.java @@ -0,0 +1,209 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * User specific options that can be used for customizing issue search result. + */ +@ApiModel(description = "User specific options that can be used for customizing issue search result.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class UserIssueSearchOptions { + @SerializedName("includeCommentsInHistory") + private Boolean includeCommentsInHistory = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("showHidden") + private Boolean showHidden = null; + + @SerializedName("showRemoved") + private Boolean showRemoved = null; + + @SerializedName("showShortFileNames") + private Boolean showShortFileNames = null; + + @SerializedName("showSuppressed") + private Boolean showSuppressed = null; + + public UserIssueSearchOptions includeCommentsInHistory(Boolean includeCommentsInHistory) { + this.includeCommentsInHistory = includeCommentsInHistory; + return this; + } + + /** + * If 'true', comments are included in issue audit history. Used only by flex UI. + * @return includeCommentsInHistory + **/ + @ApiModelProperty(example = "false", value = "If 'true', comments are included in issue audit history. Used only by flex UI.") + public Boolean isIncludeCommentsInHistory() { + return includeCommentsInHistory; + } + + public void setIncludeCommentsInHistory(Boolean includeCommentsInHistory) { + this.includeCommentsInHistory = includeCommentsInHistory; + } + + public UserIssueSearchOptions projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Application version ID the option values belong to. Value is empty for default options that can be applied to any project version user has access to if project version specific options are not defined. + * @return projectVersionId + **/ + @ApiModelProperty(value = "Application version ID the option values belong to. Value is empty for default options that can be applied to any project version user has access to if project version specific options are not defined.") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public UserIssueSearchOptions showHidden(Boolean showHidden) { + this.showHidden = showHidden; + return this; + } + + /** + * If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option. + * @return showHidden + **/ + @ApiModelProperty(example = "false", value = "If 'true', include hidden issues in search results. If 'false', exclude hidden issues from search results. If no options are set, use application version profile settings to get value of this option.") + public Boolean isShowHidden() { + return showHidden; + } + + public void setShowHidden(Boolean showHidden) { + this.showHidden = showHidden; + } + + public UserIssueSearchOptions showRemoved(Boolean showRemoved) { + this.showRemoved = showRemoved; + return this; + } + + /** + * If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option. + * @return showRemoved + **/ + @ApiModelProperty(example = "false", value = "If 'true', include removed issues in search results. If 'false', exclude removed issues from search results. If no options are set, use application version profile settings to get value of this option.") + public Boolean isShowRemoved() { + return showRemoved; + } + + public void setShowRemoved(Boolean showRemoved) { + this.showRemoved = showRemoved; + } + + public UserIssueSearchOptions showShortFileNames(Boolean showShortFileNames) { + this.showShortFileNames = showShortFileNames; + return this; + } + + /** + * If 'true', only short file names will be displayed in issues list. + * @return showShortFileNames + **/ + @ApiModelProperty(example = "false", value = "If 'true', only short file names will be displayed in issues list.") + public Boolean isShowShortFileNames() { + return showShortFileNames; + } + + public void setShowShortFileNames(Boolean showShortFileNames) { + this.showShortFileNames = showShortFileNames; + } + + public UserIssueSearchOptions showSuppressed(Boolean showSuppressed) { + this.showSuppressed = showSuppressed; + return this; + } + + /** + * If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option. + * @return showSuppressed + **/ + @ApiModelProperty(example = "false", value = "If 'true', include suppressed issues in search results. If 'false', exclude suppressed issues from search results. If no options are set, use application version profile settings to get value of this option.") + public Boolean isShowSuppressed() { + return showSuppressed; + } + + public void setShowSuppressed(Boolean showSuppressed) { + this.showSuppressed = showSuppressed; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserIssueSearchOptions userIssueSearchOptions = (UserIssueSearchOptions) o; + return Objects.equals(this.includeCommentsInHistory, userIssueSearchOptions.includeCommentsInHistory) && + Objects.equals(this.projectVersionId, userIssueSearchOptions.projectVersionId) && + Objects.equals(this.showHidden, userIssueSearchOptions.showHidden) && + Objects.equals(this.showRemoved, userIssueSearchOptions.showRemoved) && + Objects.equals(this.showShortFileNames, userIssueSearchOptions.showShortFileNames) && + Objects.equals(this.showSuppressed, userIssueSearchOptions.showSuppressed); + } + + @Override + public int hashCode() { + return Objects.hash(includeCommentsInHistory, projectVersionId, showHidden, showRemoved, showShortFileNames, showSuppressed); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserIssueSearchOptions {\n"); + + sb.append(" includeCommentsInHistory: ").append(toIndentedString(includeCommentsInHistory)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" showHidden: ").append(toIndentedString(showHidden)).append("\n"); + sb.append(" showRemoved: ").append(toIndentedString(showRemoved)).append("\n"); + sb.append(" showShortFileNames: ").append(toIndentedString(showShortFileNames)).append("\n"); + sb.append(" showSuppressed: ").append(toIndentedString(showSuppressed)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/UserPhoto.java b/src/main/java/com/fortify/ssc/restclient/model/UserPhoto.java new file mode 100644 index 0000000..3a3d218 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/UserPhoto.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * User photo object + */ +@ApiModel(description = "User photo object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class UserPhoto { + @SerializedName("photo") + private byte[] photo = null; + + @SerializedName("photoMimeType") + private String photoMimeType = null; + + public UserPhoto photo(byte[] photo) { + this.photo = photo; + return this; + } + + /** + * Photo in byte array + * @return photo + **/ + @ApiModelProperty(required = true, value = "Photo in byte array") + public byte[] getPhoto() { + return photo; + } + + public void setPhoto(byte[] photo) { + this.photo = photo; + } + + public UserPhoto photoMimeType(String photoMimeType) { + this.photoMimeType = photoMimeType; + return this; + } + + /** + * Mime type of user photo. Eg .bmp, .jpg etc + * @return photoMimeType + **/ + @ApiModelProperty(required = true, value = "Mime type of user photo. Eg .bmp, .jpg etc") + public String getPhotoMimeType() { + return photoMimeType; + } + + public void setPhotoMimeType(String photoMimeType) { + this.photoMimeType = photoMimeType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserPhoto userPhoto = (UserPhoto) o; + return Objects.equals(this.photo, userPhoto.photo) && + Objects.equals(this.photoMimeType, userPhoto.photoMimeType); + } + + @Override + public int hashCode() { + return Objects.hash(photo, photoMimeType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserPhoto {\n"); + + sb.append(" photo: ").append(toIndentedString(photo)).append("\n"); + sb.append(" photoMimeType: ").append(toIndentedString(photoMimeType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/UserPreferences.java b/src/main/java/com/fortify/ssc/restclient/model/UserPreferences.java new file mode 100644 index 0000000..dd5f22b --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/UserPreferences.java @@ -0,0 +1,278 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Object containing user preferences such as date/time format + */ +@ApiModel(description = "Object containing user preferences such as date/time format") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class UserPreferences { + @SerializedName("dateFormat") + private String dateFormat = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("emailAlerts") + private Boolean emailAlerts = null; + + @SerializedName("monitorAllRuntimeApps") + private Boolean monitorAllRuntimeApps = null; + + @SerializedName("projectVersionListMode") + private String projectVersionListMode = null; + + @SerializedName("receiveRuntimeAlerts") + private Boolean receiveRuntimeAlerts = null; + + @SerializedName("runtimeAlertDefinitionId") + private Long runtimeAlertDefinitionId = null; + + @SerializedName("timeFormat") + private String timeFormat = null; + + @SerializedName("username") + private String username = null; + + public UserPreferences dateFormat(String dateFormat) { + this.dateFormat = dateFormat; + return this; + } + + /** + * Preferred date format + * @return dateFormat + **/ + @ApiModelProperty(required = true, value = "Preferred date format") + public String getDateFormat() { + return dateFormat; + } + + public void setDateFormat(String dateFormat) { + this.dateFormat = dateFormat; + } + + public UserPreferences email(String email) { + this.email = email; + return this; + } + + /** + * User email + * @return email + **/ + @ApiModelProperty(required = true, value = "User email") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public UserPreferences emailAlerts(Boolean emailAlerts) { + this.emailAlerts = emailAlerts; + return this; + } + + /** + * Receive email alerts if set to true + * @return emailAlerts + **/ + @ApiModelProperty(example = "false", required = true, value = "Receive email alerts if set to true") + public Boolean isEmailAlerts() { + return emailAlerts; + } + + public void setEmailAlerts(Boolean emailAlerts) { + this.emailAlerts = emailAlerts; + } + + public UserPreferences monitorAllRuntimeApps(Boolean monitorAllRuntimeApps) { + this.monitorAllRuntimeApps = monitorAllRuntimeApps; + return this; + } + + /** + * Monitors all runtime applications if set to true + * @return monitorAllRuntimeApps + **/ + @ApiModelProperty(example = "false", required = true, value = "Monitors all runtime applications if set to true") + public Boolean isMonitorAllRuntimeApps() { + return monitorAllRuntimeApps; + } + + public void setMonitorAllRuntimeApps(Boolean monitorAllRuntimeApps) { + this.monitorAllRuntimeApps = monitorAllRuntimeApps; + } + + public UserPreferences projectVersionListMode(String projectVersionListMode) { + this.projectVersionListMode = projectVersionListMode; + return this; + } + + /** + * Enum for ProjectVersionListMode with values DEFAULT, CUSTOM, ALL + * @return projectVersionListMode + **/ + @ApiModelProperty(required = true, value = "Enum for ProjectVersionListMode with values DEFAULT, CUSTOM, ALL") + public String getProjectVersionListMode() { + return projectVersionListMode; + } + + public void setProjectVersionListMode(String projectVersionListMode) { + this.projectVersionListMode = projectVersionListMode; + } + + public UserPreferences receiveRuntimeAlerts(Boolean receiveRuntimeAlerts) { + this.receiveRuntimeAlerts = receiveRuntimeAlerts; + return this; + } + + /** + * Receive runtime alerts if set to true + * @return receiveRuntimeAlerts + **/ + @ApiModelProperty(example = "false", required = true, value = "Receive runtime alerts if set to true") + public Boolean isReceiveRuntimeAlerts() { + return receiveRuntimeAlerts; + } + + public void setReceiveRuntimeAlerts(Boolean receiveRuntimeAlerts) { + this.receiveRuntimeAlerts = receiveRuntimeAlerts; + } + + public UserPreferences runtimeAlertDefinitionId(Long runtimeAlertDefinitionId) { + this.runtimeAlertDefinitionId = runtimeAlertDefinitionId; + return this; + } + + /** + * Runtime alert definition identifier + * @return runtimeAlertDefinitionId + **/ + @ApiModelProperty(required = true, value = "Runtime alert definition identifier") + public Long getRuntimeAlertDefinitionId() { + return runtimeAlertDefinitionId; + } + + public void setRuntimeAlertDefinitionId(Long runtimeAlertDefinitionId) { + this.runtimeAlertDefinitionId = runtimeAlertDefinitionId; + } + + public UserPreferences timeFormat(String timeFormat) { + this.timeFormat = timeFormat; + return this; + } + + /** + * Preferred time format + * @return timeFormat + **/ + @ApiModelProperty(required = true, value = "Preferred time format") + public String getTimeFormat() { + return timeFormat; + } + + public void setTimeFormat(String timeFormat) { + this.timeFormat = timeFormat; + } + + public UserPreferences username(String username) { + this.username = username; + return this; + } + + /** + * User name + * @return username + **/ + @ApiModelProperty(required = true, value = "User name") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserPreferences userPreferences = (UserPreferences) o; + return Objects.equals(this.dateFormat, userPreferences.dateFormat) && + Objects.equals(this.email, userPreferences.email) && + Objects.equals(this.emailAlerts, userPreferences.emailAlerts) && + Objects.equals(this.monitorAllRuntimeApps, userPreferences.monitorAllRuntimeApps) && + Objects.equals(this.projectVersionListMode, userPreferences.projectVersionListMode) && + Objects.equals(this.receiveRuntimeAlerts, userPreferences.receiveRuntimeAlerts) && + Objects.equals(this.runtimeAlertDefinitionId, userPreferences.runtimeAlertDefinitionId) && + Objects.equals(this.timeFormat, userPreferences.timeFormat) && + Objects.equals(this.username, userPreferences.username); + } + + @Override + public int hashCode() { + return Objects.hash(dateFormat, email, emailAlerts, monitorAllRuntimeApps, projectVersionListMode, receiveRuntimeAlerts, runtimeAlertDefinitionId, timeFormat, username); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserPreferences {\n"); + + sb.append(" dateFormat: ").append(toIndentedString(dateFormat)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" emailAlerts: ").append(toIndentedString(emailAlerts)).append("\n"); + sb.append(" monitorAllRuntimeApps: ").append(toIndentedString(monitorAllRuntimeApps)).append("\n"); + sb.append(" projectVersionListMode: ").append(toIndentedString(projectVersionListMode)).append("\n"); + sb.append(" receiveRuntimeAlerts: ").append(toIndentedString(receiveRuntimeAlerts)).append("\n"); + sb.append(" runtimeAlertDefinitionId: ").append(toIndentedString(runtimeAlertDefinitionId)).append("\n"); + sb.append(" timeFormat: ").append(toIndentedString(timeFormat)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/UserSessionInformation.java b/src/main/java/com/fortify/ssc/restclient/model/UserSessionInformation.java new file mode 100644 index 0000000..5c67c4e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/UserSessionInformation.java @@ -0,0 +1,531 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.fortify.ssc.restclient.model.CloudScanConfig; +import com.fortify.ssc.restclient.model.LicenseCapability; +import com.fortify.ssc.restclient.model.Role; +import com.fortify.ssc.restclient.model.UserPhoto; +import com.fortify.ssc.restclient.model.UserPreferences; +import com.fortify.ssc.restclient.model.WIEConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Object containing user session information + */ +@ApiModel(description = "Object containing user session information") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class UserSessionInformation { + @SerializedName("applicationContextPath") + private String applicationContextPath = null; + + @SerializedName("cloudScanConfig") + private CloudScanConfig cloudScanConfig = null; + + @SerializedName("collabModuleEnabled") + private Boolean collabModuleEnabled = null; + + @SerializedName("displayUserDetails") + private Boolean displayUserDetails = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("fortifyUserType") + private String fortifyUserType = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("licenseCapabilities") + private List licenseCapabilities = new ArrayList(); + + @SerializedName("onDemandMode") + private Boolean onDemandMode = null; + + @SerializedName("permissions") + private List permissions = new ArrayList(); + + @SerializedName("preferences") + private UserPreferences preferences = null; + + @SerializedName("roles") + private List roles = new ArrayList(); + + @SerializedName("sessionId") + private String sessionId = null; + + @SerializedName("userPhoto") + private UserPhoto userPhoto = null; + + @SerializedName("userType") + private Integer userType = null; + + @SerializedName("username") + private String username = null; + + @SerializedName("webappVersion") + private String webappVersion = null; + + @SerializedName("wieConfig") + private WIEConfiguration wieConfig = null; + + public UserSessionInformation applicationContextPath(String applicationContextPath) { + this.applicationContextPath = applicationContextPath; + return this; + } + + /** + * Application context path + * @return applicationContextPath + **/ + @ApiModelProperty(required = true, value = "Application context path") + public String getApplicationContextPath() { + return applicationContextPath; + } + + public void setApplicationContextPath(String applicationContextPath) { + this.applicationContextPath = applicationContextPath; + } + + public UserSessionInformation cloudScanConfig(CloudScanConfig cloudScanConfig) { + this.cloudScanConfig = cloudScanConfig; + return this; + } + + /** + * Cloud scan configuration + * @return cloudScanConfig + **/ + @ApiModelProperty(required = true, value = "Cloud scan configuration") + public CloudScanConfig getCloudScanConfig() { + return cloudScanConfig; + } + + public void setCloudScanConfig(CloudScanConfig cloudScanConfig) { + this.cloudScanConfig = cloudScanConfig; + } + + public UserSessionInformation collabModuleEnabled(Boolean collabModuleEnabled) { + this.collabModuleEnabled = collabModuleEnabled; + return this; + } + + /** + * Set to true if collaboration module is enabled + * @return collabModuleEnabled + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if collaboration module is enabled") + public Boolean isCollabModuleEnabled() { + return collabModuleEnabled; + } + + public void setCollabModuleEnabled(Boolean collabModuleEnabled) { + this.collabModuleEnabled = collabModuleEnabled; + } + + public UserSessionInformation displayUserDetails(Boolean displayUserDetails) { + this.displayUserDetails = displayUserDetails; + return this; + } + + /** + * Display user details if set to true + * @return displayUserDetails + **/ + @ApiModelProperty(example = "false", required = true, value = "Display user details if set to true") + public Boolean isDisplayUserDetails() { + return displayUserDetails; + } + + public void setDisplayUserDetails(Boolean displayUserDetails) { + this.displayUserDetails = displayUserDetails; + } + + public UserSessionInformation email(String email) { + this.email = email; + return this; + } + + /** + * User email + * @return email + **/ + @ApiModelProperty(required = true, value = "User email") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public UserSessionInformation firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * User first name + * @return firstName + **/ + @ApiModelProperty(required = true, value = "User first name") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public UserSessionInformation fortifyUserType(String fortifyUserType) { + this.fortifyUserType = fortifyUserType; + return this; + } + + /** + * Fortify user type eg. LOCAL + * @return fortifyUserType + **/ + @ApiModelProperty(required = true, value = "Fortify user type eg. LOCAL") + public String getFortifyUserType() { + return fortifyUserType; + } + + public void setFortifyUserType(String fortifyUserType) { + this.fortifyUserType = fortifyUserType; + } + + public UserSessionInformation lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * User last name + * @return lastName + **/ + @ApiModelProperty(required = true, value = "User last name") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public UserSessionInformation licenseCapabilities(List licenseCapabilities) { + this.licenseCapabilities = licenseCapabilities; + return this; + } + + public UserSessionInformation addLicenseCapabilitiesItem(LicenseCapability licenseCapabilitiesItem) { + this.licenseCapabilities.add(licenseCapabilitiesItem); + return this; + } + + /** + * List of license capabilities + * @return licenseCapabilities + **/ + @ApiModelProperty(required = true, value = "List of license capabilities") + public List getLicenseCapabilities() { + return licenseCapabilities; + } + + public void setLicenseCapabilities(List licenseCapabilities) { + this.licenseCapabilities = licenseCapabilities; + } + + public UserSessionInformation onDemandMode(Boolean onDemandMode) { + this.onDemandMode = onDemandMode; + return this; + } + + /** + * Set to true if on demand mode is enabled + * @return onDemandMode + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if on demand mode is enabled") + public Boolean isOnDemandMode() { + return onDemandMode; + } + + public void setOnDemandMode(Boolean onDemandMode) { + this.onDemandMode = onDemandMode; + } + + public UserSessionInformation permissions(List permissions) { + this.permissions = permissions; + return this; + } + + public UserSessionInformation addPermissionsItem(String permissionsItem) { + this.permissions.add(permissionsItem); + return this; + } + + /** + * User permissions + * @return permissions + **/ + @ApiModelProperty(required = true, value = "User permissions") + public List getPermissions() { + return permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + } + + public UserSessionInformation preferences(UserPreferences preferences) { + this.preferences = preferences; + return this; + } + + /** + * User preferences + * @return preferences + **/ + @ApiModelProperty(required = true, value = "User preferences") + public UserPreferences getPreferences() { + return preferences; + } + + public void setPreferences(UserPreferences preferences) { + this.preferences = preferences; + } + + public UserSessionInformation roles(List roles) { + this.roles = roles; + return this; + } + + public UserSessionInformation addRolesItem(Role rolesItem) { + this.roles.add(rolesItem); + return this; + } + + /** + * User roles + * @return roles + **/ + @ApiModelProperty(required = true, value = "User roles") + public List getRoles() { + return roles; + } + + public void setRoles(List roles) { + this.roles = roles; + } + + public UserSessionInformation sessionId(String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * User session id + * @return sessionId + **/ + @ApiModelProperty(required = true, value = "User session id") + public String getSessionId() { + return sessionId; + } + + public void setSessionId(String sessionId) { + this.sessionId = sessionId; + } + + public UserSessionInformation userPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + return this; + } + + /** + * User Photo + * @return userPhoto + **/ + @ApiModelProperty(required = true, value = "User Photo") + public UserPhoto getUserPhoto() { + return userPhoto; + } + + public void setUserPhoto(UserPhoto userPhoto) { + this.userPhoto = userPhoto; + } + + public UserSessionInformation userType(Integer userType) { + this.userType = userType; + return this; + } + + /** + * User Type integer eg. 0 for Local + * @return userType + **/ + @ApiModelProperty(required = true, value = "User Type integer eg. 0 for Local") + public Integer getUserType() { + return userType; + } + + public void setUserType(Integer userType) { + this.userType = userType; + } + + public UserSessionInformation username(String username) { + this.username = username; + return this; + } + + /** + * User name + * @return username + **/ + @ApiModelProperty(required = true, value = "User name") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public UserSessionInformation webappVersion(String webappVersion) { + this.webappVersion = webappVersion; + return this; + } + + /** + * Web application version + * @return webappVersion + **/ + @ApiModelProperty(required = true, value = "Web application version") + public String getWebappVersion() { + return webappVersion; + } + + public void setWebappVersion(String webappVersion) { + this.webappVersion = webappVersion; + } + + public UserSessionInformation wieConfig(WIEConfiguration wieConfig) { + this.wieConfig = wieConfig; + return this; + } + + /** + * WebInspect enterprise configuration + * @return wieConfig + **/ + @ApiModelProperty(required = true, value = "WebInspect enterprise configuration") + public WIEConfiguration getWieConfig() { + return wieConfig; + } + + public void setWieConfig(WIEConfiguration wieConfig) { + this.wieConfig = wieConfig; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserSessionInformation userSessionInformation = (UserSessionInformation) o; + return Objects.equals(this.applicationContextPath, userSessionInformation.applicationContextPath) && + Objects.equals(this.cloudScanConfig, userSessionInformation.cloudScanConfig) && + Objects.equals(this.collabModuleEnabled, userSessionInformation.collabModuleEnabled) && + Objects.equals(this.displayUserDetails, userSessionInformation.displayUserDetails) && + Objects.equals(this.email, userSessionInformation.email) && + Objects.equals(this.firstName, userSessionInformation.firstName) && + Objects.equals(this.fortifyUserType, userSessionInformation.fortifyUserType) && + Objects.equals(this.lastName, userSessionInformation.lastName) && + Objects.equals(this.licenseCapabilities, userSessionInformation.licenseCapabilities) && + Objects.equals(this.onDemandMode, userSessionInformation.onDemandMode) && + Objects.equals(this.permissions, userSessionInformation.permissions) && + Objects.equals(this.preferences, userSessionInformation.preferences) && + Objects.equals(this.roles, userSessionInformation.roles) && + Objects.equals(this.sessionId, userSessionInformation.sessionId) && + Objects.equals(this.userPhoto, userSessionInformation.userPhoto) && + Objects.equals(this.userType, userSessionInformation.userType) && + Objects.equals(this.username, userSessionInformation.username) && + Objects.equals(this.webappVersion, userSessionInformation.webappVersion) && + Objects.equals(this.wieConfig, userSessionInformation.wieConfig); + } + + @Override + public int hashCode() { + return Objects.hash(applicationContextPath, cloudScanConfig, collabModuleEnabled, displayUserDetails, email, firstName, fortifyUserType, lastName, licenseCapabilities, onDemandMode, permissions, preferences, roles, sessionId, userPhoto, userType, username, webappVersion, wieConfig); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserSessionInformation {\n"); + + sb.append(" applicationContextPath: ").append(toIndentedString(applicationContextPath)).append("\n"); + sb.append(" cloudScanConfig: ").append(toIndentedString(cloudScanConfig)).append("\n"); + sb.append(" collabModuleEnabled: ").append(toIndentedString(collabModuleEnabled)).append("\n"); + sb.append(" displayUserDetails: ").append(toIndentedString(displayUserDetails)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" fortifyUserType: ").append(toIndentedString(fortifyUserType)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" licenseCapabilities: ").append(toIndentedString(licenseCapabilities)).append("\n"); + sb.append(" onDemandMode: ").append(toIndentedString(onDemandMode)).append("\n"); + sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" preferences: ").append(toIndentedString(preferences)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); + sb.append(" userPhoto: ").append(toIndentedString(userPhoto)).append("\n"); + sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" webappVersion: ").append(toIndentedString(webappVersion)).append("\n"); + sb.append(" wieConfig: ").append(toIndentedString(wieConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/UserSessionState.java b/src/main/java/com/fortify/ssc/restclient/model/UserSessionState.java new file mode 100644 index 0000000..c07b285 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/UserSessionState.java @@ -0,0 +1,200 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * User session state is used to persist UI state + */ +@ApiModel(description = "User session state is used to persist UI state") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class UserSessionState { + @SerializedName("category") + private String category = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("projectVersionId") + private Long projectVersionId = null; + + @SerializedName("username") + private String username = null; + + @SerializedName("value") + private String value = null; + + public UserSessionState category(String category) { + this.category = category; + return this; + } + + /** + * Get category + * @return category + **/ + @ApiModelProperty(required = true, value = "") + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public UserSessionState name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UserSessionState projectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + return this; + } + + /** + * Get projectVersionId + * @return projectVersionId + **/ + @ApiModelProperty(value = "") + public Long getProjectVersionId() { + return projectVersionId; + } + + public void setProjectVersionId(Long projectVersionId) { + this.projectVersionId = projectVersionId; + } + + public UserSessionState username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + **/ + @ApiModelProperty(required = true, value = "") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public UserSessionState value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @ApiModelProperty(value = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserSessionState userSessionState = (UserSessionState) o; + return Objects.equals(this.category, userSessionState.category) && + Objects.equals(this.id, userSessionState.id) && + Objects.equals(this.name, userSessionState.name) && + Objects.equals(this.projectVersionId, userSessionState.projectVersionId) && + Objects.equals(this.username, userSessionState.username) && + Objects.equals(this.value, userSessionState.value); + } + + @Override + public int hashCode() { + return Objects.hash(category, id, name, projectVersionId, username, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserSessionState {\n"); + + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectVersionId: ").append(toIndentedString(projectVersionId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ValidationRequest.java b/src/main/java/com/fortify/ssc/restclient/model/ValidationRequest.java new file mode 100644 index 0000000..b283ac7 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ValidationRequest.java @@ -0,0 +1,94 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Validation Request DTO object + */ +@ApiModel(description = "Validation Request DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ValidationRequest { + @SerializedName("stringToValidate") + private String stringToValidate = null; + + public ValidationRequest stringToValidate(String stringToValidate) { + this.stringToValidate = stringToValidate; + return this; + } + + /** + * String to validate + * @return stringToValidate + **/ + @ApiModelProperty(required = true, value = "String to validate") + public String getStringToValidate() { + return stringToValidate; + } + + public void setStringToValidate(String stringToValidate) { + this.stringToValidate = stringToValidate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValidationRequest validationRequest = (ValidationRequest) o; + return Objects.equals(this.stringToValidate, validationRequest.stringToValidate); + } + + @Override + public int hashCode() { + return Objects.hash(stringToValidate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidationRequest {\n"); + + sb.append(" stringToValidate: ").append(toIndentedString(stringToValidate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/ValidationStatus.java b/src/main/java/com/fortify/ssc/restclient/model/ValidationStatus.java new file mode 100644 index 0000000..bcd16ac --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/ValidationStatus.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Validation Status DTO object + */ +@ApiModel(description = "Validation Status DTO object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class ValidationStatus { + @SerializedName("msg") + private String msg = null; + + @SerializedName("valid") + private Boolean valid = null; + + public ValidationStatus msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Validation status message + * @return msg + **/ + @ApiModelProperty(required = true, value = "Validation status message") + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public ValidationStatus valid(Boolean valid) { + this.valid = valid; + return this; + } + + /** + * Indicates whether validation was successful + * @return valid + **/ + @ApiModelProperty(example = "false", required = true, value = "Indicates whether validation was successful") + public Boolean isValid() { + return valid; + } + + public void setValid(Boolean valid) { + this.valid = valid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValidationStatus validationStatus = (ValidationStatus) o; + return Objects.equals(this.msg, validationStatus.msg) && + Objects.equals(this.valid, validationStatus.valid); + } + + @Override + public int hashCode() { + return Objects.hash(msg, valid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidationStatus {\n"); + + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/Variable.java b/src/main/java/com/fortify/ssc/restclient/model/Variable.java new file mode 100644 index 0000000..2682d00 --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/Variable.java @@ -0,0 +1,432 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Variables count issues, conditions, and other categories of numeric data. + */ +@ApiModel(description = "Variables count issues, conditions, and other categories of numeric data.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class Variable { + @SerializedName("attributeForOperation") + private String attributeForOperation = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("folderName") + private String folderName = null; + + @SerializedName("guid") + private String guid = null; + + @SerializedName("id") + private Long id = null; + + @SerializedName("inUse") + private Boolean inUse = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("objectVersion") + private Integer objectVersion = null; + + /** + * Gets or Sets operation + */ + @JsonAdapter(OperationEnum.Adapter.class) + public enum OperationEnum { + COUNT("COUNT"), + + SUM("SUM"); + + private String value; + + OperationEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static OperationEnum fromValue(String text) { + for (OperationEnum b : OperationEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final OperationEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public OperationEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return OperationEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("operation") + private OperationEnum operation = null; + + @SerializedName("publishVersion") + private Integer publishVersion = null; + + @SerializedName("searchString") + private String searchString = null; + + /** + * Gets or Sets variableType + */ + @JsonAdapter(VariableTypeEnum.Adapter.class) + public enum VariableTypeEnum { + SYSTEM_DEFINED("SYSTEM_DEFINED"), + + USER_DEFINED("USER_DEFINED"); + + private String value; + + VariableTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VariableTypeEnum fromValue(String text) { + for (VariableTypeEnum b : VariableTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VariableTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VariableTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VariableTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("variableType") + private VariableTypeEnum variableType = null; + + public Variable attributeForOperation(String attributeForOperation) { + this.attributeForOperation = attributeForOperation; + return this; + } + + /** + * Get attributeForOperation + * @return attributeForOperation + **/ + @ApiModelProperty(value = "") + public String getAttributeForOperation() { + return attributeForOperation; + } + + public void setAttributeForOperation(String attributeForOperation) { + this.attributeForOperation = attributeForOperation; + } + + public Variable description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Variable folderName(String folderName) { + this.folderName = folderName; + return this; + } + + /** + * Select a folder from the default filter set to associate with the variable. + * @return folderName + **/ + @ApiModelProperty(required = true, value = "Select a folder from the default filter set to associate with the variable.") + public String getFolderName() { + return folderName; + } + + public void setFolderName(String folderName) { + this.folderName = folderName; + } + + public Variable guid(String guid) { + this.guid = guid; + return this; + } + + /** + * Get guid + * @return guid + **/ + @ApiModelProperty(value = "") + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public Long getId() { + return id; + } + + public Variable inUse(Boolean inUse) { + this.inUse = inUse; + return this; + } + + /** + * Get inUse + * @return inUse + **/ + @ApiModelProperty(value = "") + public Boolean isInUse() { + return inUse; + } + + public void setInUse(Boolean inUse) { + this.inUse = inUse; + } + + public Variable name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(required = true, value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Variable objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * Get objectVersion + * @return objectVersion + **/ + @ApiModelProperty(value = "") + public Integer getObjectVersion() { + return objectVersion; + } + + public void setObjectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + } + + public Variable operation(OperationEnum operation) { + this.operation = operation; + return this; + } + + /** + * Get operation + * @return operation + **/ + @ApiModelProperty(value = "") + public OperationEnum getOperation() { + return operation; + } + + public void setOperation(OperationEnum operation) { + this.operation = operation; + } + + public Variable publishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + return this; + } + + /** + * Get publishVersion + * @return publishVersion + **/ + @ApiModelProperty(value = "") + public Integer getPublishVersion() { + return publishVersion; + } + + public void setPublishVersion(Integer publishVersion) { + this.publishVersion = publishVersion; + } + + public Variable searchString(String searchString) { + this.searchString = searchString; + return this; + } + + /** + * Get searchString + * @return searchString + **/ + @ApiModelProperty(example = "[Fortify Priority Order]:critical audited:false", required = true, value = "") + public String getSearchString() { + return searchString; + } + + public void setSearchString(String searchString) { + this.searchString = searchString; + } + + public Variable variableType(VariableTypeEnum variableType) { + this.variableType = variableType; + return this; + } + + /** + * Get variableType + * @return variableType + **/ + @ApiModelProperty(value = "") + public VariableTypeEnum getVariableType() { + return variableType; + } + + public void setVariableType(VariableTypeEnum variableType) { + this.variableType = variableType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Variable variable = (Variable) o; + return Objects.equals(this.attributeForOperation, variable.attributeForOperation) && + Objects.equals(this.description, variable.description) && + Objects.equals(this.folderName, variable.folderName) && + Objects.equals(this.guid, variable.guid) && + Objects.equals(this.id, variable.id) && + Objects.equals(this.inUse, variable.inUse) && + Objects.equals(this.name, variable.name) && + Objects.equals(this.objectVersion, variable.objectVersion) && + Objects.equals(this.operation, variable.operation) && + Objects.equals(this.publishVersion, variable.publishVersion) && + Objects.equals(this.searchString, variable.searchString) && + Objects.equals(this.variableType, variable.variableType); + } + + @Override + public int hashCode() { + return Objects.hash(attributeForOperation, description, folderName, guid, id, inUse, name, objectVersion, operation, publishVersion, searchString, variableType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Variable {\n"); + + sb.append(" attributeForOperation: ").append(toIndentedString(attributeForOperation)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" folderName: ").append(toIndentedString(folderName)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" objectVersion: ").append(toIndentedString(objectVersion)).append("\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append(" publishVersion: ").append(toIndentedString(publishVersion)).append("\n"); + sb.append(" searchString: ").append(toIndentedString(searchString)).append("\n"); + sb.append(" variableType: ").append(toIndentedString(variableType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/VariableHistory.java b/src/main/java/com/fortify/ssc/restclient/model/VariableHistory.java new file mode 100644 index 0000000..f24175e --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/VariableHistory.java @@ -0,0 +1,155 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * An instance of a variable in an Application Version's snapshot. + */ +@ApiModel(description = "An instance of a variable in an Application Version's snapshot.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class VariableHistory { + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("timestamp") + private OffsetDateTime timestamp = null; + + @SerializedName("value") + private Integer value = null; + + /** + * Variable id + * @return id + **/ + @ApiModelProperty(value = "Variable id") + public String getId() { + return id; + } + + public VariableHistory name(String name) { + this.name = name; + return this; + } + + /** + * Variable Name + * @return name + **/ + @ApiModelProperty(required = true, value = "Variable Name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VariableHistory timestamp(OffsetDateTime timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * The Date the variable value was taken + * @return timestamp + **/ + @ApiModelProperty(required = true, value = "The Date the variable value was taken") + public OffsetDateTime getTimestamp() { + return timestamp; + } + + public void setTimestamp(OffsetDateTime timestamp) { + this.timestamp = timestamp; + } + + public VariableHistory value(Integer value) { + this.value = value; + return this; + } + + /** + * Variable value + * @return value + **/ + @ApiModelProperty(required = true, value = "Variable value") + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VariableHistory variableHistory = (VariableHistory) o; + return Objects.equals(this.id, variableHistory.id) && + Objects.equals(this.name, variableHistory.name) && + Objects.equals(this.timestamp, variableHistory.timestamp) && + Objects.equals(this.value, variableHistory.value); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, timestamp, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VariableHistory {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/fortify/ssc/restclient/model/WIEConfiguration.java b/src/main/java/com/fortify/ssc/restclient/model/WIEConfiguration.java new file mode 100644 index 0000000..0807e4f --- /dev/null +++ b/src/main/java/com/fortify/ssc/restclient/model/WIEConfiguration.java @@ -0,0 +1,117 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebInspect enterprise configuration object + */ +@ApiModel(description = "WebInspect enterprise configuration object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00") +public class WIEConfiguration { + @SerializedName("wieInstanceUrl") + private String wieInstanceUrl = null; + + @SerializedName("wieRegistered") + private Boolean wieRegistered = null; + + public WIEConfiguration wieInstanceUrl(String wieInstanceUrl) { + this.wieInstanceUrl = wieInstanceUrl; + return this; + } + + /** + * WebInspect Enterprise url + * @return wieInstanceUrl + **/ + @ApiModelProperty(required = true, value = "WebInspect Enterprise url") + public String getWieInstanceUrl() { + return wieInstanceUrl; + } + + public void setWieInstanceUrl(String wieInstanceUrl) { + this.wieInstanceUrl = wieInstanceUrl; + } + + public WIEConfiguration wieRegistered(Boolean wieRegistered) { + this.wieRegistered = wieRegistered; + return this; + } + + /** + * Set to true if WebInspect Enterprise is registered + * @return wieRegistered + **/ + @ApiModelProperty(example = "false", required = true, value = "Set to true if WebInspect Enterprise is registered") + public Boolean isWieRegistered() { + return wieRegistered; + } + + public void setWieRegistered(Boolean wieRegistered) { + this.wieRegistered = wieRegistered; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WIEConfiguration wiEConfiguration = (WIEConfiguration) o; + return Objects.equals(this.wieInstanceUrl, wiEConfiguration.wieInstanceUrl) && + Objects.equals(this.wieRegistered, wiEConfiguration.wieRegistered); + } + + @Override + public int hashCode() { + return Objects.hash(wieInstanceUrl, wieRegistered); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WIEConfiguration {\n"); + + sb.append(" wieInstanceUrl: ").append(toIndentedString(wieInstanceUrl)).append("\n"); + sb.append(" wieRegistered: ").append(toIndentedString(wieRegistered)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/test/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..ca2e4bb --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AaTrainingStatusOfProjectVersionControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAATrainingStatus; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AaTrainingStatusOfProjectVersionControllerApi + */ +@Ignore +public class AaTrainingStatusOfProjectVersionControllerApiTest { + + private final AaTrainingStatusOfProjectVersionControllerApi api = new AaTrainingStatusOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAaTrainingStatusOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListAATrainingStatus response = api.listAaTrainingStatusOfProjectVersion(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApiTest.java new file mode 100644 index 0000000..88b63cd --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ActivityFeedControllerApiTest.java @@ -0,0 +1,54 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListActivityFeed; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ActivityFeedControllerApi + */ +@Ignore +public class ActivityFeedControllerApiTest { + + private final ActivityFeedControllerApi api = new ActivityFeedControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listActivityFeedTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListActivityFeed response = api.listActivityFeed(fields, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApiTest.java new file mode 100644 index 0000000..77e86f6 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AlertDefinitionControllerApiTest.java @@ -0,0 +1,141 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.AlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResultListAlertDefinitionDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AlertDefinitionControllerApi + */ +@Ignore +public class AlertDefinitionControllerApiTest { + + private final AlertDefinitionControllerApi api = new AlertDefinitionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAlertDefinitionTest() throws ApiException { + AlertDefinitionDto resource = null; + ApiResultAlertDefinitionDto response = api.createAlertDefinition(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAlertDefinitionTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteAlertDefinition(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAlertDefinitionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListAlertDefinitionDto response = api.listAlertDefinition(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteAlertDefinitionTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteAlertDefinition(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAlertDefinitionTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultAlertDefinitionDto response = api.readAlertDefinition(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateAlertDefinitionTest() throws ApiException { + Long id = null; + AlertDefinitionDto resource = null; + ApiResultAlertDefinitionDto response = api.updateAlertDefinition(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApiTest.java new file mode 100644 index 0000000..fe2cafb --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AlertHistoryControllerApiTest.java @@ -0,0 +1,91 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.AlertSetStatusRequest; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListAlertHistoryEntry; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AlertHistoryControllerApi + */ +@Ignore +public class AlertHistoryControllerApiTest { + + private final AlertHistoryControllerApi api = new AlertHistoryControllerApi(); + + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionAlertHistoryTest() throws ApiException { + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doActionAlertHistory(collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAlertHistoryTest() throws ApiException { + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListAlertHistoryEntry response = api.listAlertHistory(start, limit, q, orderby); + + // TODO: test validations + } + + /** + * setStatusFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setStatusForAlertHistoryTest() throws ApiException { + AlertSetStatusRequest resource = null; + ApiResultVoid response = api.setStatusForAlertHistory(resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApiTest.java new file mode 100644 index 0000000..f1d5d41 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AlertableEventTypeControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAlertableEventType; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AlertableEventTypeControllerApi + */ +@Ignore +public class AlertableEventTypeControllerApiTest { + + private final AlertableEventTypeControllerApi api = new AlertableEventTypeControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAlertableEventTypeTest() throws ApiException { + String fields = null; + ApiResultListAlertableEventType response = api.listAlertableEventType(fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApiTest.java new file mode 100644 index 0000000..b3be096 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ApplicationStateControllerApiTest.java @@ -0,0 +1,68 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApplicationState; +import com.fortify.ssc.restclient.model.ApplicationState; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ApplicationStateControllerApi + */ +@Ignore +public class ApplicationStateControllerApiTest { + + private final ApplicationStateControllerApi api = new ApplicationStateControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getApplicationStateTest() throws ApiException { + ApiResultApplicationState response = api.getApplicationState(); + + // TODO: test validations + } + + /** + * put + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void putApplicationStateTest() throws ApiException { + ApplicationState applicationState = null; + ApiResultApplicationState response = api.putApplicationState(applicationState); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ArtifactControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ArtifactControllerApiTest.java new file mode 100644 index 0000000..a1fe36d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ArtifactControllerApiTest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultArtifact; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ArtifactApproveRequest; +import com.fortify.ssc.restclient.model.ArtifactPurgeRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ArtifactControllerApi + */ +@Ignore +public class ArtifactControllerApiTest { + + private final ArtifactControllerApi api = new ArtifactControllerApi(); + + + /** + * approve + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void approveArtifactTest() throws ApiException { + ArtifactApproveRequest resource = null; + ApiResultVoid response = api.approveArtifact(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteArtifactTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteArtifact(id); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionArtifactTest() throws ApiException { + Long id = null; + ApiResourceAction resourceAction = null; + ApiResultApiActionResponse response = api.doActionArtifact(id, resourceAction); + + // TODO: test validations + } + + /** + * purge + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void purgeArtifactTest() throws ApiException { + ArtifactPurgeRequest resource = null; + ApiResultVoid response = api.purgeArtifact(resource); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readArtifactTest() throws ApiException { + Long id = null; + String fields = null; + String embed = null; + ApiResultArtifact response = api.readArtifact(id, fields, embed); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..97fa509 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ArtifactOfProjectVersionControllerApiTest.java @@ -0,0 +1,77 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultArtifact; +import com.fortify.ssc.restclient.model.ApiResultListArtifact; +import java.io.File; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ArtifactOfProjectVersionControllerApi + */ +@Ignore +public class ArtifactOfProjectVersionControllerApiTest { + + private final ArtifactOfProjectVersionControllerApi api = new ArtifactOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listArtifactOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String embed = null; + ApiResultListArtifact response = api.listArtifactOfProjectVersion(parentId, fields, start, limit, q, embed); + + // TODO: test validations + } + + /** + * upload + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadArtifactOfProjectVersionTest() throws ApiException { + Long parentId = null; + File file = null; + String engineType = null; + ApiResultArtifact response = api.uploadArtifactOfProjectVersion(parentId, file, engineType); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApiTest.java new file mode 100644 index 0000000..f3cb8a2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AttributeDefinitionControllerApiTest.java @@ -0,0 +1,141 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttributeDefinition; +import com.fortify.ssc.restclient.model.ApiResultListAttributeDefinition; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.AttributeDefinition; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AttributeDefinitionControllerApi + */ +@Ignore +public class AttributeDefinitionControllerApiTest { + + private final AttributeDefinitionControllerApi api = new AttributeDefinitionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAttributeDefinitionTest() throws ApiException { + AttributeDefinition resource = null; + ApiResultAttributeDefinition response = api.createAttributeDefinition(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAttributeDefinitionTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteAttributeDefinition(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAttributeDefinitionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListAttributeDefinition response = api.listAttributeDefinition(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteAttributeDefinitionTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteAttributeDefinition(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAttributeDefinitionTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultAttributeDefinition response = api.readAttributeDefinition(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateAttributeDefinitionTest() throws ApiException { + Long id = null; + AttributeDefinition resource = null; + ApiResultAttributeDefinition response = api.updateAttributeDefinition(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApiTest.java new file mode 100644 index 0000000..03950b2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectControllerApiTest.java @@ -0,0 +1,109 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttribute; +import com.fortify.ssc.restclient.model.ApiResultListAttribute; +import com.fortify.ssc.restclient.model.Attribute; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AttributeOfProjectControllerApi + */ +@Ignore +public class AttributeOfProjectControllerApiTest { + + private final AttributeOfProjectControllerApi api = new AttributeOfProjectControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAttributeOfProjectTest() throws ApiException { + Long parentId = null; + Attribute data = null; + ApiResultAttribute response = api.createAttributeOfProject(parentId, data); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAttributeOfProjectTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListAttribute response = api.listAttributeOfProject(parentId, fields, start, limit); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAttributeOfProjectTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultAttribute response = api.readAttributeOfProject(parentId, id, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionAttributeOfProjectTest() throws ApiException { + Long parentId = null; + List resources = null; + ApiResultListAttribute response = api.updateCollectionAttributeOfProject(parentId, resources); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..9f1b7c2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AttributeOfProjectVersionControllerApiTest.java @@ -0,0 +1,107 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAttribute; +import com.fortify.ssc.restclient.model.ApiResultListAttribute; +import com.fortify.ssc.restclient.model.Attribute; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AttributeOfProjectVersionControllerApi + */ +@Ignore +public class AttributeOfProjectVersionControllerApiTest { + + private final AttributeOfProjectVersionControllerApi api = new AttributeOfProjectVersionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAttributeOfProjectVersionTest() throws ApiException { + Long parentId = null; + Attribute resource = null; + ApiResultAttribute response = api.createAttributeOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAttributeOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListAttribute response = api.listAttributeOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAttributeOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultAttribute response = api.readAttributeOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionAttributeOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListAttribute response = api.updateCollectionAttributeOfProjectVersion(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..af932dc --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuditAssistantStatusOfProjectVersionControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAuditAssistantStatus; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuditAssistantStatusOfProjectVersionControllerApi + */ +@Ignore +public class AuditAssistantStatusOfProjectVersionControllerApiTest { + + private final AuditAssistantStatusOfProjectVersionControllerApi api = new AuditAssistantStatusOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuditAssistantStatusOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListAuditAssistantStatus response = api.listAuditAssistantStatusOfProjectVersion(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApiTest.java new file mode 100644 index 0000000..a037c93 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuditHistoryOfIssueControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditHistoryDto; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuditHistoryOfIssueControllerApi + */ +@Ignore +public class AuditHistoryOfIssueControllerApiTest { + + private final AuditHistoryOfIssueControllerApi api = new AuditHistoryOfIssueControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuditHistoryOfIssueTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListIssueAuditHistoryDto response = api.listAuditHistoryOfIssue(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuthEntityControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityControllerApiTest.java new file mode 100644 index 0000000..c356852 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityControllerApiTest.java @@ -0,0 +1,96 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuthEntityControllerApi + */ +@Ignore +public class AuthEntityControllerApiTest { + + private final AuthEntityControllerApi api = new AuthEntityControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuthEntityTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + String embed = null; + String entityname = null; + String ldaptype = null; + ApiResultListAuthenticationEntity response = api.listAuthEntity(fields, start, limit, q, fulltextsearch, orderby, embed, entityname, ldaptype); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteAuthEntityTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteAuthEntity(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAuthEntityTest() throws ApiException { + Long id = null; + String fields = null; + String embed = null; + ApiResultAuthenticationEntity response = api.readAuthEntity(id, fields, embed); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApiTest.java new file mode 100644 index 0000000..af3caae --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectControllerApiTest.java @@ -0,0 +1,90 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.AuthenticationEntity; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuthEntityOfProjectControllerApi + */ +@Ignore +public class AuthEntityOfProjectControllerApiTest { + + private final AuthEntityOfProjectControllerApi api = new AuthEntityOfProjectControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuthEntityOfProjectTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListAuthenticationEntity response = api.listAuthEntityOfProject(parentId, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAuthEntityOfProjectTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultAuthenticationEntity response = api.readAuthEntityOfProject(parentId, id, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionAuthEntityOfProjectTest() throws ApiException { + Long parentId = null; + List resources = null; + ApiResultListAuthenticationEntity response = api.updateCollectionAuthEntityOfProject(parentId, resources); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..d4ef311 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuthEntityOfProjectVersionControllerApiTest.java @@ -0,0 +1,95 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationEntity; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import com.fortify.ssc.restclient.model.AuthenticationEntity; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuthEntityOfProjectVersionControllerApi + */ +@Ignore +public class AuthEntityOfProjectVersionControllerApiTest { + + private final AuthEntityOfProjectVersionControllerApi api = new AuthEntityOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuthEntityOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + String embed = null; + Boolean extractusersfromgroups = null; + Boolean includeuniversalaccessentities = null; + String entityname = null; + ApiResultListAuthenticationEntity response = api.listAuthEntityOfProjectVersion(parentId, fields, embed, extractusersfromgroups, includeuniversalaccessentities, entityname); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readAuthEntityOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + String embed = null; + ApiResultAuthenticationEntity response = api.readAuthEntityOfProjectVersion(parentId, id, fields, embed); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionAuthEntityOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListAuthenticationEntity response = api.updateCollectionAuthEntityOfProjectVersion(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/AuthTokenControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/AuthTokenControllerApiTest.java new file mode 100644 index 0000000..6ee36dd --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/AuthTokenControllerApiTest.java @@ -0,0 +1,142 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultAuthenticationToken; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationToken; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.AuthTokenRevokeRequest; +import com.fortify.ssc.restclient.model.AuthenticationToken; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuthTokenControllerApi + */ +@Ignore +public class AuthTokenControllerApiTest { + + private final AuthTokenControllerApi api = new AuthTokenControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAuthTokenTest() throws ApiException { + AuthenticationToken authToken = null; + ApiResultAuthenticationToken response = api.createAuthToken(authToken); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAuthTokenTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteAuthToken(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAuthTokenTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListAuthenticationToken response = api.listAuthToken(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteAuthTokenTest() throws ApiException { + Boolean all = null; + String ids = null; + ApiResultVoid response = api.multiDeleteAuthToken(all, ids); + + // TODO: test validations + } + + /** + * Revoke authentication tokens by value + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void revokeAuthTokenTest() throws ApiException { + AuthTokenRevokeRequest resource = null; + ApiResultVoid response = api.revokeAuthToken(resource); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateAuthTokenTest() throws ApiException { + Long id = null; + AuthenticationToken resource = null; + ApiResultAuthenticationToken response = api.updateAuthToken(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..1321277 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/BugFilingRequirementsOfProjectVersionControllerApiTest.java @@ -0,0 +1,110 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultBugFilingRequirementsResponse; +import com.fortify.ssc.restclient.model.ApiResultListBugFilingRequirements; +import com.fortify.ssc.restclient.model.BugFilingRequirements; +import com.fortify.ssc.restclient.model.BugFilingRequirementsRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BugFilingRequirementsOfProjectVersionControllerApi + */ +@Ignore +public class BugFilingRequirementsOfProjectVersionControllerApiTest { + + private final BugFilingRequirementsOfProjectVersionControllerApi api = new BugFilingRequirementsOfProjectVersionControllerApi(); + + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionBugFilingRequirementsOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiCollectionActionstring collectionAction = null; + ApiResultApiActionResponse response = api.doActionBugFilingRequirementsOfProjectVersion(parentId, collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listBugFilingRequirementsOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListBugFilingRequirements response = api.listBugFilingRequirementsOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * login + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void loginBugFilingRequirementsOfProjectVersionTest() throws ApiException { + Long parentId = null; + BugFilingRequirementsRequest resource = null; + ApiResultBugFilingRequirementsResponse response = api.loginBugFilingRequirementsOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionBugFilingRequirementsOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + String changedParamIdentifier = null; + ApiResultListBugFilingRequirements response = api.updateCollectionBugFilingRequirementsOfProjectVersion(parentId, data, changedParamIdentifier); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/BugTrackerControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/BugTrackerControllerApiTest.java new file mode 100644 index 0000000..69d82a9 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/BugTrackerControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListBugTracker; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BugTrackerControllerApi + */ +@Ignore +public class BugTrackerControllerApiTest { + + private final BugTrackerControllerApi api = new BugTrackerControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listBugTrackerTest() throws ApiException { + String fields = null; + ApiResultListBugTracker response = api.listBugTracker(fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..8763c2b --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/BugTrackerOfProjectVersionControllerApiTest.java @@ -0,0 +1,109 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionBugTracker; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.BugTrackerRequest; +import com.fortify.ssc.restclient.model.ProjectVersionBugTracker; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BugTrackerOfProjectVersionControllerApi + */ +@Ignore +public class BugTrackerOfProjectVersionControllerApiTest { + + private final BugTrackerOfProjectVersionControllerApi api = new BugTrackerOfProjectVersionControllerApi(); + + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionBugTrackerOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiCollectionActionstring collectionAction = null; + ApiResultApiActionResponse response = api.doActionBugTrackerOfProjectVersion(parentId, collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listBugTrackerOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListProjectVersionBugTracker response = api.listBugTrackerOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * test + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBugTrackerOfProjectVersionTest() throws ApiException { + Long parentId = null; + BugTrackerRequest resource = null; + ApiResultVoid response = api.testBugTrackerOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionBugTrackerOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListProjectVersionBugTracker response = api.updateCollectionBugTrackerOfProjectVersion(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApiTest.java new file mode 100644 index 0000000..8b3c04b --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/BugfieldTemplateGroupControllerApiTest.java @@ -0,0 +1,137 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultBugfieldTemplateGroupDto; +import com.fortify.ssc.restclient.model.ApiResultListBugfieldTemplateGroupDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.BugfieldTemplateGroupDto; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BugfieldTemplateGroupControllerApi + */ +@Ignore +public class BugfieldTemplateGroupControllerApiTest { + + private final BugfieldTemplateGroupControllerApi api = new BugfieldTemplateGroupControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createBugfieldTemplateGroupTest() throws ApiException { + BugfieldTemplateGroupDto data = null; + ApiResultBugfieldTemplateGroupDto response = api.createBugfieldTemplateGroup(data); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteBugfieldTemplateGroupTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteBugfieldTemplateGroup(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listBugfieldTemplateGroupTest() throws ApiException { + String fields = null; + ApiResultListBugfieldTemplateGroupDto response = api.listBugfieldTemplateGroup(fields); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteBugfieldTemplateGroupTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteBugfieldTemplateGroup(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readBugfieldTemplateGroupTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultBugfieldTemplateGroupDto response = api.readBugfieldTemplateGroup(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateBugfieldTemplateGroupTest() throws ApiException { + Long id = null; + BugfieldTemplateGroupDto resource = null; + ApiResultBugfieldTemplateGroupDto response = api.updateBugfieldTemplateGroup(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/BulkControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/BulkControllerApiTest.java new file mode 100644 index 0000000..33ac113 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/BulkControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListBulkResponseItem; +import com.fortify.ssc.restclient.model.BulkRequestData; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BulkControllerApi + */ +@Ignore +public class BulkControllerApiTest { + + private final BulkControllerApi api = new BulkControllerApi(); + + + /** + * post + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void postBulkTest() throws ApiException { + BulkRequestData apiBulkRequestData = null; + ApiResultListBulkResponseItem response = api.postBulk(apiBulkRequestData); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudJobControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudJobControllerApiTest.java new file mode 100644 index 0000000..01ae62e --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudJobControllerApiTest.java @@ -0,0 +1,111 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudJob; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CloudJobCancelRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudJobControllerApi + */ +@Ignore +public class CloudJobControllerApiTest { + + private final CloudJobControllerApi api = new CloudJobControllerApi(); + + + /** + * cancel + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void cancelCloudJobTest() throws ApiException { + CloudJobCancelRequest resource = null; + ApiResultVoid response = api.cancelCloudJob(resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionCloudJobTest() throws ApiException { + String jobToken = null; + ApiResourceAction resourceAction = null; + ApiResultApiActionResponse response = api.doActionCloudJob(jobToken, resourceAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudJobTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListCloudJob response = api.listCloudJob(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readCloudJobTest() throws ApiException { + String jobToken = null; + String fields = null; + ApiResultCloudJob response = api.readCloudJob(jobToken, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApiTest.java new file mode 100644 index 0000000..4fcdbdc --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudPoolControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudJobOfCloudPoolControllerApi + */ +@Ignore +public class CloudJobOfCloudPoolControllerApiTest { + + private final CloudJobOfCloudPoolControllerApi api = new CloudJobOfCloudPoolControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudJobOfCloudPoolTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String orderby = null; + ApiResultListCloudJob response = api.listCloudJobOfCloudPool(parentId, fields, start, limit, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApiTest.java new file mode 100644 index 0000000..4a9e4d3 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudJobOfCloudWorkerControllerApiTest.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudJob; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudJobOfCloudWorkerControllerApi + */ +@Ignore +public class CloudJobOfCloudWorkerControllerApiTest { + + private final CloudJobOfCloudWorkerControllerApi api = new CloudJobOfCloudWorkerControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudJobOfCloudWorkerTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListCloudJob response = api.listCloudJobOfCloudWorker(parentId, fields, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudPoolControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudPoolControllerApiTest.java new file mode 100644 index 0000000..d1fc45f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudPoolControllerApiTest.java @@ -0,0 +1,126 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudPool; +import com.fortify.ssc.restclient.model.ApiResultListCloudPool; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CloudPool; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudPoolControllerApi + */ +@Ignore +public class CloudPoolControllerApiTest { + + private final CloudPoolControllerApi api = new CloudPoolControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCloudPoolTest() throws ApiException { + CloudPool resource = null; + ApiResultCloudPool response = api.createCloudPool(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCloudPoolTest() throws ApiException { + String uuid = null; + ApiResultVoid response = api.deleteCloudPool(uuid); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudPoolTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + ApiResultListCloudPool response = api.listCloudPool(fields, start, limit, q, fulltextsearch, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readCloudPoolTest() throws ApiException { + String uuid = null; + String fields = null; + ApiResultCloudPool response = api.readCloudPool(uuid, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCloudPoolTest() throws ApiException { + String uuid = null; + CloudPool resource = null; + ApiResultCloudPool response = api.updateCloudPool(uuid, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApiTest.java new file mode 100644 index 0000000..8f9c195 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudPoolMappingControllerApiTest.java @@ -0,0 +1,86 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolMapping; +import com.fortify.ssc.restclient.model.ApiResultListCloudPoolMapping; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudPoolMappingControllerApi + */ +@Ignore +public class CloudPoolMappingControllerApiTest { + + private final CloudPoolMappingControllerApi api = new CloudPoolMappingControllerApi(); + + + /** + * mapByVersionId + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void mapByVersionIdCloudPoolMappingTest() throws ApiException { + Long projectVersionId = null; + ApiResultCloudPoolMapping response = api.mapByVersionIdCloudPoolMapping(projectVersionId); + + // TODO: test validations + } + + /** + * mapByVersionIds + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void mapByVersionIdsCloudPoolMappingTest() throws ApiException { + List projectVersionIds = null; + ApiResultListCloudPoolMapping response = api.mapByVersionIdsCloudPoolMapping(projectVersionIds); + + // TODO: test validations + } + + /** + * mapByVersionName + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void mapByVersionNameCloudPoolMappingTest() throws ApiException { + String projectName = null; + String projectVersionName = null; + ApiResultCloudPoolMapping response = api.mapByVersionNameCloudPoolMapping(projectName, projectVersionName); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApiTest.java new file mode 100644 index 0000000..a5a69b8 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemMetricsControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemMetrics; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudSystemMetricsControllerApi + */ +@Ignore +public class CloudSystemMetricsControllerApiTest { + + private final CloudSystemMetricsControllerApi api = new CloudSystemMetricsControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCloudSystemMetricsTest() throws ApiException { + ApiResultCloudSystemMetrics response = api.getCloudSystemMetrics(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApiTest.java new file mode 100644 index 0000000..d84d856 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemPollStatusControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemPollStatus; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudSystemPollStatusControllerApi + */ +@Ignore +public class CloudSystemPollStatusControllerApiTest { + + private final CloudSystemPollStatusControllerApi api = new CloudSystemPollStatusControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCloudSystemPollStatusTest() throws ApiException { + ApiResultCloudSystemPollStatus response = api.getCloudSystemPollStatus(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApiTest.java new file mode 100644 index 0000000..0aae144 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudSystemSettingsControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudSystemSettings; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudSystemSettingsControllerApi + */ +@Ignore +public class CloudSystemSettingsControllerApiTest { + + private final CloudSystemSettingsControllerApi api = new CloudSystemSettingsControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCloudSystemSettingsTest() throws ApiException { + ApiResultCloudSystemSettings response = api.getCloudSystemSettings(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApiTest.java new file mode 100644 index 0000000..03ad1de --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCloudWorker; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudWorkerControllerApi + */ +@Ignore +public class CloudWorkerControllerApiTest { + + private final CloudWorkerControllerApi api = new CloudWorkerControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudWorkerTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + ApiResultListCloudWorker response = api.listCloudWorker(fields, start, limit, q, fulltextsearch, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readCloudWorkerTest() throws ApiException { + String uuid = null; + String fields = null; + ApiResultCloudWorker response = api.readCloudWorker(uuid, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApiTest.java new file mode 100644 index 0000000..67a3c95 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CloudWorkerOfCloudPoolControllerApiTest.java @@ -0,0 +1,130 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionstring; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolWorkerActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; +import com.fortify.ssc.restclient.model.CloudPoolWorkerAssignRequest; +import com.fortify.ssc.restclient.model.CloudPoolWorkerDisableRequest; +import com.fortify.ssc.restclient.model.CloudPoolWorkerReplaceRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CloudWorkerOfCloudPoolControllerApi + */ +@Ignore +public class CloudWorkerOfCloudPoolControllerApiTest { + + private final CloudWorkerOfCloudPoolControllerApi api = new CloudWorkerOfCloudPoolControllerApi(); + + + /** + * assign + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void assignCloudWorkerOfCloudPoolTest() throws ApiException { + String parentId = null; + CloudPoolWorkerAssignRequest resource = null; + ApiResultCloudPoolWorkerActionResponse response = api.assignCloudWorkerOfCloudPool(parentId, resource); + + // TODO: test validations + } + + /** + * disable + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void disableCloudWorkerOfCloudPoolTest() throws ApiException { + String parentId = null; + CloudPoolWorkerDisableRequest resource = null; + ApiResultCloudPoolWorkerActionResponse response = api.disableCloudWorkerOfCloudPool(parentId, resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionCloudWorkerOfCloudPoolTest() throws ApiException { + String parentId = null; + ApiCollectionActionstring collectionAction = null; + ApiResultApiActionResponse response = api.doActionCloudWorkerOfCloudPool(parentId, collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCloudWorkerOfCloudPoolTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String orderby = null; + ApiResultListCloudWorker response = api.listCloudWorkerOfCloudPool(parentId, fields, start, limit, orderby); + + // TODO: test validations + } + + /** + * replace + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void replaceCloudWorkerOfCloudPoolTest() throws ApiException { + String parentId = null; + CloudPoolWorkerReplaceRequest resource = null; + ApiResultCloudPoolWorkerActionResponse response = api.replaceCloudWorkerOfCloudPool(parentId, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ConfigurationControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ConfigurationControllerApiTest.java new file mode 100644 index 0000000..77c291b --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ConfigurationControllerApiTest.java @@ -0,0 +1,134 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultConfigProperties; +import com.fortify.ssc.restclient.model.ApiResultConfigProperty; +import com.fortify.ssc.restclient.model.ApiResultSearchIndexStatus; +import com.fortify.ssc.restclient.model.ConfigProperties; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ConfigurationControllerApi + */ +@Ignore +public class ConfigurationControllerApiTest { + + private final ConfigurationControllerApi api = new ConfigurationControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getConfigurationTest() throws ApiException { + String group = null; + ApiResultConfigProperties response = api.getConfiguration(group); + + // TODO: test validations + } + + /** + * getFullTextIndexStatus + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFullTextIndexStatusConfigurationTest() throws ApiException { + ApiResultSearchIndexStatus response = api.getFullTextIndexStatusConfiguration(); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readConfigurationTest() throws ApiException { + String id = null; + ApiResultConfigProperty response = api.readConfiguration(id); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateConfigurationTest() throws ApiException { + ConfigProperties resource = null; + ApiResultConfigProperties response = api.updateConfiguration(resource); + + // TODO: test validations + } + + /** + * validateAuditAssistantConnection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void validateAuditAssistantConnectionConfigurationTest() throws ApiException { + ConfigProperties resource = null; + ApiResultConfigProperties response = api.validateAuditAssistantConnectionConfiguration(resource); + + // TODO: test validations + } + + /** + * validateReportConnection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void validateReportConnectionConfigurationTest() throws ApiException { + ConfigProperties resource = null; + ApiResultConfigProperties response = api.validateReportConnectionConfiguration(resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CustomTagControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CustomTagControllerApiTest.java new file mode 100644 index 0000000..0904f2f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CustomTagControllerApiTest.java @@ -0,0 +1,141 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCustomTag; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.CustomTag; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CustomTagControllerApi + */ +@Ignore +public class CustomTagControllerApiTest { + + private final CustomTagControllerApi api = new CustomTagControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCustomTagTest() throws ApiException { + CustomTag data = null; + ApiResultCustomTag response = api.createCustomTag(data); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCustomTagTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteCustomTag(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCustomTagTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListCustomTag response = api.listCustomTag(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteCustomTagTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteCustomTag(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readCustomTagTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultCustomTag response = api.readCustomTag(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCustomTagTest() throws ApiException { + Long id = null; + CustomTag resource = null; + ApiResultCustomTag response = api.updateCustomTag(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApiTest.java new file mode 100644 index 0000000..183f5a4 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfIssueTemplateControllerApiTest.java @@ -0,0 +1,57 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CustomTagOfIssueTemplateControllerApi + */ +@Ignore +public class CustomTagOfIssueTemplateControllerApiTest { + + private final CustomTagOfIssueTemplateControllerApi api = new CustomTagOfIssueTemplateControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCustomTagOfIssueTemplateTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListCustomTag response = api.listCustomTagOfIssueTemplate(parentId, fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..ab2958a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/CustomTagOfProjectVersionControllerApiTest.java @@ -0,0 +1,112 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultCustomTag; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import com.fortify.ssc.restclient.model.CustomTag; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CustomTagOfProjectVersionControllerApi + */ +@Ignore +public class CustomTagOfProjectVersionControllerApiTest { + + private final CustomTagOfProjectVersionControllerApi api = new CustomTagOfProjectVersionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCustomTagOfProjectVersionTest() throws ApiException { + Long parentId = null; + CustomTag resource = null; + ApiResultCustomTag response = api.createCustomTagOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCustomTagOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + Boolean includeall = null; + ApiResultListCustomTag response = api.listCustomTagOfProjectVersion(parentId, fields, start, limit, q, orderby, includeall); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionCustomTagOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListCustomTag response = api.updateCollectionCustomTagOfProjectVersion(parentId, data); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCustomTagOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + CustomTag data = null; + ApiResultCustomTag response = api.updateCustomTagOfProjectVersion(parentId, id, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApiTest.java new file mode 100644 index 0000000..00c675e --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/DashboardVersionControllerApiTest.java @@ -0,0 +1,63 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListDashboardVersion; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DashboardVersionControllerApi + */ +@Ignore +public class DashboardVersionControllerApiTest { + + private final DashboardVersionControllerApi api = new DashboardVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listDashboardVersionTest() throws ApiException { + String fields = null; + String orderby = null; + String groupby = null; + Integer start = null; + Integer limit = null; + String aggregateby = null; + String startdate = null; + String enddate = null; + String attributes = null; + String variables = null; + String performanceindicators = null; + String attributefilter = null; + ApiResultListDashboardVersion response = api.listDashboardVersion(fields, orderby, groupby, start, limit, aggregateby, startdate, enddate, attributes, variables, performanceindicators, attributefilter); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/DataExportControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/DataExportControllerApiTest.java new file mode 100644 index 0000000..ebecbe2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/DataExportControllerApiTest.java @@ -0,0 +1,127 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListDataExport; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ExportAuditToCSVRequest; +import com.fortify.ssc.restclient.model.ExportIssueStatsToCSVRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DataExportControllerApi + */ +@Ignore +public class DataExportControllerApiTest { + + private final DataExportControllerApi api = new DataExportControllerApi(); + + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDataExportTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteDataExport(id); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionDataExportTest() throws ApiException { + ApiCollectionActionlong collectionAction = null; + String appversionid = null; + String datasetname = null; + ApiResultApiActionResponse response = api.doActionDataExport(collectionAction, appversionid, datasetname); + + // TODO: test validations + } + + /** + * exportAuditToCSVFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportAuditToCSVForDataExportTest() throws ApiException { + ExportAuditToCSVRequest resource = null; + ApiResultVoid response = api.exportAuditToCSVForDataExport(resource); + + // TODO: test validations + } + + /** + * exportIssuesStatsToCSVFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportIssuesStatsToCSVForDataExportTest() throws ApiException { + ExportIssueStatsToCSVRequest resource = null; + ApiResultVoid response = api.exportIssuesStatsToCSVForDataExport(resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listDataExportTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListDataExport response = api.listDataExport(fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..6739b99 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestOfProjectVersionControllerApiTest.java @@ -0,0 +1,125 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequest; +import com.fortify.ssc.restclient.model.ApiResultListDynamicScanRequest; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.DynamicScanRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DynamicScanRequestOfProjectVersionControllerApi + */ +@Ignore +public class DynamicScanRequestOfProjectVersionControllerApiTest { + + private final DynamicScanRequestOfProjectVersionControllerApi api = new DynamicScanRequestOfProjectVersionControllerApi(); + + + /** + * Cancel a Dynamic Scan Request + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void cancelDynamicScanRequestOfProjectVersionTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.cancelDynamicScanRequestOfProjectVersion(id); + + // TODO: test validations + } + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createDynamicScanRequestOfProjectVersionTest() throws ApiException { + Long parentId = null; + DynamicScanRequest resource = null; + ApiResultDynamicScanRequest response = api.createDynamicScanRequestOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listDynamicScanRequestOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListDynamicScanRequest response = api.listDynamicScanRequestOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readDynamicScanRequestOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultDynamicScanRequest response = api.readDynamicScanRequestOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateDynamicScanRequestOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + DynamicScanRequest resource = null; + ApiResultDynamicScanRequest response = api.updateDynamicScanRequestOfProjectVersion(parentId, id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..a0b2c35 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestTemplateOfProjectVersionControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequestTemplate; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DynamicScanRequestTemplateOfProjectVersionControllerApi + */ +@Ignore +public class DynamicScanRequestTemplateOfProjectVersionControllerApiTest { + + private final DynamicScanRequestTemplateOfProjectVersionControllerApi api = new DynamicScanRequestTemplateOfProjectVersionControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDynamicScanRequestTemplateOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiResultDynamicScanRequestTemplate response = api.getDynamicScanRequestTemplateOfProjectVersion(parentId); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..32eb5ae --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/DynamicScanRequestsSummaryOfProjectVersionControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultDynamicScanRequestsSummary; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DynamicScanRequestsSummaryOfProjectVersionControllerApi + */ +@Ignore +public class DynamicScanRequestsSummaryOfProjectVersionControllerApiTest { + + private final DynamicScanRequestsSummaryOfProjectVersionControllerApi api = new DynamicScanRequestsSummaryOfProjectVersionControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDynamicScanRequestsSummaryOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiResultDynamicScanRequestsSummary response = api.getDynamicScanRequestsSummaryOfProjectVersion(parentId); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/EngineTypeControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/EngineTypeControllerApiTest.java new file mode 100644 index 0000000..6450c3e --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/EngineTypeControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListEngineType; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for EngineTypeControllerApi + */ +@Ignore +public class EngineTypeControllerApiTest { + + private final EngineTypeControllerApi api = new EngineTypeControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listEngineTypeTest() throws ApiException { + String fields = null; + ApiResultListEngineType response = api.listEngineType(fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/EventLogControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/EventLogControllerApiTest.java new file mode 100644 index 0000000..2972840 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/EventLogControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListEventLog; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for EventLogControllerApi + */ +@Ignore +public class EventLogControllerApiTest { + + private final EventLogControllerApi api = new EventLogControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listEventLogTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListEventLog response = api.listEventLog(fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/FeatureControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/FeatureControllerApiTest.java new file mode 100644 index 0000000..5050c9e --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/FeatureControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFeature; +import com.fortify.ssc.restclient.model.ApiResultListFeature; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FeatureControllerApi + */ +@Ignore +public class FeatureControllerApiTest { + + private final FeatureControllerApi api = new FeatureControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listFeatureTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + Boolean useStableApi = null; + ApiResultListFeature response = api.listFeature(fields, start, limit, q, orderby, useStableApi); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readFeatureTest() throws ApiException { + String id = null; + String fields = null; + ApiResultFeature response = api.readFeature(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/FileTokenControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/FileTokenControllerApiTest.java new file mode 100644 index 0000000..15d61f1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/FileTokenControllerApiTest.java @@ -0,0 +1,69 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFileToken; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.FileToken; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FileTokenControllerApi + */ +@Ignore +public class FileTokenControllerApiTest { + + private final FileTokenControllerApi api = new FileTokenControllerApi(); + + + /** + * Create single-use file transfer token + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createFileTokenTest() throws ApiException { + FileToken resource = null; + ApiResultFileToken response = api.createFileToken(resource); + + // TODO: test validations + } + + /** + * Call this operation after every file upload activity + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteFileTokenTest() throws ApiException { + ApiResultVoid response = api.multiDeleteFileToken(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..d143124 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/FilterSetOfProjectVersionControllerApiTest.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListFilterSet; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FilterSetOfProjectVersionControllerApi + */ +@Ignore +public class FilterSetOfProjectVersionControllerApiTest { + + private final FilterSetOfProjectVersionControllerApi api = new FilterSetOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listFilterSetOfProjectVersionTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + String fields = null; + ApiResultListFilterSet response = api.listFilterSetOfProjectVersion(parentId, start, limit, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/FolderControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/FolderControllerApiTest.java new file mode 100644 index 0000000..0c0160c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/FolderControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultArraystring; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FolderControllerApi + */ +@Ignore +public class FolderControllerApiTest { + + private final FolderControllerApi api = new FolderControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFolderTest() throws ApiException { + ApiResultArraystring response = api.getFolder(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..b70383a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/FolderOfProjectVersionControllerApiTest.java @@ -0,0 +1,70 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultFolder; +import com.fortify.ssc.restclient.model.ApiResultListFolder; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FolderOfProjectVersionControllerApi + */ +@Ignore +public class FolderOfProjectVersionControllerApiTest { + + private final FolderOfProjectVersionControllerApi api = new FolderOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listFolderOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiResultListFolder response = api.listFolderOfProjectVersion(parentId); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readFolderOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + ApiResultFolder response = api.readFolderOfProjectVersion(parentId, id); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApiTest.java new file mode 100644 index 0000000..8e69053 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/GroupOfAuthEntityControllerApiTest.java @@ -0,0 +1,57 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListAuthenticationEntity; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for GroupOfAuthEntityControllerApi + */ +@Ignore +public class GroupOfAuthEntityControllerApiTest { + + private final GroupOfAuthEntityControllerApi api = new GroupOfAuthEntityControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listGroupOfAuthEntityTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String embed = null; + ApiResultListAuthenticationEntity response = api.listGroupOfAuthEntity(parentId, fields, start, limit, q, embed); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IidMigrationControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IidMigrationControllerApiTest.java new file mode 100644 index 0000000..80d34d1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IidMigrationControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIIDMigration; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IidMigrationControllerApi + */ +@Ignore +public class IidMigrationControllerApiTest { + + private final IidMigrationControllerApi api = new IidMigrationControllerApi(); + + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIidMigrationTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultIIDMigration response = api.readIidMigration(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..8b00ea1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IidMigrationOfProjectVersionControllerApiTest.java @@ -0,0 +1,72 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIIDMigration; +import com.fortify.ssc.restclient.model.ApiResultListIIDMigration; +import com.fortify.ssc.restclient.model.IIDMigration; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IidMigrationOfProjectVersionControllerApi + */ +@Ignore +public class IidMigrationOfProjectVersionControllerApiTest { + + private final IidMigrationOfProjectVersionControllerApi api = new IidMigrationOfProjectVersionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createIidMigrationOfProjectVersionTest() throws ApiException { + Long parentId = null; + IIDMigration data = null; + ApiResultIIDMigration response = api.createIidMigrationOfProjectVersion(parentId, data); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIidMigrationOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListIIDMigration response = api.listIidMigrationOfProjectVersion(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApiTest.java new file mode 100644 index 0000000..e572f0b --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/InternalCustomTagControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCustomTag; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InternalCustomTagControllerApi + */ +@Ignore +public class InternalCustomTagControllerApiTest { + + private final InternalCustomTagControllerApi api = new InternalCustomTagControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listInternalCustomTagTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListCustomTag response = api.listInternalCustomTag(fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAgingControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingControllerApiTest.java new file mode 100644 index 0000000..0d70dff --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingControllerApiTest.java @@ -0,0 +1,68 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAgingDto; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAgingControllerApi + */ +@Ignore +public class IssueAgingControllerApiTest { + + private final IssueAgingControllerApi api = new IssueAgingControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAgingTest() throws ApiException { + String orderby = null; + String fields = null; + Integer start = null; + Integer limit = null; + String filterby = null; + String aggregateby = null; + String groupguid = null; + String groupvalue = null; + String name = null; + String numberOfApplicationVersions = null; + String linesOfCode = null; + String issuesPendingReview = null; + String openIssues = null; + String filesScanned = null; + String bugDensity = null; + String averageDaysToReview = null; + String averageDaysToRemediate = null; + ApiResultListIssueAgingDto response = api.listIssueAging(orderby, fields, start, limit, filterby, aggregateby, groupguid, groupvalue, name, numberOfApplicationVersions, linesOfCode, issuesPendingReview, openIssues, filesScanned, bugDensity, averageDaysToReview, averageDaysToRemediate); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApiTest.java new file mode 100644 index 0000000..4084e08 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingGroupControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAgingGroupDto; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAgingGroupControllerApi + */ +@Ignore +public class IssueAgingGroupControllerApiTest { + + private final IssueAgingGroupControllerApi api = new IssueAgingGroupControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAgingGroupTest() throws ApiException { + String groupby = null; + String fields = null; + Integer start = null; + Integer limit = null; + String filterby = null; + ApiResultListIssueAgingGroupDto response = api.listIssueAgingGroup(groupby, fields, start, limit, filterby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApiTest.java new file mode 100644 index 0000000..1566011 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAgingPortletControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAgingPortlet; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAgingPortletControllerApi + */ +@Ignore +public class IssueAgingPortletControllerApiTest { + + private final IssueAgingPortletControllerApi api = new IssueAgingPortletControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getIssueAgingPortletTest() throws ApiException { + ApiResultIssueAgingPortlet response = api.getIssueAgingPortlet(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..68f2714 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAssignmentOfProjectVersionControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAssignment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAssignment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAssignmentOfProjectVersionControllerApi + */ +@Ignore +public class IssueAssignmentOfProjectVersionControllerApiTest { + + private final IssueAssignmentOfProjectVersionControllerApi api = new IssueAssignmentOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAssignmentOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String entityname = null; + ApiResultListIssueAssignment response = api.listIssueAssignmentOfProjectVersion(parentId, fields, start, limit, entityname); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueAssignmentOfProjectVersionTest() throws ApiException { + Long parentId = null; + String id = null; + String fields = null; + ApiResultIssueAssignment response = api.readIssueAssignmentOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApiTest.java new file mode 100644 index 0000000..b079f82 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAttachmentOfIssueControllerApiTest.java @@ -0,0 +1,144 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAttachment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAttachment; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.IssueAttachment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAttachmentOfIssueControllerApi + */ +@Ignore +public class IssueAttachmentOfIssueControllerApiTest { + + private final IssueAttachmentOfIssueControllerApi api = new IssueAttachmentOfIssueControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + IssueAttachment resource = null; + ApiResultIssueAttachment response = api.createIssueAttachmentOfIssue(parentId, resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + Long id = null; + ApiResultVoid response = api.deleteIssueAttachmentOfIssue(parentId, id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + ApiResultListIssueAttachment response = api.listIssueAttachmentOfIssue(parentId, start, limit); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + String ids = null; + ApiResultVoid response = api.multiDeleteIssueAttachmentOfIssue(parentId, ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultIssueAttachment response = api.readIssueAttachmentOfIssue(parentId, id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateIssueAttachmentOfIssueTest() throws ApiException { + Long parentId = null; + Long id = null; + IssueAttachment data = null; + ApiResultIssueAttachment response = api.updateIssueAttachmentOfIssue(parentId, id, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApiTest.java new file mode 100644 index 0000000..20a73ed --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditComment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAuditCommentControllerApi + */ +@Ignore +public class IssueAuditCommentControllerApiTest { + + private final IssueAuditCommentControllerApi api = new IssueAuditCommentControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAuditCommentTest() throws ApiException { + String q = null; + String fulltextsearch = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListIssueAuditComment response = api.listIssueAuditComment(q, fulltextsearch, fields, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApiTest.java new file mode 100644 index 0000000..ebd696c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueAuditCommentOfIssueControllerApiTest.java @@ -0,0 +1,73 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueAuditComment; +import com.fortify.ssc.restclient.model.ApiResultListIssueAuditComment; +import com.fortify.ssc.restclient.model.IssueAuditComment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueAuditCommentOfIssueControllerApi + */ +@Ignore +public class IssueAuditCommentOfIssueControllerApiTest { + + private final IssueAuditCommentOfIssueControllerApi api = new IssueAuditCommentOfIssueControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createIssueAuditCommentOfIssueTest() throws ApiException { + Long parentId = null; + IssueAuditComment resource = null; + ApiResultIssueAuditComment response = api.createIssueAuditCommentOfIssue(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueAuditCommentOfIssueTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + ApiResultListIssueAuditComment response = api.listIssueAuditCommentOfIssue(parentId, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueControllerApiTest.java new file mode 100644 index 0000000..e4265f7 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueControllerApiTest.java @@ -0,0 +1,74 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssue; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssue; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueControllerApi + */ +@Ignore +public class IssueControllerApiTest { + + private final IssueControllerApi api = new IssueControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueTest() throws ApiException { + String q = null; + String fulltextsearch = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListProjectVersionIssue response = api.listIssue(q, fulltextsearch, fields, start, limit); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultProjectVersionIssue response = api.readIssue(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueDetailControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueDetailControllerApiTest.java new file mode 100644 index 0000000..1116195 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueDetailControllerApiTest.java @@ -0,0 +1,72 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssueDetails; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssueDetails; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueDetailControllerApi + */ +@Ignore +public class IssueDetailControllerApiTest { + + private final IssueDetailControllerApi api = new IssueDetailControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueDetailTest() throws ApiException { + String projectName = null; + String projectVersionName = null; + String instanceId = null; + ApiResultListProjectVersionIssueDetails response = api.listIssueDetail(projectName, projectVersionName, instanceId); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueDetailTest() throws ApiException { + Long id = null; + String filterset = null; + ApiResultProjectVersionIssueDetails response = api.readIssueDetail(id, filterset); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..2045cd9 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueGroupOfProjectVersionControllerApiTest.java @@ -0,0 +1,64 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssueGroup; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueGroupOfProjectVersionControllerApi + */ +@Ignore +public class IssueGroupOfProjectVersionControllerApiTest { + + private final IssueGroupOfProjectVersionControllerApi api = new IssueGroupOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueGroupOfProjectVersionTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + String q = null; + String qm = null; + String filterset = null; + String fields = null; + Boolean showhidden = null; + Boolean showremoved = null; + Boolean showsuppressed = null; + Boolean showshortfilenames = null; + String filter = null; + String groupingtype = null; + ApiResultListProjectVersionIssueGroup response = api.listIssueGroupOfProjectVersion(parentId, start, limit, q, qm, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupingtype); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..7d6479c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueOfProjectVersionControllerApiTest.java @@ -0,0 +1,196 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultIssueActionResponse; +import com.fortify.ssc.restclient.model.ApiResultIssueFileBugResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersionIssue; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionIssue; +import com.fortify.ssc.restclient.model.IssueAssignUserRequest; +import com.fortify.ssc.restclient.model.IssueAuditRequest; +import com.fortify.ssc.restclient.model.IssueFileBugRequest; +import com.fortify.ssc.restclient.model.IssueSuppressRequest; +import com.fortify.ssc.restclient.model.IssueUpdateTagRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueOfProjectVersionControllerApi + */ +@Ignore +public class IssueOfProjectVersionControllerApiTest { + + private final IssueOfProjectVersionControllerApi api = new IssueOfProjectVersionControllerApi(); + + + /** + * assignUserFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void assignUserForIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + IssueAssignUserRequest resource = null; + ApiResultIssueActionResponse response = api.assignUserForIssueOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * audit + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void auditIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + IssueAuditRequest resource = null; + ApiResultIssueActionResponse response = api.auditIssueOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doActionIssueOfProjectVersion(parentId, collectionAction); + + // TODO: test validations + } + + /** + * fileBugFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void fileBugForIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + IssueFileBugRequest resource = null; + ApiResultIssueFileBugResponse response = api.fileBugForIssueOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + String q = null; + String qm = null; + String orderby = null; + String filterset = null; + String fields = null; + Boolean showhidden = null; + Boolean showremoved = null; + Boolean showsuppressed = null; + Boolean showshortfilenames = null; + String filter = null; + String groupid = null; + String groupingtype = null; + ApiResultListProjectVersionIssue response = api.listIssueOfProjectVersion(parentId, start, limit, q, qm, orderby, filterset, fields, showhidden, showremoved, showsuppressed, showshortfilenames, filter, groupid, groupingtype); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + Long id = null; + String fields = null; + ApiResultProjectVersionIssue response = api.readIssueOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + + /** + * suppress + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void suppressIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + IssueSuppressRequest resource = null; + ApiResultIssueActionResponse response = api.suppressIssueOfProjectVersion(parentId, resource); + + // TODO: test validations + } + + /** + * updateTagFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateTagForIssueOfProjectVersionTest() throws ApiException { + Long parentId = null; + IssueUpdateTagRequest resource = null; + ApiResultIssueActionResponse response = api.updateTagForIssueOfProjectVersion(parentId, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..c962be5 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueSelectorSetOfProjectVersionControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueFilterSelectorSet; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueSelectorSetOfProjectVersionControllerApi + */ +@Ignore +public class IssueSelectorSetOfProjectVersionControllerApiTest { + + private final IssueSelectorSetOfProjectVersionControllerApi api = new IssueSelectorSetOfProjectVersionControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getIssueSelectorSetOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultIssueFilterSelectorSet response = api.getIssueSelectorSetOfProjectVersion(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..38f8831 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueStatisticsOfProjectVersionControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueStatistics; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueStatisticsOfProjectVersionControllerApi + */ +@Ignore +public class IssueStatisticsOfProjectVersionControllerApiTest { + + private final IssueStatisticsOfProjectVersionControllerApi api = new IssueStatisticsOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueStatisticsOfProjectVersionTest() throws ApiException { + Long parentId = null; + String filterset = null; + ApiResultListIssueStatistics response = api.listIssueStatisticsOfProjectVersion(parentId, filterset); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..850ec28 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueSummaryOfProjectVersionControllerApiTest.java @@ -0,0 +1,59 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListIssueSummary; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueSummaryOfProjectVersionControllerApi + */ +@Ignore +public class IssueSummaryOfProjectVersionControllerApiTest { + + private final IssueSummaryOfProjectVersionControllerApi api = new IssueSummaryOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueSummaryOfProjectVersionTest() throws ApiException { + Long parentId = null; + String seriestype = null; + String groupaxistype = null; + String audited = null; + String filter = null; + Boolean showhidden = null; + Boolean showremoved = null; + Boolean showsuppressed = null; + ApiResultListIssueSummary response = api.listIssueSummaryOfProjectVersion(parentId, seriestype, groupaxistype, audited, filter, showhidden, showremoved, showsuppressed); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApiTest.java new file mode 100644 index 0000000..6e98716 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueTemplateControllerApiTest.java @@ -0,0 +1,125 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueTemplate; +import com.fortify.ssc.restclient.model.ApiResultListIssueTemplate; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.IssueTemplate; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueTemplateControllerApi + */ +@Ignore +public class IssueTemplateControllerApiTest { + + private final IssueTemplateControllerApi api = new IssueTemplateControllerApi(); + + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteIssueTemplateTest() throws ApiException { + String id = null; + ApiResultVoid response = api.deleteIssueTemplate(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueTemplateTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListIssueTemplate response = api.listIssueTemplate(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteIssueTemplateTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteIssueTemplate(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueTemplateTest() throws ApiException { + String id = null; + String fields = null; + ApiResultIssueTemplate response = api.readIssueTemplate(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateIssueTemplateTest() throws ApiException { + String id = null; + IssueTemplate resource = null; + ApiResultIssueTemplate response = api.updateIssueTemplate(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApiTest.java new file mode 100644 index 0000000..cac9f70 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/IssueViewTemplateControllerApiTest.java @@ -0,0 +1,74 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueViewTemplate; +import com.fortify.ssc.restclient.model.ApiResultListIssueViewTemplate; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for IssueViewTemplateControllerApi + */ +@Ignore +public class IssueViewTemplateControllerApiTest { + + private final IssueViewTemplateControllerApi api = new IssueViewTemplateControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listIssueViewTemplateTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListIssueViewTemplate response = api.listIssueViewTemplate(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readIssueViewTemplateTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultIssueViewTemplate response = api.readIssueViewTemplate(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/JobControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/JobControllerApiTest.java new file mode 100644 index 0000000..58d1667 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/JobControllerApiTest.java @@ -0,0 +1,129 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultJob; +import com.fortify.ssc.restclient.model.ApiResultListJob; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Job; +import com.fortify.ssc.restclient.model.JobCancelRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for JobControllerApi + */ +@Ignore +public class JobControllerApiTest { + + private final JobControllerApi api = new JobControllerApi(); + + + /** + * cancel + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void cancelJobTest() throws ApiException { + JobCancelRequest resource = null; + ApiResultVoid response = api.cancelJob(resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionJobTest() throws ApiException { + String jobName = null; + ApiResourceAction resourceAction = null; + ApiResultApiActionResponse response = api.doActionJob(jobName, resourceAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listJobTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListJob response = api.listJob(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readJobTest() throws ApiException { + String jobName = null; + String fields = null; + ApiResultJob response = api.readJob(jobName, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateJobTest() throws ApiException { + String jobName = null; + Job resource = null; + ApiResultJob response = api.updateJob(jobName, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApiTest.java new file mode 100644 index 0000000..41cf88f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/JobPriorityChangeCategoryWarningOfJobControllerApiTest.java @@ -0,0 +1,54 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListJobPriorityChangeCategoryWarning; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for JobPriorityChangeCategoryWarningOfJobControllerApi + */ +@Ignore +public class JobPriorityChangeCategoryWarningOfJobControllerApiTest { + + private final JobPriorityChangeCategoryWarningOfJobControllerApi api = new JobPriorityChangeCategoryWarningOfJobControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listJobPriorityChangeCategoryWarningOfJobTest() throws ApiException { + String parentId = null; + String priority = null; + String fields = null; + ApiResultListJobPriorityChangeCategoryWarning response = api.listJobPriorityChangeCategoryWarningOfJob(parentId, priority, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/LdapObjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/LdapObjectControllerApiTest.java new file mode 100644 index 0000000..242790a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/LdapObjectControllerApiTest.java @@ -0,0 +1,177 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultLDAPEntity; +import com.fortify.ssc.restclient.model.ApiResultLdapRefreshResponse; +import com.fortify.ssc.restclient.model.ApiResultListLDAPEntity; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LDAPEntity; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for LdapObjectControllerApi + */ +@Ignore +public class LdapObjectControllerApiTest { + + private final LdapObjectControllerApi api = new LdapObjectControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createLdapObjectTest() throws ApiException { + LDAPEntity resource = null; + ApiResultLDAPEntity response = api.createLdapObject(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteLdapObjectTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteLdapObject(id); + + // TODO: test validations + } + + /** + * doCollectionAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doCollectionActionLdapObjectTest() throws ApiException { + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doCollectionActionLdapObject(collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listLdapObjectTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + String ldaptype = null; + String viewby = null; + ApiResultListLDAPEntity response = api.listLdapObject(fields, start, limit, q, orderby, ldaptype, viewby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteLdapObjectTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteLdapObject(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readLdapObjectTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultLDAPEntity response = api.readLdapObject(id, fields); + + // TODO: test validations + } + + /** + * refresh + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void refreshLdapObjectTest() throws ApiException { + ApiResultLdapRefreshResponse response = api.refreshLdapObject(); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateLdapObjectTest() throws ApiException { + Long id = null; + LDAPEntity resource = null; + ApiResultLDAPEntity response = api.updateLdapObject(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/LdapServerControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/LdapServerControllerApiTest.java new file mode 100644 index 0000000..12b763d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/LdapServerControllerApiTest.java @@ -0,0 +1,174 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultLdapServerDto; +import com.fortify.ssc.restclient.model.ApiResultListLdapServerDto; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LdapServerDto; +import com.fortify.ssc.restclient.model.LdapServerTestRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for LdapServerControllerApi + */ +@Ignore +public class LdapServerControllerApiTest { + + private final LdapServerControllerApi api = new LdapServerControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createLdapServerTest() throws ApiException { + LdapServerDto resource = null; + ApiResultLdapServerDto response = api.createLdapServer(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteLdapServerTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteLdapServer(id); + + // TODO: test validations + } + + /** + * doCollectionAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doCollectionActionLdapServerTest() throws ApiException { + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doCollectionActionLdapServer(collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listLdapServerTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListLdapServerDto response = api.listLdapServer(fields, start, limit); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteLdapServerTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteLdapServer(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readLdapServerTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultLdapServerDto response = api.readLdapServer(id, fields); + + // TODO: test validations + } + + /** + * test + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testLdapServerTest() throws ApiException { + LdapServerTestRequest resource = null; + ApiResultVoid response = api.testLdapServer(resource); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateLdapServerTest() throws ApiException { + Long id = null; + LdapServerDto resource = null; + ApiResultLdapServerDto response = api.updateLdapServer(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/LicenseControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/LicenseControllerApiTest.java new file mode 100644 index 0000000..edd1a3d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/LicenseControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultLicense; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for LicenseControllerApi + */ +@Ignore +public class LicenseControllerApiTest { + + private final LicenseControllerApi api = new LicenseControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getLicenseTest() throws ApiException { + ApiResultLicense response = api.getLicense(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/LocalUserControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/LocalUserControllerApiTest.java new file mode 100644 index 0000000..3e9862c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/LocalUserControllerApiTest.java @@ -0,0 +1,159 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListLocalUser; +import com.fortify.ssc.restclient.model.ApiResultLocalUser; +import com.fortify.ssc.restclient.model.ApiResultPasswordStrengthCheckResponse; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.LocalUser; +import com.fortify.ssc.restclient.model.PasswordStrengthCheckRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for LocalUserControllerApi + */ +@Ignore +public class LocalUserControllerApiTest { + + private final LocalUserControllerApi api = new LocalUserControllerApi(); + + + /** + * check + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void checkLocalUserTest() throws ApiException { + PasswordStrengthCheckRequest passwordStrengthCheckRequest = null; + ApiResultPasswordStrengthCheckResponse response = api.checkLocalUser(passwordStrengthCheckRequest); + + // TODO: test validations + } + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createLocalUserTest() throws ApiException { + LocalUser user = null; + ApiResultLocalUser response = api.createLocalUser(user); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteLocalUserTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteLocalUser(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listLocalUserTest() throws ApiException { + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + String fields = null; + ApiResultListLocalUser response = api.listLocalUser(start, limit, q, orderby, fields); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteLocalUserTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteLocalUser(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readLocalUserTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultLocalUser response = api.readLocalUser(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateLocalUserTest() throws ApiException { + Long id = null; + LocalUser user = null; + ApiResultLocalUser response = api.updateLocalUser(id, user); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApiTest.java new file mode 100644 index 0000000..d91e808 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ParserPluginImageControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ParserPluginImageControllerApi + */ +@Ignore +public class ParserPluginImageControllerApiTest { + + private final ParserPluginImageControllerApi api = new ParserPluginImageControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getParserPluginImageTest() throws ApiException { + String imageType = null; + String engineType = null; + Long dataVersion = null; + byte[] response = api.getParserPluginImage(imageType, engineType, dataVersion); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApiTest.java new file mode 100644 index 0000000..915d70e --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorControllerApiTest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPerformanceIndicator; +import com.fortify.ssc.restclient.model.ApiResultPerformanceIndicator; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.PerformanceIndicator; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PerformanceIndicatorControllerApi + */ +@Ignore +public class PerformanceIndicatorControllerApiTest { + + private final PerformanceIndicatorControllerApi api = new PerformanceIndicatorControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createPerformanceIndicatorTest() throws ApiException { + PerformanceIndicator data = null; + ApiResultPerformanceIndicator response = api.createPerformanceIndicator(data); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePerformanceIndicatorTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deletePerformanceIndicator(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPerformanceIndicatorTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListPerformanceIndicator response = api.listPerformanceIndicator(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeletePerformanceIndicatorTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeletePerformanceIndicator(ids); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updatePerformanceIndicatorTest() throws ApiException { + Long id = null; + PerformanceIndicator resource = null; + ApiResultPerformanceIndicator response = api.updatePerformanceIndicator(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..44fec56 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PerformanceIndicatorHistoryOfProjectVersionControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPerformanceIndicatorHistory; +import com.fortify.ssc.restclient.model.ApiResultPerformanceIndicatorHistory; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PerformanceIndicatorHistoryOfProjectVersionControllerApi + */ +@Ignore +public class PerformanceIndicatorHistoryOfProjectVersionControllerApiTest { + + private final PerformanceIndicatorHistoryOfProjectVersionControllerApi api = new PerformanceIndicatorHistoryOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPerformanceIndicatorHistoryOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + ApiResultListPerformanceIndicatorHistory response = api.listPerformanceIndicatorHistoryOfProjectVersion(parentId, fields, start, limit, q); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readPerformanceIndicatorHistoryOfProjectVersionTest() throws ApiException { + Long parentId = null; + String id = null; + String fields = null; + ApiResultPerformanceIndicatorHistory response = api.readPerformanceIndicatorHistoryOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PermissionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PermissionControllerApiTest.java new file mode 100644 index 0000000..ab0d2c6 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PermissionControllerApiTest.java @@ -0,0 +1,74 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; +import com.fortify.ssc.restclient.model.ApiResultPermission; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PermissionControllerApi + */ +@Ignore +public class PermissionControllerApiTest { + + private final PermissionControllerApi api = new PermissionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPermissionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListPermission response = api.listPermission(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readPermissionTest() throws ApiException { + String id = null; + String fields = null; + ApiResultPermission response = api.readPermission(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApiTest.java new file mode 100644 index 0000000..274fb83 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PermissionOfRoleControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PermissionOfRoleControllerApi + */ +@Ignore +public class PermissionOfRoleControllerApiTest { + + private final PermissionOfRoleControllerApi api = new PermissionOfRoleControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPermissionOfRoleTest() throws ApiException { + String parentId = null; + String fields = null; + ApiResultListPermission response = api.listPermissionOfRole(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApiTest.java new file mode 100644 index 0000000..009bfc1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PermissionRequiredByPermissionControllerApiTest.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPermission; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PermissionRequiredByPermissionControllerApi + */ +@Ignore +public class PermissionRequiredByPermissionControllerApiTest { + + private final PermissionRequiredByPermissionControllerApi api = new PermissionRequiredByPermissionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPermissionRequiredByPermissionTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListPermission response = api.listPermissionRequiredByPermission(parentId, fields, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PersonaControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PersonaControllerApiTest.java new file mode 100644 index 0000000..0ef35f7 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PersonaControllerApiTest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListPersona; +import com.fortify.ssc.restclient.model.ApiResultPersona; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Persona; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PersonaControllerApi + */ +@Ignore +public class PersonaControllerApiTest { + + private final PersonaControllerApi api = new PersonaControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createPersonaTest() throws ApiException { + Persona resource = null; + ApiResultPersona response = api.createPersona(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePersonaTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deletePersona(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPersonaTest() throws ApiException { + Integer start = null; + Integer limit = null; + String q = null; + String fields = null; + ApiResultListPersona response = api.listPersona(start, limit, q, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readPersonaTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultPersona response = api.readPersona(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updatePersonaTest() throws ApiException { + Long id = null; + Persona resource = null; + ApiResultPersona response = api.updatePersona(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PluginControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PluginControllerApiTest.java new file mode 100644 index 0000000..193d9ca --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PluginControllerApiTest.java @@ -0,0 +1,144 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListPluginMetaData; +import com.fortify.ssc.restclient.model.ApiResultPluginMetaData; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.PluginDisableRequest; +import com.fortify.ssc.restclient.model.PluginEnableRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PluginControllerApi + */ +@Ignore +public class PluginControllerApiTest { + + private final PluginControllerApi api = new PluginControllerApi(); + + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePluginTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deletePlugin(id); + + // TODO: test validations + } + + /** + * disable + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void disablePluginTest() throws ApiException { + PluginDisableRequest resource = null; + ApiResultVoid response = api.disablePlugin(resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionPluginTest() throws ApiException { + Long id = null; + ApiResourceAction apiResourceAction = null; + ApiResultApiActionResponse response = api.doActionPlugin(id, apiResourceAction); + + // TODO: test validations + } + + /** + * enable + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void enablePluginTest() throws ApiException { + PluginEnableRequest resource = null; + ApiResultVoid response = api.enablePlugin(resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listPluginTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListPluginMetaData response = api.listPlugin(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readPluginTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultPluginMetaData response = api.readPlugin(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PluginImageControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PluginImageControllerApiTest.java new file mode 100644 index 0000000..63b9682 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PluginImageControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PluginImageControllerApi + */ +@Ignore +public class PluginImageControllerApiTest { + + private final PluginImageControllerApi api = new PluginImageControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPluginImageTest() throws ApiException { + String imageType = null; + Long metadataId = null; + byte[] response = api.getPluginImage(imageType, metadataId); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApiTest.java new file mode 100644 index 0000000..da30143 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/PluginLocalizationControllerApiTest.java @@ -0,0 +1,54 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultPluginLocalization; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PluginLocalizationControllerApi + */ +@Ignore +public class PluginLocalizationControllerApiTest { + + private final PluginLocalizationControllerApi api = new PluginLocalizationControllerApi(); + + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readPluginLocalizationTest() throws ApiException { + String engineType = null; + Integer dataVersion = null; + String language = null; + ApiResultPluginLocalization response = api.readPluginLocalization(engineType, dataVersion, language); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectControllerApiTest.java new file mode 100644 index 0000000..680797f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectControllerApiTest.java @@ -0,0 +1,129 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultApplicationNameTestResponse; +import com.fortify.ssc.restclient.model.ApiResultListProject; +import com.fortify.ssc.restclient.model.ApiResultProject; +import com.fortify.ssc.restclient.model.ApplicationNameTestRequest; +import com.fortify.ssc.restclient.model.Project; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectControllerApi + */ +@Ignore +public class ProjectControllerApiTest { + + private final ProjectControllerApi api = new ProjectControllerApi(); + + + /** + * doCollectionAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doCollectionActionProjectTest() throws ApiException { + ApiCollectionActionlong apiResourceAction = null; + ApiResultApiActionResponse response = api.doCollectionActionProject(apiResourceAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + ApiResultListProject response = api.listProject(fields, start, limit, q, fulltextsearch, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readProjectTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultProject response = api.readProject(id, fields); + + // TODO: test validations + } + + /** + * test + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testProjectTest() throws ApiException { + ApplicationNameTestRequest resource = null; + ApiResultApplicationNameTestResponse response = api.testProject(resource); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateProjectTest() throws ApiException { + Long id = null; + Project data = null; + ApiResultProject response = api.updateProject(id, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApiTest.java new file mode 100644 index 0000000..7f6a6cc --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionControllerApiTest.java @@ -0,0 +1,286 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResourceAction; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionRefreshResponse; +import com.fortify.ssc.restclient.model.ApiResultProjectVersionTestResponse; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ProjectVersion; +import com.fortify.ssc.restclient.model.ProjectVersionAuditByAssistantRequest; +import com.fortify.ssc.restclient.model.ProjectVersionCopyCurrentStateRequest; +import com.fortify.ssc.restclient.model.ProjectVersionCopyPartialRequest; +import com.fortify.ssc.restclient.model.ProjectVersionPurgeRequest; +import com.fortify.ssc.restclient.model.ProjectVersionRefreshRequest; +import com.fortify.ssc.restclient.model.ProjectVersionTestRequest; +import com.fortify.ssc.restclient.model.ProjectVersionTrainAuditAssistantRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectVersionControllerApi + */ +@Ignore +public class ProjectVersionControllerApiTest { + + private final ProjectVersionControllerApi api = new ProjectVersionControllerApi(); + + + /** + * auditByAuditAssistant + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void auditByAuditAssistantProjectVersionTest() throws ApiException { + ProjectVersionAuditByAssistantRequest resource = null; + ApiResultVoid response = api.auditByAuditAssistantProjectVersion(resource); + + // TODO: test validations + } + + /** + * copyCurrentStateFor + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void copyCurrentStateForProjectVersionTest() throws ApiException { + ProjectVersionCopyCurrentStateRequest resource = null; + ApiResultVoid response = api.copyCurrentStateForProjectVersion(resource); + + // TODO: test validations + } + + /** + * copy + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void copyProjectVersionTest() throws ApiException { + ProjectVersionCopyPartialRequest resource = null; + ApiResultVoid response = api.copyProjectVersion(resource); + + // TODO: test validations + } + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createProjectVersionTest() throws ApiException { + ProjectVersion resource = null; + ApiResultProjectVersion response = api.createProjectVersion(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteProjectVersionTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteProjectVersion(id); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionProjectVersionTest() throws ApiException { + Long id = null; + ApiResourceAction resourceAction = null; + ApiResultApiActionResponse response = api.doActionProjectVersion(id, resourceAction); + + // TODO: test validations + } + + /** + * doCollectionAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doCollectionActionProjectVersionTest() throws ApiException { + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doCollectionActionProjectVersion(collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectVersionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + Boolean includeInactive = null; + Boolean myAssignedIssues = null; + Boolean onlyIfHasIssues = null; + ApiResultListProjectVersion response = api.listProjectVersion(fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues, onlyIfHasIssues); + + // TODO: test validations + } + + /** + * purge + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void purgeProjectVersionTest() throws ApiException { + ProjectVersionPurgeRequest resource = null; + ApiResultVoid response = api.purgeProjectVersion(resource); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readProjectVersionTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultProjectVersion response = api.readProjectVersion(id, fields); + + // TODO: test validations + } + + /** + * refresh + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void refreshProjectVersionTest() throws ApiException { + ProjectVersionRefreshRequest resource = null; + ApiResultProjectVersionRefreshResponse response = api.refreshProjectVersion(resource); + + // TODO: test validations + } + + /** + * test + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testProjectVersionTest() throws ApiException { + ProjectVersionTestRequest projectVersionTestRequest = null; + ApiResultProjectVersionTestResponse response = api.testProjectVersion(projectVersionTestRequest); + + // TODO: test validations + } + + /** + * trainAuditAssistant + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void trainAuditAssistantProjectVersionTest() throws ApiException { + ProjectVersionTrainAuditAssistantRequest resource = null; + ApiResultVoid response = api.trainAuditAssistantProjectVersion(resource); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateProjectVersionTest() throws ApiException { + Long id = null; + ProjectVersion resource = null; + ApiResultProjectVersion response = api.updateProjectVersion(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApiTest.java new file mode 100644 index 0000000..4e94335 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAlertDefinitionControllerApiTest.java @@ -0,0 +1,57 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectVersionOfAlertDefinitionControllerApi + */ +@Ignore +public class ProjectVersionOfAlertDefinitionControllerApiTest { + + private final ProjectVersionOfAlertDefinitionControllerApi api = new ProjectVersionOfAlertDefinitionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectVersionOfAlertDefinitionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListProjectVersion response = api.listProjectVersionOfAlertDefinition(parentId, fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApiTest.java new file mode 100644 index 0000000..781c7e0 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfAuthEntityControllerApiTest.java @@ -0,0 +1,128 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ProjectVersionAuthEntityAssignRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectVersionOfAuthEntityControllerApi + */ +@Ignore +public class ProjectVersionOfAuthEntityControllerApiTest { + + private final ProjectVersionOfAuthEntityControllerApi api = new ProjectVersionOfAuthEntityControllerApi(); + + + /** + * assign + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void assignProjectVersionOfAuthEntityTest() throws ApiException { + Long parentId = null; + ProjectVersionAuthEntityAssignRequest resource = null; + ApiResultVoid response = api.assignProjectVersionOfAuthEntity(parentId, resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionProjectVersionOfAuthEntityTest() throws ApiException { + Long parentId = null; + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doActionProjectVersionOfAuthEntity(parentId, collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectVersionOfAuthEntityTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + String q = null; + String fields = null; + ApiResultListProjectVersion response = api.listProjectVersionOfAuthEntity(parentId, start, limit, q, fields); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteProjectVersionOfAuthEntityTest() throws ApiException { + Long parentId = null; + String ids = null; + ApiResultVoid response = api.multiDeleteProjectVersionOfAuthEntity(parentId, ids); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateProjectVersionOfAuthEntityTest() throws ApiException { + Long parentId = null; + List resources = null; + ApiResultListProjectVersion response = api.updateProjectVersionOfAuthEntity(parentId, resources); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApiTest.java new file mode 100644 index 0000000..6075a06 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfCloudPoolControllerApiTest.java @@ -0,0 +1,112 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiCollectionActionlong; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultApiActionResponse; +import com.fortify.ssc.restclient.model.ApiResultCloudPoolProjectVersionActionResponse; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.CloudPoolProjectVersionAssignRequest; +import com.fortify.ssc.restclient.model.CloudPoolProjectVersionReplaceRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectVersionOfCloudPoolControllerApi + */ +@Ignore +public class ProjectVersionOfCloudPoolControllerApiTest { + + private final ProjectVersionOfCloudPoolControllerApi api = new ProjectVersionOfCloudPoolControllerApi(); + + + /** + * assign + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void assignProjectVersionOfCloudPoolTest() throws ApiException { + String parentId = null; + CloudPoolProjectVersionAssignRequest resource = null; + ApiResultCloudPoolProjectVersionActionResponse response = api.assignProjectVersionOfCloudPool(parentId, resource); + + // TODO: test validations + } + + /** + * doAction + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doActionProjectVersionOfCloudPoolTest() throws ApiException { + String parentId = null; + ApiCollectionActionlong collectionAction = null; + ApiResultApiActionResponse response = api.doActionProjectVersionOfCloudPool(parentId, collectionAction); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectVersionOfCloudPoolTest() throws ApiException { + String parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String orderby = null; + ApiResultListProjectVersion response = api.listProjectVersionOfCloudPool(parentId, fields, start, limit, orderby); + + // TODO: test validations + } + + /** + * replace + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void replaceProjectVersionOfCloudPoolTest() throws ApiException { + String parentId = null; + CloudPoolProjectVersionReplaceRequest resource = null; + ApiResultCloudPoolProjectVersionActionResponse response = api.replaceProjectVersionOfCloudPool(parentId, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApiTest.java new file mode 100644 index 0000000..86ed73c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ProjectVersionOfProjectControllerApiTest.java @@ -0,0 +1,79 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListProjectVersion; +import com.fortify.ssc.restclient.model.ApiResultProjectVersion; +import com.fortify.ssc.restclient.model.ProjectVersion; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ProjectVersionOfProjectControllerApi + */ +@Ignore +public class ProjectVersionOfProjectControllerApiTest { + + private final ProjectVersionOfProjectControllerApi api = new ProjectVersionOfProjectControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createProjectVersionOfProjectTest() throws ApiException { + Long parentId = null; + ProjectVersion resource = null; + ApiResultProjectVersion response = api.createProjectVersionOfProject(parentId, resource); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listProjectVersionOfProjectTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String orderby = null; + Boolean includeInactive = null; + Boolean myAssignedIssues = null; + ApiResultListProjectVersion response = api.listProjectVersionOfProject(parentId, fields, start, limit, q, fulltextsearch, orderby, includeInactive, myAssignedIssues); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApiTest.java new file mode 100644 index 0000000..0147c15 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ReportDefinitionControllerApiTest.java @@ -0,0 +1,141 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListReportDefinition; +import com.fortify.ssc.restclient.model.ApiResultReportDefinition; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ReportDefinition; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ReportDefinitionControllerApi + */ +@Ignore +public class ReportDefinitionControllerApiTest { + + private final ReportDefinitionControllerApi api = new ReportDefinitionControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createReportDefinitionTest() throws ApiException { + ReportDefinition resource = null; + ApiResultReportDefinition response = api.createReportDefinition(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteReportDefinitionTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteReportDefinition(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listReportDefinitionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String groupby = null; + ApiResultListReportDefinition response = api.listReportDefinition(fields, start, limit, q, groupby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteReportDefinitionTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteReportDefinition(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readReportDefinitionTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultReportDefinition response = api.readReportDefinition(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateReportDefinitionTest() throws ApiException { + Long id = null; + ReportDefinition resource = null; + ApiResultReportDefinition response = api.updateReportDefinition(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApiTest.java new file mode 100644 index 0000000..7b8d2ff --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ReportLibraryControllerApiTest.java @@ -0,0 +1,139 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListReportLibrary; +import com.fortify.ssc.restclient.model.ApiResultReportLibrary; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.ReportLibrary; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ReportLibraryControllerApi + */ +@Ignore +public class ReportLibraryControllerApiTest { + + private final ReportLibraryControllerApi api = new ReportLibraryControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createReportLibraryTest() throws ApiException { + ReportLibrary resource = null; + ApiResultReportLibrary response = api.createReportLibrary(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteReportLibraryTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteReportLibrary(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listReportLibraryTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListReportLibrary response = api.listReportLibrary(fields, start, limit); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteReportLibraryTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteReportLibrary(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readReportLibraryTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultReportLibrary response = api.readReportLibrary(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateReportLibraryTest() throws ApiException { + Long id = null; + ReportLibrary resource = null; + ApiResultReportLibrary response = api.updateReportLibrary(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApiTest.java new file mode 100644 index 0000000..dc2df5f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectControllerApiTest.java @@ -0,0 +1,93 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ApiResultResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ResponsibilityAssignmentOfProjectControllerApi + */ +@Ignore +public class ResponsibilityAssignmentOfProjectControllerApiTest { + + private final ResponsibilityAssignmentOfProjectControllerApi api = new ResponsibilityAssignmentOfProjectControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listResponsibilityAssignmentOfProjectTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + ApiResultListResponsibilityAssignment response = api.listResponsibilityAssignmentOfProject(parentId, fields, start, limit, q); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readResponsibilityAssignmentOfProjectTest() throws ApiException { + Long parentId = null; + String guid = null; + String fields = null; + ApiResultResponsibilityAssignment response = api.readResponsibilityAssignmentOfProject(parentId, guid, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionResponsibilityAssignmentOfProjectTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListResponsibilityAssignment response = api.updateCollectionResponsibilityAssignmentOfProject(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..ca68409 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ResponsibilityAssignmentOfProjectVersionControllerApiTest.java @@ -0,0 +1,93 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ApiResultResponsibilityAssignment; +import com.fortify.ssc.restclient.model.ResponsibilityAssignment; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ResponsibilityAssignmentOfProjectVersionControllerApi + */ +@Ignore +public class ResponsibilityAssignmentOfProjectVersionControllerApiTest { + + private final ResponsibilityAssignmentOfProjectVersionControllerApi api = new ResponsibilityAssignmentOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listResponsibilityAssignmentOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + ApiResultListResponsibilityAssignment response = api.listResponsibilityAssignmentOfProjectVersion(parentId, fields, start, limit, q); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readResponsibilityAssignmentOfProjectVersionTest() throws ApiException { + Long parentId = null; + String guid = null; + String fields = null; + ApiResultResponsibilityAssignment response = api.readResponsibilityAssignmentOfProjectVersion(parentId, guid, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionResponsibilityAssignmentOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListResponsibilityAssignment response = api.updateCollectionResponsibilityAssignmentOfProjectVersion(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..e43e82d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ResultProcessingRuleOfProjectVersionControllerApiTest.java @@ -0,0 +1,71 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListResultProcessingRule; +import com.fortify.ssc.restclient.model.ResultProcessingRule; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ResultProcessingRuleOfProjectVersionControllerApi + */ +@Ignore +public class ResultProcessingRuleOfProjectVersionControllerApiTest { + + private final ResultProcessingRuleOfProjectVersionControllerApi api = new ResultProcessingRuleOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listResultProcessingRuleOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListResultProcessingRule response = api.listResultProcessingRuleOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * updateCollection + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCollectionResultProcessingRuleOfProjectVersionTest() throws ApiException { + Long parentId = null; + List data = null; + ApiResultListResultProcessingRule response = api.updateCollectionResultProcessingRuleOfProjectVersion(parentId, data); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/RoleControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/RoleControllerApiTest.java new file mode 100644 index 0000000..61c8aad --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/RoleControllerApiTest.java @@ -0,0 +1,142 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRole; +import com.fortify.ssc.restclient.model.ApiResultRole; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Role; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RoleControllerApi + */ +@Ignore +public class RoleControllerApiTest { + + private final RoleControllerApi api = new RoleControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createRoleTest() throws ApiException { + Role resource = null; + ApiResultRole response = api.createRole(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRoleTest() throws ApiException { + String id = null; + ApiResultVoid response = api.deleteRole(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRoleTest() throws ApiException { + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + String fields = null; + Boolean excludeuseronly = null; + ApiResultListRole response = api.listRole(start, limit, q, orderby, fields, excludeuseronly); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteRoleTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteRole(ids); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readRoleTest() throws ApiException { + String id = null; + String fields = null; + ApiResultRole response = api.readRole(id, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateRoleTest() throws ApiException { + String id = null; + Role resource = null; + ApiResultRole response = api.updateRole(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApiTest.java new file mode 100644 index 0000000..30e6b21 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/RoleOfAuthEntityControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRole; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RoleOfAuthEntityControllerApi + */ +@Ignore +public class RoleOfAuthEntityControllerApiTest { + + private final RoleOfAuthEntityControllerApi api = new RoleOfAuthEntityControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRoleOfAuthEntityTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListRole response = api.listRoleOfAuthEntity(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApiTest.java new file mode 100644 index 0000000..2fa111c --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/RulepackCoreControllerApiTest.java @@ -0,0 +1,89 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRulepackCore; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RulepackCoreControllerApi + */ +@Ignore +public class RulepackCoreControllerApiTest { + + private final RulepackCoreControllerApi api = new RulepackCoreControllerApi(); + + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRulepackCoreTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteRulepackCore(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRulepackCoreTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListRulepackCore response = api.listRulepackCore(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteRulepackCoreTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteRulepackCore(ids); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApiTest.java new file mode 100644 index 0000000..8039014 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/RulepackUpdateControllerApiTest.java @@ -0,0 +1,51 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListRulepacksBatchProcessStatus; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RulepackUpdateControllerApi + */ +@Ignore +public class RulepackUpdateControllerApiTest { + + private final RulepackUpdateControllerApi api = new RulepackUpdateControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRulepackUpdateTest() throws ApiException { + ApiResultListRulepacksBatchProcessStatus response = api.listRulepackUpdate(); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/SavedReportControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/SavedReportControllerApiTest.java new file mode 100644 index 0000000..9698f0d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/SavedReportControllerApiTest.java @@ -0,0 +1,111 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSavedReport; +import com.fortify.ssc.restclient.model.ApiResultSavedReport; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.SavedReport; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SavedReportControllerApi + */ +@Ignore +public class SavedReportControllerApiTest { + + private final SavedReportControllerApi api = new SavedReportControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createSavedReportTest() throws ApiException { + SavedReport resource = null; + ApiResultSavedReport response = api.createSavedReport(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteSavedReportTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteSavedReport(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listSavedReportTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + Boolean fulltextsearch = null; + String embed = null; + String orderby = null; + ApiResultListSavedReport response = api.listSavedReport(fields, start, limit, q, fulltextsearch, embed, orderby); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readSavedReportTest() throws ApiException { + Long id = null; + String fields = null; + String embed = null; + ApiResultSavedReport response = api.readSavedReport(id, fields, embed); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ScanControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ScanControllerApiTest.java new file mode 100644 index 0000000..073b779 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ScanControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultScan; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ScanControllerApi + */ +@Ignore +public class ScanControllerApiTest { + + private final ScanControllerApi api = new ScanControllerApi(); + + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readScanTest() throws ApiException { + Long id = null; + String fields = null; + ApiResultScan response = api.readScan(id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApiTest.java new file mode 100644 index 0000000..f07a6f2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ScanErrorOfArtifactControllerApiTest.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListscanError; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ScanErrorOfArtifactControllerApi + */ +@Ignore +public class ScanErrorOfArtifactControllerApiTest { + + private final ScanErrorOfArtifactControllerApi api = new ScanErrorOfArtifactControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listScanErrorOfArtifactTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + ApiResultListscanError response = api.listScanErrorOfArtifact(parentId, fields, start, limit); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApiTest.java new file mode 100644 index 0000000..f77276d --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ScanOfArtifactControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListScan; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ScanOfArtifactControllerApi + */ +@Ignore +public class ScanOfArtifactControllerApiTest { + + private final ScanOfArtifactControllerApi api = new ScanOfArtifactControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listScanOfArtifactTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListScan response = api.listScanOfArtifact(parentId, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..cae13d9 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/SourceFileOfProjectVersionControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSourceFileDto; +import com.fortify.ssc.restclient.model.ApiResultSourceFileDto; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SourceFileOfProjectVersionControllerApi + */ +@Ignore +public class SourceFileOfProjectVersionControllerApiTest { + + private final SourceFileOfProjectVersionControllerApi api = new SourceFileOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listSourceFileOfProjectVersionTest() throws ApiException { + Long parentId = null; + Integer start = null; + Integer limit = null; + String q = null; + String fields = null; + ApiResultListSourceFileDto response = api.listSourceFileOfProjectVersion(parentId, start, limit, q, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readSourceFileOfProjectVersionTest() throws ApiException { + Long parentId = null; + String id = null; + String fields = null; + ApiResultSourceFileDto response = api.readSourceFileOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApiTest.java new file mode 100644 index 0000000..f77d22b --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/SystemConfigurationControllerApiTest.java @@ -0,0 +1,70 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListSystemConfiguration; +import com.fortify.ssc.restclient.model.ApiResultSystemConfiguration; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SystemConfigurationControllerApi + */ +@Ignore +public class SystemConfigurationControllerApiTest { + + private final SystemConfigurationControllerApi api = new SystemConfigurationControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listSystemConfigurationTest() throws ApiException { + String fields = null; + ApiResultListSystemConfiguration response = api.listSystemConfiguration(fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readSystemConfigurationTest() throws ApiException { + String name = null; + String fields = null; + ApiResultSystemConfiguration response = api.readSystemConfiguration(name, fields); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApiTest.java new file mode 100644 index 0000000..3bbd46a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/TokenDefinitionControllerApiTest.java @@ -0,0 +1,56 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListTokenDefinition; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TokenDefinitionControllerApi + */ +@Ignore +public class TokenDefinitionControllerApiTest { + + private final TokenDefinitionControllerApi api = new TokenDefinitionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listTokenDefinitionTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListTokenDefinition response = api.listTokenDefinition(fields, start, limit, q, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApiTest.java new file mode 100644 index 0000000..ffd3a0a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UnassignedCloudWorkerOfCloudPoolControllerApiTest.java @@ -0,0 +1,55 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListCloudWorker; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UnassignedCloudWorkerOfCloudPoolControllerApi + */ +@Ignore +public class UnassignedCloudWorkerOfCloudPoolControllerApiTest { + + private final UnassignedCloudWorkerOfCloudPoolControllerApi api = new UnassignedCloudWorkerOfCloudPoolControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listUnassignedCloudWorkerOfCloudPoolTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String orderby = null; + ApiResultListCloudWorker response = api.listUnassignedCloudWorkerOfCloudPool(fields, start, limit, orderby); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..7945a4f --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionOfProjectVersionControllerApiTest.java @@ -0,0 +1,90 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultIssueSearchOption; +import com.fortify.ssc.restclient.model.ApiResultListIssueSearchOption; +import com.fortify.ssc.restclient.model.IssueSearchOption; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserIssueSearchOptionOfProjectVersionControllerApi + */ +@Ignore +public class UserIssueSearchOptionOfProjectVersionControllerApiTest { + + private final UserIssueSearchOptionOfProjectVersionControllerApi api = new UserIssueSearchOptionOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listUserIssueSearchOptionOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultListIssueSearchOption response = api.listUserIssueSearchOptionOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readUserIssueSearchOptionOfProjectVersionTest() throws ApiException { + Long parentId = null; + String optionType = null; + String fields = null; + ApiResultIssueSearchOption response = api.readUserIssueSearchOptionOfProjectVersion(parentId, optionType, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserIssueSearchOptionOfProjectVersionTest() throws ApiException { + Long parentId = null; + List resources = null; + ApiResultListIssueSearchOption response = api.updateUserIssueSearchOptionOfProjectVersion(parentId, resources); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApiTest.java new file mode 100644 index 0000000..68f697a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsControllerApiTest.java @@ -0,0 +1,68 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserIssueSearchOptions; +import com.fortify.ssc.restclient.model.UserIssueSearchOptions; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserIssueSearchOptionsControllerApi + */ +@Ignore +public class UserIssueSearchOptionsControllerApiTest { + + private final UserIssueSearchOptionsControllerApi api = new UserIssueSearchOptionsControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUserIssueSearchOptionsTest() throws ApiException { + ApiResultUserIssueSearchOptions response = api.getUserIssueSearchOptions(); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserIssueSearchOptionsTest() throws ApiException { + UserIssueSearchOptions resource = null; + ApiResultUserIssueSearchOptions response = api.updateUserIssueSearchOptions(resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..23268a0 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserIssueSearchOptionsOfProjectVersionControllerApiTest.java @@ -0,0 +1,71 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserIssueSearchOptions; +import com.fortify.ssc.restclient.model.UserIssueSearchOptions; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserIssueSearchOptionsOfProjectVersionControllerApi + */ +@Ignore +public class UserIssueSearchOptionsOfProjectVersionControllerApiTest { + + private final UserIssueSearchOptionsOfProjectVersionControllerApi api = new UserIssueSearchOptionsOfProjectVersionControllerApi(); + + + /** + * get + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUserIssueSearchOptionsOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + ApiResultUserIssueSearchOptions response = api.getUserIssueSearchOptionsOfProjectVersion(parentId, fields); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserIssueSearchOptionsOfProjectVersionTest() throws ApiException { + Long parentId = null; + UserIssueSearchOptions resource = null; + ApiResultUserIssueSearchOptions response = api.updateUserIssueSearchOptionsOfProjectVersion(parentId, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApiTest.java new file mode 100644 index 0000000..fb62138 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserPreferencesControllerApiTest.java @@ -0,0 +1,69 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserPreferences; +import com.fortify.ssc.restclient.model.UserPreferences; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserPreferencesControllerApi + */ +@Ignore +public class UserPreferencesControllerApiTest { + + private final UserPreferencesControllerApi api = new UserPreferencesControllerApi(); + + + /** + * post + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void postUserPreferencesTest() throws ApiException { + String username = null; + ApiResultUserPreferences response = api.postUserPreferences(username); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserPreferencesTest() throws ApiException { + UserPreferences resource = null; + ApiResultUserPreferences response = api.updateUserPreferences(resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApiTest.java new file mode 100644 index 0000000..8ce3695 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserSessionInfoControllerApiTest.java @@ -0,0 +1,52 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultUserSessionInformation; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserSessionInfoControllerApi + */ +@Ignore +public class UserSessionInfoControllerApiTest { + + private final UserSessionInfoControllerApi api = new UserSessionInfoControllerApi(); + + + /** + * post + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void postUserSessionInfoTest() throws ApiException { + String username = null; + ApiResultUserSessionInformation response = api.postUserSessionInfo(username); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApiTest.java new file mode 100644 index 0000000..31fa3a1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/UserSessionStateControllerApiTest.java @@ -0,0 +1,71 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListUserSessionState; +import com.fortify.ssc.restclient.model.UserSessionState; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserSessionStateControllerApi + */ +@Ignore +public class UserSessionStateControllerApiTest { + + private final UserSessionStateControllerApi api = new UserSessionStateControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listUserSessionStateTest() throws ApiException { + Integer start = null; + Integer limit = null; + String q = null; + ApiResultListUserSessionState response = api.listUserSessionState(start, limit, q); + + // TODO: test validations + } + + /** + * put + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void putUserSessionStateTest() throws ApiException { + List resources = null; + ApiResultListUserSessionState response = api.putUserSessionState(resources); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApiTest.java new file mode 100644 index 0000000..0fadcee --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ValidateEquationControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultValidationStatus; +import com.fortify.ssc.restclient.model.ValidationRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ValidateEquationControllerApi + */ +@Ignore +public class ValidateEquationControllerApiTest { + + private final ValidateEquationControllerApi api = new ValidateEquationControllerApi(); + + + /** + * DoValidation + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doValidateEquationTest() throws ApiException { + ValidationRequest request = null; + ApiResultValidationStatus response = api.doValidateEquation(request); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApiTest.java new file mode 100644 index 0000000..5b9085a --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/ValidateSearchStringControllerApiTest.java @@ -0,0 +1,53 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultValidationStatus; +import com.fortify.ssc.restclient.model.ValidationRequest; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ValidateSearchStringControllerApi + */ +@Ignore +public class ValidateSearchStringControllerApiTest { + + private final ValidateSearchStringControllerApi api = new ValidateSearchStringControllerApi(); + + + /** + * DoValidation + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void doValidateSearchStringTest() throws ApiException { + ValidationRequest request = null; + ApiResultValidationStatus response = api.doValidateSearchString(request); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/VariableControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/VariableControllerApiTest.java new file mode 100644 index 0000000..e81f9a1 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/VariableControllerApiTest.java @@ -0,0 +1,124 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListVariable; +import com.fortify.ssc.restclient.model.ApiResultVariable; +import com.fortify.ssc.restclient.model.ApiResultVoid; +import com.fortify.ssc.restclient.model.Variable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for VariableControllerApi + */ +@Ignore +public class VariableControllerApiTest { + + private final VariableControllerApi api = new VariableControllerApi(); + + + /** + * create + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createVariableTest() throws ApiException { + Variable resource = null; + ApiResultVariable response = api.createVariable(resource); + + // TODO: test validations + } + + /** + * delete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteVariableTest() throws ApiException { + Long id = null; + ApiResultVoid response = api.deleteVariable(id); + + // TODO: test validations + } + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listVariableTest() throws ApiException { + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + String orderby = null; + ApiResultListVariable response = api.listVariable(fields, start, limit, q, orderby); + + // TODO: test validations + } + + /** + * multiDelete + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void multiDeleteVariableTest() throws ApiException { + String ids = null; + ApiResultVoid response = api.multiDeleteVariable(ids); + + // TODO: test validations + } + + /** + * update + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateVariableTest() throws ApiException { + Long id = null; + Variable resource = null; + ApiResultVariable response = api.updateVariable(id, resource); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApiTest.java b/src/test/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApiTest.java new file mode 100644 index 0000000..2503dc2 --- /dev/null +++ b/src/test/java/com/fortify/ssc/restclient/api/VariableHistoryOfProjectVersionControllerApiTest.java @@ -0,0 +1,75 @@ +/* + * Fortify Software Security Center API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1:18.20 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.fortify.ssc.restclient.api; + +import com.fortify.ssc.restclient.ApiException; +import com.fortify.ssc.restclient.model.ApiResult; +import com.fortify.ssc.restclient.model.ApiResultListVariableHistory; +import com.fortify.ssc.restclient.model.ApiResultVariableHistory; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for VariableHistoryOfProjectVersionControllerApi + */ +@Ignore +public class VariableHistoryOfProjectVersionControllerApiTest { + + private final VariableHistoryOfProjectVersionControllerApi api = new VariableHistoryOfProjectVersionControllerApi(); + + + /** + * list + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listVariableHistoryOfProjectVersionTest() throws ApiException { + Long parentId = null; + String fields = null; + Integer start = null; + Integer limit = null; + String q = null; + ApiResultListVariableHistory response = api.listVariableHistoryOfProjectVersion(parentId, fields, start, limit, q); + + // TODO: test validations + } + + /** + * read + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void readVariableHistoryOfProjectVersionTest() throws ApiException { + Long parentId = null; + String id = null; + String fields = null; + ApiResultVariableHistory response = api.readVariableHistoryOfProjectVersion(parentId, id, fields); + + // TODO: test validations + } + +}